public static final class DemoteContext.Builder extends GeneratedMessage.Builder<DemoteContext.Builder> implements DemoteContextOrBuilderThis context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
Protobuf type google.cloud.sql.v1beta4.DemoteContext
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DemoteContext.BuilderImplements
DemoteContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DemoteContext build()| Returns | |
|---|---|
| Type | Description |
DemoteContext |
|
buildPartial()
public DemoteContext buildPartial()| Returns | |
|---|---|
| Type | Description |
DemoteContext |
|
clear()
public DemoteContext.Builder clear()| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
|
clearKind()
public DemoteContext.Builder clearKind() This is always sql#demoteContext.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
This builder for chaining. |
clearSourceRepresentativeInstanceName()
public DemoteContext.Builder clearSourceRepresentativeInstanceName()Required. The name of the instance which acts as an on-premises primary instance in the replication setup.
string source_representative_instance_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DemoteContext getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DemoteContext |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKind()
public String getKind() This is always sql#demoteContext.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#demoteContext.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getSourceRepresentativeInstanceName()
public String getSourceRepresentativeInstanceName()Required. The name of the instance which acts as an on-premises primary instance in the replication setup.
string source_representative_instance_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The sourceRepresentativeInstanceName. |
getSourceRepresentativeInstanceNameBytes()
public ByteString getSourceRepresentativeInstanceNameBytes()Required. The name of the instance which acts as an on-premises primary instance in the replication setup.
string source_representative_instance_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceRepresentativeInstanceName. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DemoteContext other)
public DemoteContext.Builder mergeFrom(DemoteContext other)| Parameter | |
|---|---|
| Name | Description |
other |
DemoteContext |
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DemoteContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DemoteContext.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
|
setKind(String value)
public DemoteContext.Builder setKind(String value) This is always sql#demoteContext.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public DemoteContext.Builder setKindBytes(ByteString value) This is always sql#demoteContext.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
This builder for chaining. |
setSourceRepresentativeInstanceName(String value)
public DemoteContext.Builder setSourceRepresentativeInstanceName(String value)Required. The name of the instance which acts as an on-premises primary instance in the replication setup.
string source_representative_instance_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sourceRepresentativeInstanceName to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
This builder for chaining. |
setSourceRepresentativeInstanceNameBytes(ByteString value)
public DemoteContext.Builder setSourceRepresentativeInstanceNameBytes(ByteString value)Required. The name of the instance which acts as an on-premises primary instance in the replication setup.
string source_representative_instance_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sourceRepresentativeInstanceName to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteContext.Builder |
This builder for chaining. |