Class Rotation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Rotation.Builder>
com.google.cloud.secretmanager.v1beta2.Rotation.Builder
All Implemented Interfaces:
RotationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Rotation

public static final class Rotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Rotation.Builder> implements RotationOrBuilder
 The rotation time and period for a
 [Secret][google.cloud.secretmanager.v1beta2.Secret]. At next_rotation_time,
 Secret Manager will send a Pub/Sub notification to the topics configured on
 the Secret. [Secret.topics][google.cloud.secretmanager.v1beta2.Secret.topics]
 must be set to configure rotation.
 
Protobuf type google.cloud.secretmanager.v1beta2.Rotation
  • 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<Rotation.Builder>
    • clear

      public Rotation.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<Rotation.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<Rotation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Rotation.Builder mergeFrom(Rotation other)
    • isInitialized

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

      public Rotation.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<Rotation.Builder>
      Throws:
      IOException
    • hasNextRotationTime

      public boolean hasNextRotationTime()
       Optional. Timestamp in UTC at which the
       [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate.
       Cannot be set to less than 300s (5 min) in the future and at most
       3153600000s (100 years).
      
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       MUST  be set if
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasNextRotationTime in interface RotationOrBuilder
      Returns:
      Whether the nextRotationTime field is set.
    • getNextRotationTime

      public com.google.protobuf.Timestamp getNextRotationTime()
       Optional. Timestamp in UTC at which the
       [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate.
       Cannot be set to less than 300s (5 min) in the future and at most
       3153600000s (100 years).
      
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       MUST  be set if
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextRotationTime in interface RotationOrBuilder
      Returns:
      The nextRotationTime.
    • setNextRotationTime

      public Rotation.Builder setNextRotationTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp in UTC at which the
       [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate.
       Cannot be set to less than 300s (5 min) in the future and at most
       3153600000s (100 years).
      
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       MUST  be set if
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setNextRotationTime

      public Rotation.Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Timestamp in UTC at which the
       [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate.
       Cannot be set to less than 300s (5 min) in the future and at most
       3153600000s (100 years).
      
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       MUST  be set if
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeNextRotationTime

      public Rotation.Builder mergeNextRotationTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp in UTC at which the
       [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate.
       Cannot be set to less than 300s (5 min) in the future and at most
       3153600000s (100 years).
      
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       MUST  be set if
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearNextRotationTime

      public Rotation.Builder clearNextRotationTime()
       Optional. Timestamp in UTC at which the
       [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate.
       Cannot be set to less than 300s (5 min) in the future and at most
       3153600000s (100 years).
      
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       MUST  be set if
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getNextRotationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder()
       Optional. Timestamp in UTC at which the
       [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate.
       Cannot be set to less than 300s (5 min) in the future and at most
       3153600000s (100 years).
      
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       MUST  be set if
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getNextRotationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder()
       Optional. Timestamp in UTC at which the
       [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate.
       Cannot be set to less than 300s (5 min) in the future and at most
       3153600000s (100 years).
      
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       MUST  be set if
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextRotationTimeOrBuilder in interface RotationOrBuilder
    • hasRotationPeriod

      public boolean hasRotationPeriod()
       Input only. The Duration between rotation notifications. Must be in seconds
       and at least 3600s (1h) and at most 3153600000s (100 years).
      
       If
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set,
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       must be set.
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       will be advanced by this period when the service automatically sends
       rotation notifications.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      hasRotationPeriod in interface RotationOrBuilder
      Returns:
      Whether the rotationPeriod field is set.
    • getRotationPeriod

      public com.google.protobuf.Duration getRotationPeriod()
       Input only. The Duration between rotation notifications. Must be in seconds
       and at least 3600s (1h) and at most 3153600000s (100 years).
      
       If
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set,
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       must be set.
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       will be advanced by this period when the service automatically sends
       rotation notifications.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getRotationPeriod in interface RotationOrBuilder
      Returns:
      The rotationPeriod.
    • setRotationPeriod

      public Rotation.Builder setRotationPeriod(com.google.protobuf.Duration value)
       Input only. The Duration between rotation notifications. Must be in seconds
       and at least 3600s (1h) and at most 3153600000s (100 years).
      
       If
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set,
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       must be set.
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       will be advanced by this period when the service automatically sends
       rotation notifications.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • setRotationPeriod

      public Rotation.Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue)
       Input only. The Duration between rotation notifications. Must be in seconds
       and at least 3600s (1h) and at most 3153600000s (100 years).
      
       If
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set,
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       must be set.
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       will be advanced by this period when the service automatically sends
       rotation notifications.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • mergeRotationPeriod

      public Rotation.Builder mergeRotationPeriod(com.google.protobuf.Duration value)
       Input only. The Duration between rotation notifications. Must be in seconds
       and at least 3600s (1h) and at most 3153600000s (100 years).
      
       If
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set,
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       must be set.
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       will be advanced by this period when the service automatically sends
       rotation notifications.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • clearRotationPeriod

      public Rotation.Builder clearRotationPeriod()
       Input only. The Duration between rotation notifications. Must be in seconds
       and at least 3600s (1h) and at most 3153600000s (100 years).
      
       If
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set,
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       must be set.
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       will be advanced by this period when the service automatically sends
       rotation notifications.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • getRotationPeriodBuilder

      public com.google.protobuf.Duration.Builder getRotationPeriodBuilder()
       Input only. The Duration between rotation notifications. Must be in seconds
       and at least 3600s (1h) and at most 3153600000s (100 years).
      
       If
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set,
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       must be set.
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       will be advanced by this period when the service automatically sends
       rotation notifications.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • getRotationPeriodOrBuilder

      public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder()
       Input only. The Duration between rotation notifications. Must be in seconds
       and at least 3600s (1h) and at most 3153600000s (100 years).
      
       If
       [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period]
       is set,
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       must be set.
       [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time]
       will be advanced by this period when the service automatically sends
       rotation notifications.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getRotationPeriodOrBuilder in interface RotationOrBuilder