public static final class InstanceReference.Builder extends GeneratedMessage.Builder<InstanceReference.Builder> implements InstanceReferenceOrBuilderReference to another Cloud SQL instance.
Protobuf type google.cloud.sql.v1.InstanceReference
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InstanceReference.BuilderImplements
InstanceReferenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public InstanceReference build()| Returns | |
|---|---|
| Type | Description |
InstanceReference |
|
buildPartial()
public InstanceReference buildPartial()| Returns | |
|---|---|
| Type | Description |
InstanceReference |
|
clear()
public InstanceReference.Builder clear()| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
|
clearName()
public InstanceReference.Builder clearName()The name of the Cloud SQL instance being referenced. This does not include the project ID.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |
clearProject()
public InstanceReference.Builder clearProject()The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
string project = 3;
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |
clearRegion()
public InstanceReference.Builder clearRegion()The region of the Cloud SQL instance being referenced.
string region = 2;
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public InstanceReference getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InstanceReference |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()The name of the Cloud SQL instance being referenced. This does not include the project ID.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The name of the Cloud SQL instance being referenced. This does not include the project ID.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getProject()
public String getProject()The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
string project = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The project. |
getProjectBytes()
public ByteString getProjectBytes()The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
string project = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for project. |
getRegion()
public String getRegion()The region of the Cloud SQL instance being referenced.
string region = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The region. |
getRegionBytes()
public ByteString getRegionBytes()The region of the Cloud SQL instance being referenced.
string region = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for region. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(InstanceReference other)
public InstanceReference.Builder mergeFrom(InstanceReference other)| Parameter | |
|---|---|
| Name | Description |
other |
InstanceReference |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InstanceReference.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
|
setName(String value)
public InstanceReference.Builder setName(String value)The name of the Cloud SQL instance being referenced. This does not include the project ID.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public InstanceReference.Builder setNameBytes(ByteString value)The name of the Cloud SQL instance being referenced. This does not include the project ID.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |
setProject(String value)
public InstanceReference.Builder setProject(String value)The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
string project = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe project to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |
setProjectBytes(ByteString value)
public InstanceReference.Builder setProjectBytes(ByteString value)The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
string project = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for project to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |
setRegion(String value)
public InstanceReference.Builder setRegion(String value)The region of the Cloud SQL instance being referenced.
string region = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe region to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |
setRegionBytes(ByteString value)
public InstanceReference.Builder setRegionBytes(ByteString value)The region of the Cloud SQL instance being referenced.
string region = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for region to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
This builder for chaining. |