Class Rotation.ManagedRotationStatus.Builder

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

public static final class Rotation.ManagedRotationStatus.Builder extends com.google.protobuf.GeneratedMessage.Builder<Rotation.ManagedRotationStatus.Builder> implements Rotation.ManagedRotationStatusOrBuilder
 Represents the status of a managed rotation.

 This is applicable only to Typed Secrets. It indicates whether the
 rotation is active and any errors that may have occurred during the
 asynchronous managed rotation.
 
Protobuf type google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
  • 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.ManagedRotationStatus.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.ManagedRotationStatus.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.ManagedRotationStatus.Builder>
    • getDefaultInstanceForType

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

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

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

      public int getStateValue()
       Output only. Indicates whether the Managed Rotation is active or not.
       
      .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface Rotation.ManagedRotationStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Rotation.ManagedRotationStatus.Builder setStateValue(int value)
       Output only. Indicates whether the Managed Rotation is active or not.
       
      .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       Output only. Indicates whether the Managed Rotation is active or not.
       
      .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface Rotation.ManagedRotationStatusOrBuilder
      Returns:
      The state.
    • setState

       Output only. Indicates whether the Managed Rotation is active or not.
       
      .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Output only. Indicates whether the Managed Rotation is active or not.
       
      .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasError

      public boolean hasError()
       Output only. Displays customer-facing issues that occurred during an
       asynchronous managed rotation. For example, if there are some permission
       errors.
       
      .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasError in interface Rotation.ManagedRotationStatusOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       Output only. Displays customer-facing issues that occurred during an
       asynchronous managed rotation. For example, if there are some permission
       errors.
       
      .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getError in interface Rotation.ManagedRotationStatusOrBuilder
      Returns:
      The error.
    • setError

       Output only. Displays customer-facing issues that occurred during an
       asynchronous managed rotation. For example, if there are some permission
       errors.
       
      .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setError

      public Rotation.ManagedRotationStatus.Builder setError(Status.Builder builderForValue)
       Output only. Displays customer-facing issues that occurred during an
       asynchronous managed rotation. For example, if there are some permission
       errors.
       
      .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeError

       Output only. Displays customer-facing issues that occurred during an
       asynchronous managed rotation. For example, if there are some permission
       errors.
       
      .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearError

       Output only. Displays customer-facing issues that occurred during an
       asynchronous managed rotation. For example, if there are some permission
       errors.
       
      .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorBuilder

      public Status.Builder getErrorBuilder()
       Output only. Displays customer-facing issues that occurred during an
       asynchronous managed rotation. For example, if there are some permission
       errors.
       
      .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       Output only. Displays customer-facing issues that occurred during an
       asynchronous managed rotation. For example, if there are some permission
       errors.
       
      .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorOrBuilder in interface Rotation.ManagedRotationStatusOrBuilder