Class FailoverHiveCatalogRequest (0.83.0)

public final class FailoverHiveCatalogRequest extends GeneratedMessage implements FailoverHiveCatalogRequestOrBuilder

Request message for FailoverHiveCatalog.

Protobuf type google.cloud.biglake.hive.v1beta.FailoverHiveCatalogRequest

Static Fields

CONDITIONAL_FAILOVER_REPLICATION_TIME_FIELD_NUMBER

public static final int CONDITIONAL_FAILOVER_REPLICATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PRIMARY_REPLICA_FIELD_NUMBER

public static final int PRIMARY_REPLICA_FIELD_NUMBER
Field Value
Type Description
int

VALIDATE_ONLY_FIELD_NUMBER

public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FailoverHiveCatalogRequest getDefaultInstance()
Returns
Type Description
FailoverHiveCatalogRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static FailoverHiveCatalogRequest.Builder newBuilder()
Returns
Type Description
FailoverHiveCatalogRequest.Builder

newBuilder(FailoverHiveCatalogRequest prototype)

public static FailoverHiveCatalogRequest.Builder newBuilder(FailoverHiveCatalogRequest prototype)
Parameter
Name Description
prototype FailoverHiveCatalogRequest
Returns
Type Description
FailoverHiveCatalogRequest.Builder

parseDelimitedFrom(InputStream input)

public static FailoverHiveCatalogRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FailoverHiveCatalogRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FailoverHiveCatalogRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FailoverHiveCatalogRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FailoverHiveCatalogRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FailoverHiveCatalogRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FailoverHiveCatalogRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FailoverHiveCatalogRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FailoverHiveCatalogRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FailoverHiveCatalogRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FailoverHiveCatalogRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FailoverHiveCatalogRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailoverHiveCatalogRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FailoverHiveCatalogRequest> parser()
Returns
Type Description
Parser<FailoverHiveCatalogRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConditionalFailoverReplicationTime()

public Timestamp getConditionalFailoverReplicationTime()

Optional. If unset, wait for all data from the source region to replicate to the new primary region before completing the failover, with no data loss (also called "soft failover"). If set, failover immediately, accepting the loss of any data committed in the source region after this timestamp, that has not yet replicated. If any data committed before this time has not replicated, the failover will not be performed and an error will be returned (also called "hard failover").

.google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The conditionalFailoverReplicationTime.

getConditionalFailoverReplicationTimeOrBuilder()

public TimestampOrBuilder getConditionalFailoverReplicationTimeOrBuilder()

Optional. If unset, wait for all data from the source region to replicate to the new primary region before completing the failover, with no data loss (also called "soft failover"). If set, failover immediately, accepting the loss of any data committed in the source region after this timestamp, that has not yet replicated. If any data committed before this time has not replicated, the failover will not be performed and an error will be returned (also called "hard failover").

.google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public FailoverHiveCatalogRequest getDefaultInstanceForType()
Returns
Type Description
FailoverHiveCatalogRequest

getName()

public String getName()

Required. The name of the catalog in the form "projects/{project_id}/catalogs/{catalog_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the catalog in the form "projects/{project_id}/catalogs/{catalog_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<FailoverHiveCatalogRequest> getParserForType()
Returns
Type Description
Parser<FailoverHiveCatalogRequest>
Overrides

getPrimaryReplica()

public String getPrimaryReplica()

Required. The region being assigned as the new primary replica region. For example "us-east1". This must be one of the replica regions in the catalog's list of replicas marked as a "secondary".

string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The primaryReplica.

getPrimaryReplicaBytes()

public ByteString getPrimaryReplicaBytes()

Required. The region being assigned as the new primary replica region. For example "us-east1". This must be one of the replica regions in the catalog's list of replicas marked as a "secondary".

string primary_replica = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for primaryReplica.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getValidateOnly()

public boolean getValidateOnly()

Optional. If set, only validate the request, but do not perform the update. This can be used to inspect the replication_time at any time, including before performing a fail-over.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasConditionalFailoverReplicationTime()

public boolean hasConditionalFailoverReplicationTime()

Optional. If unset, wait for all data from the source region to replicate to the new primary region before completing the failover, with no data loss (also called "soft failover"). If set, failover immediately, accepting the loss of any data committed in the source region after this timestamp, that has not yet replicated. If any data committed before this time has not replicated, the failover will not be performed and an error will be returned (also called "hard failover").

.google.protobuf.Timestamp conditional_failover_replication_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the conditionalFailoverReplicationTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FailoverHiveCatalogRequest.Builder newBuilderForType()
Returns
Type Description
FailoverHiveCatalogRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected FailoverHiveCatalogRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FailoverHiveCatalogRequest.Builder
Overrides

toBuilder()

public FailoverHiveCatalogRequest.Builder toBuilder()
Returns
Type Description
FailoverHiveCatalogRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException