Class SecretSyncConfig.SyncRotationConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SecretSyncConfig.SyncRotationConfig.Builder>
com.google.container.v1.SecretSyncConfig.SyncRotationConfig.Builder
All Implemented Interfaces:
SecretSyncConfig.SyncRotationConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SecretSyncConfig.SyncRotationConfig

public static final class SecretSyncConfig.SyncRotationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecretSyncConfig.SyncRotationConfig.Builder> implements SecretSyncConfig.SyncRotationConfigOrBuilder
 SyncRotationConfig is config for secret manager auto rotation.
 
Protobuf type google.container.v1.SecretSyncConfig.SyncRotationConfig
  • 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<SecretSyncConfig.SyncRotationConfig.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<SecretSyncConfig.SyncRotationConfig.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<SecretSyncConfig.SyncRotationConfig.Builder>
    • getDefaultInstanceForType

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

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

      public SecretSyncConfig.SyncRotationConfig.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<SecretSyncConfig.SyncRotationConfig.Builder>
      Throws:
      IOException
    • hasEnabled

      public boolean hasEnabled()
       Whether the rotation is enabled.
       
      optional bool enabled = 1;
      Specified by:
      hasEnabled in interface SecretSyncConfig.SyncRotationConfigOrBuilder
      Returns:
      Whether the enabled field is set.
    • getEnabled

      public boolean getEnabled()
       Whether the rotation is enabled.
       
      optional bool enabled = 1;
      Specified by:
      getEnabled in interface SecretSyncConfig.SyncRotationConfigOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public SecretSyncConfig.SyncRotationConfig.Builder setEnabled(boolean value)
       Whether the rotation is enabled.
       
      optional bool enabled = 1;
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

       Whether the rotation is enabled.
       
      optional bool enabled = 1;
      Returns:
      This builder for chaining.
    • hasRotationInterval

      public boolean hasRotationInterval()
       The interval between two consecutive rotations. Default rotation interval
       is 2 minutes.
       
      optional .google.protobuf.Duration rotation_interval = 2;
      Specified by:
      hasRotationInterval in interface SecretSyncConfig.SyncRotationConfigOrBuilder
      Returns:
      Whether the rotationInterval field is set.
    • getRotationInterval

      public com.google.protobuf.Duration getRotationInterval()
       The interval between two consecutive rotations. Default rotation interval
       is 2 minutes.
       
      optional .google.protobuf.Duration rotation_interval = 2;
      Specified by:
      getRotationInterval in interface SecretSyncConfig.SyncRotationConfigOrBuilder
      Returns:
      The rotationInterval.
    • setRotationInterval

      public SecretSyncConfig.SyncRotationConfig.Builder setRotationInterval(com.google.protobuf.Duration value)
       The interval between two consecutive rotations. Default rotation interval
       is 2 minutes.
       
      optional .google.protobuf.Duration rotation_interval = 2;
    • setRotationInterval

      public SecretSyncConfig.SyncRotationConfig.Builder setRotationInterval(com.google.protobuf.Duration.Builder builderForValue)
       The interval between two consecutive rotations. Default rotation interval
       is 2 minutes.
       
      optional .google.protobuf.Duration rotation_interval = 2;
    • mergeRotationInterval

      public SecretSyncConfig.SyncRotationConfig.Builder mergeRotationInterval(com.google.protobuf.Duration value)
       The interval between two consecutive rotations. Default rotation interval
       is 2 minutes.
       
      optional .google.protobuf.Duration rotation_interval = 2;
    • clearRotationInterval

      public SecretSyncConfig.SyncRotationConfig.Builder clearRotationInterval()
       The interval between two consecutive rotations. Default rotation interval
       is 2 minutes.
       
      optional .google.protobuf.Duration rotation_interval = 2;
    • getRotationIntervalBuilder

      public com.google.protobuf.Duration.Builder getRotationIntervalBuilder()
       The interval between two consecutive rotations. Default rotation interval
       is 2 minutes.
       
      optional .google.protobuf.Duration rotation_interval = 2;
    • getRotationIntervalOrBuilder

      public com.google.protobuf.DurationOrBuilder getRotationIntervalOrBuilder()
       The interval between two consecutive rotations. Default rotation interval
       is 2 minutes.
       
      optional .google.protobuf.Duration rotation_interval = 2;
      Specified by:
      getRotationIntervalOrBuilder in interface SecretSyncConfig.SyncRotationConfigOrBuilder