Class 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.GeneratedMessageV3.Builder<Rotation.Builder>
    implements RotationOrBuilder
     The rotation time and period for a
     [Secret][google.cloud.secretmanager.v1.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.v1.Secret.topics] must be
     set to configure rotation.
     
    Protobuf type google.cloud.secretmanager.v1.Rotation
    • Method Detail

      • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1.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.v1.Rotation.next_rotation_time]
         MUST  be set if
         [rotation_period][google.cloud.secretmanager.v1.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.v1.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.v1.Rotation.next_rotation_time]
         MUST  be set if
         [rotation_period][google.cloud.secretmanager.v1.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.v1.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.v1.Rotation.next_rotation_time]
         MUST  be set if
         [rotation_period][google.cloud.secretmanager.v1.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.v1.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.v1.Rotation.next_rotation_time]
         MUST  be set if
         [rotation_period][google.cloud.secretmanager.v1.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.v1.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.v1.Rotation.next_rotation_time]
         MUST  be set if
         [rotation_period][google.cloud.secretmanager.v1.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.v1.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.v1.Rotation.next_rotation_time]
         MUST  be set if
         [rotation_period][google.cloud.secretmanager.v1.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.v1.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.v1.Rotation.next_rotation_time]
         MUST  be set if
         [rotation_period][google.cloud.secretmanager.v1.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.v1.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.v1.Rotation.next_rotation_time]
         MUST  be set if
         [rotation_period][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period]
         is set,
         [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
         must be set.
         [next_rotation_time][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period]
         is set,
         [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
         must be set.
         [next_rotation_time][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period]
         is set,
         [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
         must be set.
         [next_rotation_time][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period]
         is set,
         [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
         must be set.
         [next_rotation_time][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period]
         is set,
         [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
         must be set.
         [next_rotation_time][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period]
         is set,
         [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
         must be set.
         [next_rotation_time][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period]
         is set,
         [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
         must be set.
         [next_rotation_time][google.cloud.secretmanager.v1.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.v1.Rotation.rotation_period]
         is set,
         [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time]
         must be set.
         [next_rotation_time][google.cloud.secretmanager.v1.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
      • setUnknownFields

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

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