Class FailoverInstanceRequest (2.6.1)

public final class FailoverInstanceRequest extends GeneratedMessageV3 implements FailoverInstanceRequestOrBuilder

Request for Failover.

Protobuf type google.cloud.redis.v1.FailoverInstanceRequest

Static Fields

DATA_PROTECTION_MODE_FIELD_NUMBER

public static final int DATA_PROTECTION_MODE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FailoverInstanceRequest getDefaultInstance()
Returns
TypeDescription
FailoverInstanceRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FailoverInstanceRequest.Builder newBuilder()
Returns
TypeDescription
FailoverInstanceRequest.Builder

newBuilder(FailoverInstanceRequest prototype)

public static FailoverInstanceRequest.Builder newBuilder(FailoverInstanceRequest prototype)
Parameter
NameDescription
prototypeFailoverInstanceRequest
Returns
TypeDescription
FailoverInstanceRequest.Builder

parseDelimitedFrom(InputStream input)

public static FailoverInstanceRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FailoverInstanceRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FailoverInstanceRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FailoverInstanceRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FailoverInstanceRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FailoverInstanceRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FailoverInstanceRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FailoverInstanceRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FailoverInstanceRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FailoverInstanceRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FailoverInstanceRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FailoverInstanceRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FailoverInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FailoverInstanceRequest> parser()
Returns
TypeDescription
Parser<FailoverInstanceRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDataProtectionMode()

public FailoverInstanceRequest.DataProtectionMode getDataProtectionMode()

Optional. Available data protection modes that the user can choose. If it's unspecified, data protection mode will be LIMITED_DATA_LOSS by default.

.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FailoverInstanceRequest.DataProtectionMode

The dataProtectionMode.

getDataProtectionModeValue()

public int getDataProtectionModeValue()

Optional. Available data protection modes that the user can choose. If it's unspecified, data protection mode will be LIMITED_DATA_LOSS by default.

.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for dataProtectionMode.

getDefaultInstanceForType()

public FailoverInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
FailoverInstanceRequest

getName()

public String getName()

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<FailoverInstanceRequest> getParserForType()
Returns
TypeDescription
Parser<FailoverInstanceRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FailoverInstanceRequest.Builder newBuilderForType()
Returns
TypeDescription
FailoverInstanceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FailoverInstanceRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FailoverInstanceRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FailoverInstanceRequest.Builder toBuilder()
Returns
TypeDescription
FailoverInstanceRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException