Class Encryption.SecretManagerSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Encryption.SecretManagerSource.Builder>
com.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource.Builder
All Implemented Interfaces:
Encryption.SecretManagerSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Encryption.SecretManagerSource

public static final class Encryption.SecretManagerSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<Encryption.SecretManagerSource.Builder> implements Encryption.SecretManagerSourceOrBuilder
 Configuration for secrets stored in Google Secret Manager.
 
Protobuf type google.cloud.video.transcoder.v1.Encryption.SecretManagerSource
  • 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<Encryption.SecretManagerSource.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<Encryption.SecretManagerSource.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<Encryption.SecretManagerSource.Builder>
    • getDefaultInstanceForType

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

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

      public Encryption.SecretManagerSource.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<Encryption.SecretManagerSource.Builder>
      Throws:
      IOException
    • getSecretVersion

      public String getSecretVersion()
       Required. The name of the Secret Version containing the encryption key in
       the following format:
       `projects/{project}/secrets/{secret_id}/versions/{version_number}`
      
       Note that only numbered versions are supported. Aliases like "latest" are
       not supported.
       
      string secret_version = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecretVersion in interface Encryption.SecretManagerSourceOrBuilder
      Returns:
      The secretVersion.
    • getSecretVersionBytes

      public com.google.protobuf.ByteString getSecretVersionBytes()
       Required. The name of the Secret Version containing the encryption key in
       the following format:
       `projects/{project}/secrets/{secret_id}/versions/{version_number}`
      
       Note that only numbered versions are supported. Aliases like "latest" are
       not supported.
       
      string secret_version = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecretVersionBytes in interface Encryption.SecretManagerSourceOrBuilder
      Returns:
      The bytes for secretVersion.
    • setSecretVersion

      public Encryption.SecretManagerSource.Builder setSecretVersion(String value)
       Required. The name of the Secret Version containing the encryption key in
       the following format:
       `projects/{project}/secrets/{secret_id}/versions/{version_number}`
      
       Note that only numbered versions are supported. Aliases like "latest" are
       not supported.
       
      string secret_version = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The secretVersion to set.
      Returns:
      This builder for chaining.
    • clearSecretVersion

      public Encryption.SecretManagerSource.Builder clearSecretVersion()
       Required. The name of the Secret Version containing the encryption key in
       the following format:
       `projects/{project}/secrets/{secret_id}/versions/{version_number}`
      
       Note that only numbered versions are supported. Aliases like "latest" are
       not supported.
       
      string secret_version = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSecretVersionBytes

      public Encryption.SecretManagerSource.Builder setSecretVersionBytes(com.google.protobuf.ByteString value)
       Required. The name of the Secret Version containing the encryption key in
       the following format:
       `projects/{project}/secrets/{secret_id}/versions/{version_number}`
      
       Note that only numbered versions are supported. Aliases like "latest" are
       not supported.
       
      string secret_version = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for secretVersion to set.
      Returns:
      This builder for chaining.