Class SubResource (0.6.0)

public final class SubResource extends GeneratedMessage implements SubResourceOrBuilder

Sub resource details For Spanner/Bigtable instance certain data protection settings are at sub resource level like database/table. This message is used to capture such sub resource details.

Protobuf type google.cloud.databasecenter.v1beta.SubResource

Static Fields

CONTAINER_FIELD_NUMBER

public static final int CONTAINER_FIELD_NUMBER
Field Value
Type Description
int

FULL_RESOURCE_NAME_FIELD_NUMBER

public static final int FULL_RESOURCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_FIELD_NUMBER

public static final int PRODUCT_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SubResource getDefaultInstance()
Returns
Type Description
SubResource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SubResource.Builder newBuilder()
Returns
Type Description
SubResource.Builder

newBuilder(SubResource prototype)

public static SubResource.Builder newBuilder(SubResource prototype)
Parameter
Name Description
prototype SubResource
Returns
Type Description
SubResource.Builder

parseDelimitedFrom(InputStream input)

public static SubResource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubResource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubResource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SubResource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SubResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SubResource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SubResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SubResource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SubResource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SubResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubResource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SubResource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubResource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubResource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SubResource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SubResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubResource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SubResource> parser()
Returns
Type Description
Parser<SubResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContainer()

public String getContainer()

Specifies where the resource is created. For GCP, it is the full name of the project.

string container = 4;

Returns
Type Description
String

The container.

getContainerBytes()

public ByteString getContainerBytes()

Specifies where the resource is created. For GCP, it is the full name of the project.

string container = 4;

Returns
Type Description
ByteString

The bytes for container.

getDefaultInstanceForType()

public SubResource getDefaultInstanceForType()
Returns
Type Description
SubResource

getFullResourceName()

public String getFullResourceName()

Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL

string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The fullResourceName.

getFullResourceNameBytes()

public ByteString getFullResourceNameBytes()

Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL

string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for fullResourceName.

getParserForType()

public Parser<SubResource> getParserForType()
Returns
Type Description
Parser<SubResource>
Overrides

getProduct()

public Product getProduct()

Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. <code><code> product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } </code></code> for Spanner where backup is configured on database within an instance OPTIONAL

.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Product

The product.

getProductOrBuilder()

public ProductOrBuilder getProductOrBuilder()

Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. <code><code> product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } </code></code> for Spanner where backup is configured on database within an instance OPTIONAL

.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductOrBuilder

getResourceType()

public String getResourceType()

Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL

string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL

string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for resourceType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasProduct()

public boolean hasProduct()

Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. <code><code> product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } </code></code> for Spanner where backup is configured on database within an instance OPTIONAL

.google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the product field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SubResource.Builder newBuilderForType()
Returns
Type Description
SubResource.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SubResource.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SubResource.Builder
Overrides

toBuilder()

public SubResource.Builder toBuilder()
Returns
Type Description
SubResource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException