Class Encryption.SecretManagerSource.Builder (1.82.0)

public static final class Encryption.SecretManagerSource.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Encryption.SecretManagerSource build()
Returns
Type Description
Encryption.SecretManagerSource

buildPartial()

public Encryption.SecretManagerSource buildPartial()
Returns
Type Description
Encryption.SecretManagerSource

clear()

public Encryption.SecretManagerSource.Builder clear()
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

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
Type Description
Encryption.SecretManagerSource.Builder

This builder for chaining.

getDefaultInstanceForType()

public Encryption.SecretManagerSource getDefaultInstanceForType()
Returns
Type Description
Encryption.SecretManagerSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
String

The secretVersion.

getSecretVersionBytes()

public 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];

Returns
Type Description
ByteString

The bytes for secretVersion.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Encryption.SecretManagerSource other)

public Encryption.SecretManagerSource.Builder mergeFrom(Encryption.SecretManagerSource other)
Parameter
Name Description
other Encryption.SecretManagerSource
Returns
Type Description
Encryption.SecretManagerSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Encryption.SecretManagerSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Encryption.SecretManagerSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

setSecretVersion(String value)

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];

Parameter
Name Description
value String

The secretVersion to set.

Returns
Type Description
Encryption.SecretManagerSource.Builder

This builder for chaining.

setSecretVersionBytes(ByteString value)

public Encryption.SecretManagerSource.Builder setSecretVersionBytes(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];

Parameter
Name Description
value ByteString

The bytes for secretVersion to set.

Returns
Type Description
Encryption.SecretManagerSource.Builder

This builder for chaining.