public final class DemoteMasterContext extends GeneratedMessage implements DemoteMasterContextOrBuilder
Database instance demote primary instance context.
Protobuf type google.cloud.sql.v1.DemoteMasterContext
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MASTER_INSTANCE_NAME_FIELD_NUMBER
public static final int MASTER_INSTANCE_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
REPLICA_CONFIGURATION_FIELD_NUMBER
public static final int REPLICA_CONFIGURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SKIP_REPLICATION_SETUP_FIELD_NUMBER
public static final int SKIP_REPLICATION_SETUP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VERIFY_GTID_CONSISTENCY_FIELD_NUMBER
public static final int VERIFY_GTID_CONSISTENCY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DemoteMasterContext getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DemoteMasterContext.Builder newBuilder()
newBuilder(DemoteMasterContext prototype)
public static DemoteMasterContext.Builder newBuilder(DemoteMasterContext prototype)
parseDelimitedFrom(InputStream input)
public static DemoteMasterContext parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DemoteMasterContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DemoteMasterContext parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DemoteMasterContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DemoteMasterContext parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DemoteMasterContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static DemoteMasterContext parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DemoteMasterContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static DemoteMasterContext parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DemoteMasterContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DemoteMasterContext parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DemoteMasterContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DemoteMasterContext> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public DemoteMasterContext getDefaultInstanceForType()
getKind()
This is always sql#demoteMasterContext.
string kind = 1;
| Returns |
| Type |
Description |
String |
The kind.
|
getKindBytes()
public ByteString getKindBytes()
This is always sql#demoteMasterContext.
string kind = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for kind.
|
getMasterInstanceName()
public String getMasterInstanceName()
The name of the instance which will act as on-premises primary instance
in the replication setup.
string master_instance_name = 3;
| Returns |
| Type |
Description |
String |
The masterInstanceName.
|
getMasterInstanceNameBytes()
public ByteString getMasterInstanceNameBytes()
The name of the instance which will act as on-premises primary instance
in the replication setup.
string master_instance_name = 3;
| Returns |
| Type |
Description |
ByteString |
The bytes for masterInstanceName.
|
getParserForType()
public Parser<DemoteMasterContext> getParserForType()
Overrides
getReplicaConfiguration()
public DemoteMasterConfiguration getReplicaConfiguration()
Configuration specific to read-replicas replicating from the on-premises
primary instance.
.google.cloud.sql.v1.DemoteMasterConfiguration replica_configuration = 4;
getReplicaConfigurationOrBuilder()
public DemoteMasterConfigurationOrBuilder getReplicaConfigurationOrBuilder()
Configuration specific to read-replicas replicating from the on-premises
primary instance.
.google.cloud.sql.v1.DemoteMasterConfiguration replica_configuration = 4;
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSkipReplicationSetup()
public boolean getSkipReplicationSetup()
Flag to skip replication setup on the instance.
bool skip_replication_setup = 5;
| Returns |
| Type |
Description |
boolean |
The skipReplicationSetup.
|
getVerifyGtidConsistency()
public BoolValue getVerifyGtidConsistency()
Verify the GTID consistency for demote operation. Default value:
True. Setting this flag to false enables you to bypass the GTID
consistency check between on-premises primary instance and Cloud SQL
instance during the demotion operation but also exposes you to the risk of
future replication failures. Change the value only if you know the reason
for the GTID divergence and are confident that doing so will not cause any
replication issues.
.google.protobuf.BoolValue verify_gtid_consistency = 2;
| Returns |
| Type |
Description |
BoolValue |
The verifyGtidConsistency.
|
getVerifyGtidConsistencyOrBuilder()
public BoolValueOrBuilder getVerifyGtidConsistencyOrBuilder()
Verify the GTID consistency for demote operation. Default value:
True. Setting this flag to false enables you to bypass the GTID
consistency check between on-premises primary instance and Cloud SQL
instance during the demotion operation but also exposes you to the risk of
future replication failures. Change the value only if you know the reason
for the GTID divergence and are confident that doing so will not cause any
replication issues.
.google.protobuf.BoolValue verify_gtid_consistency = 2;
hasReplicaConfiguration()
public boolean hasReplicaConfiguration()
Configuration specific to read-replicas replicating from the on-premises
primary instance.
.google.cloud.sql.v1.DemoteMasterConfiguration replica_configuration = 4;
| Returns |
| Type |
Description |
boolean |
Whether the replicaConfiguration field is set.
|
hasVerifyGtidConsistency()
public boolean hasVerifyGtidConsistency()
Verify the GTID consistency for demote operation. Default value:
True. Setting this flag to false enables you to bypass the GTID
consistency check between on-premises primary instance and Cloud SQL
instance during the demotion operation but also exposes you to the risk of
future replication failures. Change the value only if you know the reason
for the GTID divergence and are confident that doing so will not cause any
replication issues.
.google.protobuf.BoolValue verify_gtid_consistency = 2;
| Returns |
| Type |
Description |
boolean |
Whether the verifyGtidConsistency field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DemoteMasterContext.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected DemoteMasterContext.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public DemoteMasterContext.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides