Class FailoverIcebergCatalogRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FailoverIcebergCatalogRequest.Builder>
com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest.Builder
All Implemented Interfaces:
FailoverIcebergCatalogRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FailoverIcebergCatalogRequest

public static final class FailoverIcebergCatalogRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<FailoverIcebergCatalogRequest.Builder> implements FailoverIcebergCatalogRequestOrBuilder
 Request message for FailoverIcebergCatalog.
 
Protobuf type google.cloud.biglake.v1.FailoverIcebergCatalogRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FailoverIcebergCatalogRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FailoverIcebergCatalogRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FailoverIcebergCatalogRequest.Builder>
    • getDefaultInstanceForType

      public FailoverIcebergCatalogRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FailoverIcebergCatalogRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FailoverIcebergCatalogRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FailoverIcebergCatalogRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FailoverIcebergCatalogRequest.Builder>
    • mergeFrom

      public FailoverIcebergCatalogRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FailoverIcebergCatalogRequest.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface FailoverIcebergCatalogRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface FailoverIcebergCatalogRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The name of the catalog in the form
       "projects/{project_id}/catalogs/{catalog_id}"
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The name of the catalog in the form
       "projects/{project_id}/catalogs/{catalog_id}"
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public FailoverIcebergCatalogRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the catalog in the form
       "projects/{project_id}/catalogs/{catalog_id}"
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getPrimaryReplica in interface FailoverIcebergCatalogRequestOrBuilder
      Returns:
      The primaryReplica.
    • getPrimaryReplicaBytes

      public com.google.protobuf.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];
      Specified by:
      getPrimaryReplicaBytes in interface FailoverIcebergCatalogRequestOrBuilder
      Returns:
      The bytes for primaryReplica.
    • setPrimaryReplica

      public FailoverIcebergCatalogRequest.Builder setPrimaryReplica(String value)
       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];
      Parameters:
      value - The primaryReplica to set.
      Returns:
      This builder for chaining.
    • clearPrimaryReplica

      public FailoverIcebergCatalogRequest.Builder clearPrimaryReplica()
       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:
      This builder for chaining.
    • setPrimaryReplicaBytes

      public FailoverIcebergCatalogRequest.Builder setPrimaryReplicaBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for primaryReplica to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getValidateOnly in interface FailoverIcebergCatalogRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public FailoverIcebergCatalogRequest.Builder setValidateOnly(boolean value)
       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];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public FailoverIcebergCatalogRequest.Builder clearValidateOnly()
       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:
      This builder for chaining.
    • 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];
      Specified by:
      hasConditionalFailoverReplicationTime in interface FailoverIcebergCatalogRequestOrBuilder
      Returns:
      Whether the conditionalFailoverReplicationTime field is set.
    • getConditionalFailoverReplicationTime

      public com.google.protobuf.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];
      Specified by:
      getConditionalFailoverReplicationTime in interface FailoverIcebergCatalogRequestOrBuilder
      Returns:
      The conditionalFailoverReplicationTime.
    • setConditionalFailoverReplicationTime

      public FailoverIcebergCatalogRequest.Builder setConditionalFailoverReplicationTime(com.google.protobuf.Timestamp value)
       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];
    • setConditionalFailoverReplicationTime

      public FailoverIcebergCatalogRequest.Builder setConditionalFailoverReplicationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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];
    • mergeConditionalFailoverReplicationTime

      public FailoverIcebergCatalogRequest.Builder mergeConditionalFailoverReplicationTime(com.google.protobuf.Timestamp value)
       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];
    • clearConditionalFailoverReplicationTime

      public FailoverIcebergCatalogRequest.Builder clearConditionalFailoverReplicationTime()
       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];
    • getConditionalFailoverReplicationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getConditionalFailoverReplicationTimeBuilder()
       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];
    • getConditionalFailoverReplicationTimeOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getConditionalFailoverReplicationTimeOrBuilder in interface FailoverIcebergCatalogRequestOrBuilder