Class Table.AutomatedBackupPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
com.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.Builder
All Implemented Interfaces:
Table.AutomatedBackupPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Table.AutomatedBackupPolicy

public static final class Table.AutomatedBackupPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder> implements Table.AutomatedBackupPolicyOrBuilder
 Defines an automated backup policy for a table
 
Protobuf type google.bigtable.admin.v2.Table.AutomatedBackupPolicy
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.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.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.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.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
    • getDefaultInstanceForType

      public Table.AutomatedBackupPolicy 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 Table.AutomatedBackupPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
    • setField

      public Table.AutomatedBackupPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
    • clearField

      public Table.AutomatedBackupPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
    • clearOneof

      public Table.AutomatedBackupPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
    • setRepeatedField

      public Table.AutomatedBackupPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
    • addRepeatedField

      public Table.AutomatedBackupPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
    • mergeFrom

      public Table.AutomatedBackupPolicy.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<Table.AutomatedBackupPolicy.Builder>
    • mergeFrom

    • isInitialized

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

      public Table.AutomatedBackupPolicy.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<Table.AutomatedBackupPolicy.Builder>
      Throws:
      IOException
    • hasRetentionPeriod

      public boolean hasRetentionPeriod()
       Required. How long the automated backups should be retained. The only
       supported value at this time is 3 days.
       
      .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRetentionPeriod in interface Table.AutomatedBackupPolicyOrBuilder
      Returns:
      Whether the retentionPeriod field is set.
    • getRetentionPeriod

      public com.google.protobuf.Duration getRetentionPeriod()
       Required. How long the automated backups should be retained. The only
       supported value at this time is 3 days.
       
      .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRetentionPeriod in interface Table.AutomatedBackupPolicyOrBuilder
      Returns:
      The retentionPeriod.
    • setRetentionPeriod

      public Table.AutomatedBackupPolicy.Builder setRetentionPeriod(com.google.protobuf.Duration value)
       Required. How long the automated backups should be retained. The only
       supported value at this time is 3 days.
       
      .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED];
    • setRetentionPeriod

      public Table.AutomatedBackupPolicy.Builder setRetentionPeriod(com.google.protobuf.Duration.Builder builderForValue)
       Required. How long the automated backups should be retained. The only
       supported value at this time is 3 days.
       
      .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeRetentionPeriod

      public Table.AutomatedBackupPolicy.Builder mergeRetentionPeriod(com.google.protobuf.Duration value)
       Required. How long the automated backups should be retained. The only
       supported value at this time is 3 days.
       
      .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearRetentionPeriod

      public Table.AutomatedBackupPolicy.Builder clearRetentionPeriod()
       Required. How long the automated backups should be retained. The only
       supported value at this time is 3 days.
       
      .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRetentionPeriodBuilder

      public com.google.protobuf.Duration.Builder getRetentionPeriodBuilder()
       Required. How long the automated backups should be retained. The only
       supported value at this time is 3 days.
       
      .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRetentionPeriodOrBuilder

      public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder()
       Required. How long the automated backups should be retained. The only
       supported value at this time is 3 days.
       
      .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRetentionPeriodOrBuilder in interface Table.AutomatedBackupPolicyOrBuilder
    • hasFrequency

      public boolean hasFrequency()
       Required. How frequently automated backups should occur. The only
       supported value at this time is 24 hours.
       
      .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFrequency in interface Table.AutomatedBackupPolicyOrBuilder
      Returns:
      Whether the frequency field is set.
    • getFrequency

      public com.google.protobuf.Duration getFrequency()
       Required. How frequently automated backups should occur. The only
       supported value at this time is 24 hours.
       
      .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFrequency in interface Table.AutomatedBackupPolicyOrBuilder
      Returns:
      The frequency.
    • setFrequency

      public Table.AutomatedBackupPolicy.Builder setFrequency(com.google.protobuf.Duration value)
       Required. How frequently automated backups should occur. The only
       supported value at this time is 24 hours.
       
      .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED];
    • setFrequency

      public Table.AutomatedBackupPolicy.Builder setFrequency(com.google.protobuf.Duration.Builder builderForValue)
       Required. How frequently automated backups should occur. The only
       supported value at this time is 24 hours.
       
      .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeFrequency

      public Table.AutomatedBackupPolicy.Builder mergeFrequency(com.google.protobuf.Duration value)
       Required. How frequently automated backups should occur. The only
       supported value at this time is 24 hours.
       
      .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearFrequency

      public Table.AutomatedBackupPolicy.Builder clearFrequency()
       Required. How frequently automated backups should occur. The only
       supported value at this time is 24 hours.
       
      .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED];
    • getFrequencyBuilder

      public com.google.protobuf.Duration.Builder getFrequencyBuilder()
       Required. How frequently automated backups should occur. The only
       supported value at this time is 24 hours.
       
      .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED];
    • getFrequencyOrBuilder

      public com.google.protobuf.DurationOrBuilder getFrequencyOrBuilder()
       Required. How frequently automated backups should occur. The only
       supported value at this time is 24 hours.
       
      .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFrequencyOrBuilder in interface Table.AutomatedBackupPolicyOrBuilder
    • setUnknownFields

      public final Table.AutomatedBackupPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>
    • mergeUnknownFields

      public final Table.AutomatedBackupPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Table.AutomatedBackupPolicy.Builder>