Class Encryption.SecretManagerSource.Builder

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Encryption.SecretManagerSource.Builder>
      • 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.