Class EnableManagedRotationRequest.Builder

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

public static final class EnableManagedRotationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<EnableManagedRotationRequest.Builder> implements EnableManagedRotationRequestOrBuilder
 Request message for
 [SecretManagerService.EnableManagedRotation][google.cloud.secretmanager.v1.SecretManagerService.EnableManagedRotation].
 
Protobuf type google.cloud.secretmanager.v1.EnableManagedRotationRequest
  • 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<EnableManagedRotationRequest.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<EnableManagedRotationRequest.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<EnableManagedRotationRequest.Builder>
    • getDefaultInstanceForType

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

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

      public EnableManagedRotationRequest.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<EnableManagedRotationRequest.Builder>
      Throws:
      IOException
    • getCredentialsCase

      public EnableManagedRotationRequest.CredentialsCase getCredentialsCase()
      Specified by:
      getCredentialsCase in interface EnableManagedRotationRequestOrBuilder
    • clearCredentials

      public EnableManagedRotationRequest.Builder clearCredentials()
    • getParent

      public String getParent()
       Required. The resource name of the
       [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
       [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
       `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface EnableManagedRotationRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the
       [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
       [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
       `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface EnableManagedRotationRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public EnableManagedRotationRequest.Builder setParent(String value)
       Required. The resource name of the
       [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
       [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
       `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The resource name of the
       [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
       [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
       `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public EnableManagedRotationRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the
       [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
       [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
       `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasCloudSqlSingleUserCredentials

      public boolean hasCloudSqlSingleUserCredentials()
       Credentials required for Cloud SQL DB for Single user Managed Rotation.
       
      .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
      Specified by:
      hasCloudSqlSingleUserCredentials in interface EnableManagedRotationRequestOrBuilder
      Returns:
      Whether the cloudSqlSingleUserCredentials field is set.
    • getCloudSqlSingleUserCredentials

      public EnableManagedRotationRequest.CloudSQLSingleUserCredentials getCloudSqlSingleUserCredentials()
       Credentials required for Cloud SQL DB for Single user Managed Rotation.
       
      .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
      Specified by:
      getCloudSqlSingleUserCredentials in interface EnableManagedRotationRequestOrBuilder
      Returns:
      The cloudSqlSingleUserCredentials.
    • setCloudSqlSingleUserCredentials

       Credentials required for Cloud SQL DB for Single user Managed Rotation.
       
      .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
    • setCloudSqlSingleUserCredentials

       Credentials required for Cloud SQL DB for Single user Managed Rotation.
       
      .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
    • mergeCloudSqlSingleUserCredentials

       Credentials required for Cloud SQL DB for Single user Managed Rotation.
       
      .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
    • clearCloudSqlSingleUserCredentials

      public EnableManagedRotationRequest.Builder clearCloudSqlSingleUserCredentials()
       Credentials required for Cloud SQL DB for Single user Managed Rotation.
       
      .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
    • getCloudSqlSingleUserCredentialsBuilder

      public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder getCloudSqlSingleUserCredentialsBuilder()
       Credentials required for Cloud SQL DB for Single user Managed Rotation.
       
      .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
    • getCloudSqlSingleUserCredentialsOrBuilder

      public EnableManagedRotationRequest.CloudSQLSingleUserCredentialsOrBuilder getCloudSqlSingleUserCredentialsOrBuilder()
       Credentials required for Cloud SQL DB for Single user Managed Rotation.
       
      .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
      Specified by:
      getCloudSqlSingleUserCredentialsOrBuilder in interface EnableManagedRotationRequestOrBuilder