Class Encryption.SecretManagerSource.Builder (1.56.0)

publicstaticfinalclass Encryption.SecretManagerSource.BuilderextendsGeneratedMessageV3.Builder<Encryption.SecretManagerSource.Builder>implementsEncryption.SecretManagerSourceOrBuilder

Configuration for secrets stored in Google Secret Manager.

Protobuf type google.cloud.video.transcoder.v1.Encryption.SecretManagerSource

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicEncryption.SecretManagerSource.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

build()

publicEncryption.SecretManagerSourcebuild()
Returns
Type Description
Encryption.SecretManagerSource

buildPartial()

publicEncryption.SecretManagerSourcebuildPartial()
Returns
Type Description
Encryption.SecretManagerSource

clear()

publicEncryption.SecretManagerSource.Builderclear()
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicEncryption.SecretManagerSource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicEncryption.SecretManagerSource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

clearSecretVersion()

publicEncryption.SecretManagerSource.BuilderclearSecretVersion()

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.

clone()

publicEncryption.SecretManagerSource.Builderclone()
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

getDefaultInstanceForType()

publicEncryption.SecretManagerSourcegetDefaultInstanceForType()
Returns
Type Description
Encryption.SecretManagerSource

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSecretVersion()

publicStringgetSecretVersion()

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()

publicByteStringgetSecretVersionBytes()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Encryption.SecretManagerSource other)

publicEncryption.SecretManagerSource.BuildermergeFrom(Encryption.SecretManagerSourceother)
Parameter
Name Description
other Encryption.SecretManagerSource
Returns
Type Description
Encryption.SecretManagerSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicEncryption.SecretManagerSource.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicEncryption.SecretManagerSource.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalEncryption.SecretManagerSource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicEncryption.SecretManagerSource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicEncryption.SecretManagerSource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

setSecretVersion(String value)

publicEncryption.SecretManagerSource.BuildersetSecretVersion(Stringvalue)

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)

publicEncryption.SecretManagerSource.BuildersetSecretVersionBytes(ByteStringvalue)

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.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalEncryption.SecretManagerSource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Encryption.SecretManagerSource.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.