public static final class ResourceId.Builder extends GeneratedMessage.Builder<ResourceId.Builder> implements ResourceIdOrBuilderResourceId contains the identifier for a database resource, including the full resource name, resource type, and product.
Protobuf type google.cloud.databasecenter.v1beta.ResourceId
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourceId.BuilderImplements
ResourceIdOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ResourceId build()| Returns | |
|---|---|
| Type | Description |
ResourceId |
|
buildPartial()
public ResourceId buildPartial()| Returns | |
|---|---|
| Type | Description |
ResourceId |
|
clear()
public ResourceId.Builder clear()| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
|
clearFullResourceName()
public ResourceId.Builder clearFullResourceName()The full resource name of the resource.
string full_resource_name = 1;
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
This builder for chaining. |
clearProduct()
public ResourceId.Builder clearProduct()The product of the resource, including the type, engine, and version.
.google.cloud.databasecenter.v1beta.Product product = 3;
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
|
clearResourceType()
public ResourceId.Builder clearResourceType()The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
string resource_type = 2;
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ResourceId getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResourceId |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFullResourceName()
public String getFullResourceName()The full resource name of the resource.
string full_resource_name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The fullResourceName. |
getFullResourceNameBytes()
public ByteString getFullResourceNameBytes()The full resource name of the resource.
string full_resource_name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for fullResourceName. |
getProduct()
public Product getProduct()The product of the resource, including the type, engine, and version.
.google.cloud.databasecenter.v1beta.Product product = 3;
| Returns | |
|---|---|
| Type | Description |
Product |
The product. |
getProductBuilder()
public Product.Builder getProductBuilder()The product of the resource, including the type, engine, and version.
.google.cloud.databasecenter.v1beta.Product product = 3;
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
|
getProductOrBuilder()
public ProductOrBuilder getProductOrBuilder()The product of the resource, including the type, engine, and version.
.google.cloud.databasecenter.v1beta.Product product = 3;
| Returns | |
|---|---|
| Type | Description |
ProductOrBuilder |
|
getResourceType()
public String getResourceType()The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
string resource_type = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The resourceType. |
getResourceTypeBytes()
public ByteString getResourceTypeBytes()The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
string resource_type = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resourceType. |
hasProduct()
public boolean hasProduct()The product of the resource, including the type, engine, and version.
.google.cloud.databasecenter.v1beta.Product product = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the product field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ResourceId other)
public ResourceId.Builder mergeFrom(ResourceId other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceId |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourceId.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
|
mergeProduct(Product value)
public ResourceId.Builder mergeProduct(Product value)The product of the resource, including the type, engine, and version.
.google.cloud.databasecenter.v1beta.Product product = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Product |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
|
setFullResourceName(String value)
public ResourceId.Builder setFullResourceName(String value)The full resource name of the resource.
string full_resource_name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe fullResourceName to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
This builder for chaining. |
setFullResourceNameBytes(ByteString value)
public ResourceId.Builder setFullResourceNameBytes(ByteString value)The full resource name of the resource.
string full_resource_name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for fullResourceName to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
This builder for chaining. |
setProduct(Product value)
public ResourceId.Builder setProduct(Product value)The product of the resource, including the type, engine, and version.
.google.cloud.databasecenter.v1beta.Product product = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Product |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
|
setProduct(Product.Builder builderForValue)
public ResourceId.Builder setProduct(Product.Builder builderForValue)The product of the resource, including the type, engine, and version.
.google.cloud.databasecenter.v1beta.Product product = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Product.Builder |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
|
setResourceType(String value)
public ResourceId.Builder setResourceType(String value)The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
string resource_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
This builder for chaining. |
setResourceTypeBytes(ByteString value)
public ResourceId.Builder setResourceTypeBytes(ByteString value)The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
string resource_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceId.Builder |
This builder for chaining. |