Class Encryption.Builder (1.77.0)

publicstaticfinalclass Encryption.BuilderextendsGeneratedMessageV3.Builder<Encryption.Builder>implementsEncryptionOrBuilder

Encryption settings.

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

Implements

EncryptionOrBuilder

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.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Encryption.Builder
Overrides

build()

publicEncryptionbuild()
Returns
Type Description
Encryption

buildPartial()

publicEncryptionbuildPartial()
Returns
Type Description
Encryption

clear()

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

clearAes128()

publicEncryption.BuilderclearAes128()

Configuration for AES-128 encryption.

.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3;

Returns
Type Description
Encryption.Builder

clearDrmSystems()

publicEncryption.BuilderclearDrmSystems()

Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.

.google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Encryption.Builder

clearEncryptionMode()

publicEncryption.BuilderclearEncryptionMode()
Returns
Type Description
Encryption.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

publicEncryption.BuilderclearId()

Required. Identifier for this set of encryption options.

string id = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Encryption.Builder

This builder for chaining.

clearMpegCenc()

publicEncryption.BuilderclearMpegCenc()

Configuration for MPEG Common Encryption (MPEG-CENC).

.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5;

Returns
Type Description
Encryption.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSampleAes()

publicEncryption.BuilderclearSampleAes()

Configuration for SAMPLE-AES encryption.

.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4;

Returns
Type Description
Encryption.Builder

clearSecretManagerKeySource()

publicEncryption.BuilderclearSecretManagerKeySource()

Keys are stored in Google Secret Manager.

.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7;

Returns
Type Description
Encryption.Builder

clearSecretSource()

publicEncryption.BuilderclearSecretSource()
Returns
Type Description
Encryption.Builder

clone()

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

getAes128()

publicEncryption.Aes128EncryptiongetAes128()

Configuration for AES-128 encryption.

.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3;

Returns
Type Description
Encryption.Aes128Encryption

The aes128.

getAes128Builder()

publicEncryption.Aes128Encryption.BuildergetAes128Builder()

Configuration for AES-128 encryption.

.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3;

Returns
Type Description
Encryption.Aes128Encryption.Builder

getAes128OrBuilder()

publicEncryption.Aes128EncryptionOrBuildergetAes128OrBuilder()

Configuration for AES-128 encryption.

.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3;

Returns
Type Description
Encryption.Aes128EncryptionOrBuilder

getDefaultInstanceForType()

publicEncryptiongetDefaultInstanceForType()
Returns
Type Description
Encryption

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDrmSystems()

publicEncryption.DrmSystemsgetDrmSystems()

Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.

.google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Encryption.DrmSystems

The drmSystems.

getDrmSystemsBuilder()

publicEncryption.DrmSystems.BuildergetDrmSystemsBuilder()

Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.

.google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Encryption.DrmSystems.Builder

getDrmSystemsOrBuilder()

publicEncryption.DrmSystemsOrBuildergetDrmSystemsOrBuilder()

Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.

.google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Encryption.DrmSystemsOrBuilder

getEncryptionModeCase()

publicEncryption.EncryptionModeCasegetEncryptionModeCase()
Returns
Type Description
Encryption.EncryptionModeCase

getId()

publicStringgetId()

Required. Identifier for this set of encryption options.

string id = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The id.

getIdBytes()

publicByteStringgetIdBytes()

Required. Identifier for this set of encryption options.

string id = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for id.

getMpegCenc()

publicEncryption.MpegCommonEncryptiongetMpegCenc()

Configuration for MPEG Common Encryption (MPEG-CENC).

.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5;

Returns
Type Description
Encryption.MpegCommonEncryption

The mpegCenc.

getMpegCencBuilder()

publicEncryption.MpegCommonEncryption.BuildergetMpegCencBuilder()

Configuration for MPEG Common Encryption (MPEG-CENC).

.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5;

Returns
Type Description
Encryption.MpegCommonEncryption.Builder

getMpegCencOrBuilder()

publicEncryption.MpegCommonEncryptionOrBuildergetMpegCencOrBuilder()

Configuration for MPEG Common Encryption (MPEG-CENC).

.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5;

Returns
Type Description
Encryption.MpegCommonEncryptionOrBuilder

getSampleAes()

publicEncryption.SampleAesEncryptiongetSampleAes()

Configuration for SAMPLE-AES encryption.

.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4;

Returns
Type Description
Encryption.SampleAesEncryption

The sampleAes.

getSampleAesBuilder()

publicEncryption.SampleAesEncryption.BuildergetSampleAesBuilder()

Configuration for SAMPLE-AES encryption.

.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4;

Returns
Type Description
Encryption.SampleAesEncryption.Builder

getSampleAesOrBuilder()

publicEncryption.SampleAesEncryptionOrBuildergetSampleAesOrBuilder()

Configuration for SAMPLE-AES encryption.

.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4;

Returns
Type Description
Encryption.SampleAesEncryptionOrBuilder

getSecretManagerKeySource()

publicEncryption.SecretManagerSourcegetSecretManagerKeySource()

Keys are stored in Google Secret Manager.

.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7;

Returns
Type Description
Encryption.SecretManagerSource

The secretManagerKeySource.

getSecretManagerKeySourceBuilder()

publicEncryption.SecretManagerSource.BuildergetSecretManagerKeySourceBuilder()

Keys are stored in Google Secret Manager.

.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7;

Returns
Type Description
Encryption.SecretManagerSource.Builder

getSecretManagerKeySourceOrBuilder()

publicEncryption.SecretManagerSourceOrBuildergetSecretManagerKeySourceOrBuilder()

Keys are stored in Google Secret Manager.

.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7;

Returns
Type Description
Encryption.SecretManagerSourceOrBuilder

getSecretSourceCase()

publicEncryption.SecretSourceCasegetSecretSourceCase()
Returns
Type Description
Encryption.SecretSourceCase

hasAes128()

publicbooleanhasAes128()

Configuration for AES-128 encryption.

.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3;

Returns
Type Description
boolean

Whether the aes128 field is set.

hasDrmSystems()

publicbooleanhasDrmSystems()

Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.

.google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the drmSystems field is set.

hasMpegCenc()

publicbooleanhasMpegCenc()

Configuration for MPEG Common Encryption (MPEG-CENC).

.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5;

Returns
Type Description
boolean

Whether the mpegCenc field is set.

hasSampleAes()

publicbooleanhasSampleAes()

Configuration for SAMPLE-AES encryption.

.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4;

Returns
Type Description
boolean

Whether the sampleAes field is set.

hasSecretManagerKeySource()

publicbooleanhasSecretManagerKeySource()

Keys are stored in Google Secret Manager.

.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7;

Returns
Type Description
boolean

Whether the secretManagerKeySource field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeAes128(Encryption.Aes128Encryption value)

publicEncryption.BuildermergeAes128(Encryption.Aes128Encryptionvalue)

Configuration for AES-128 encryption.

.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3;

Parameter
Name Description
value Encryption.Aes128Encryption
Returns
Type Description
Encryption.Builder

mergeDrmSystems(Encryption.DrmSystems value)

publicEncryption.BuildermergeDrmSystems(Encryption.DrmSystemsvalue)

Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.

.google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Encryption.DrmSystems
Returns
Type Description
Encryption.Builder

mergeFrom(Encryption other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMpegCenc(Encryption.MpegCommonEncryption value)

publicEncryption.BuildermergeMpegCenc(Encryption.MpegCommonEncryptionvalue)

Configuration for MPEG Common Encryption (MPEG-CENC).

.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5;

Parameter
Name Description
value Encryption.MpegCommonEncryption
Returns
Type Description
Encryption.Builder

mergeSampleAes(Encryption.SampleAesEncryption value)

publicEncryption.BuildermergeSampleAes(Encryption.SampleAesEncryptionvalue)

Configuration for SAMPLE-AES encryption.

.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4;

Parameter
Name Description
value Encryption.SampleAesEncryption
Returns
Type Description
Encryption.Builder

mergeSecretManagerKeySource(Encryption.SecretManagerSource value)

publicEncryption.BuildermergeSecretManagerKeySource(Encryption.SecretManagerSourcevalue)

Keys are stored in Google Secret Manager.

.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7;

Parameter
Name Description
value Encryption.SecretManagerSource
Returns
Type Description
Encryption.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAes128(Encryption.Aes128Encryption value)

publicEncryption.BuildersetAes128(Encryption.Aes128Encryptionvalue)

Configuration for AES-128 encryption.

.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3;

Parameter
Name Description
value Encryption.Aes128Encryption
Returns
Type Description
Encryption.Builder

setAes128(Encryption.Aes128Encryption.Builder builderForValue)

publicEncryption.BuildersetAes128(Encryption.Aes128Encryption.BuilderbuilderForValue)

Configuration for AES-128 encryption.

.google.cloud.video.transcoder.v1.Encryption.Aes128Encryption aes_128 = 3;

Parameter
Name Description
builderForValue Encryption.Aes128Encryption.Builder
Returns
Type Description
Encryption.Builder

setDrmSystems(Encryption.DrmSystems value)

publicEncryption.BuildersetDrmSystems(Encryption.DrmSystemsvalue)

Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.

.google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Encryption.DrmSystems
Returns
Type Description
Encryption.Builder

setDrmSystems(Encryption.DrmSystems.Builder builderForValue)

publicEncryption.BuildersetDrmSystems(Encryption.DrmSystems.BuilderbuilderForValue)

Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.

.google.cloud.video.transcoder.v1.Encryption.DrmSystems drm_systems = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Encryption.DrmSystems.Builder
Returns
Type Description
Encryption.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

publicEncryption.BuildersetId(Stringvalue)

Required. Identifier for this set of encryption options.

string id = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Encryption.Builder

This builder for chaining.

setIdBytes(ByteString value)

publicEncryption.BuildersetIdBytes(ByteStringvalue)

Required. Identifier for this set of encryption options.

string id = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Encryption.Builder

This builder for chaining.

setMpegCenc(Encryption.MpegCommonEncryption value)

publicEncryption.BuildersetMpegCenc(Encryption.MpegCommonEncryptionvalue)

Configuration for MPEG Common Encryption (MPEG-CENC).

.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5;

Parameter
Name Description
value Encryption.MpegCommonEncryption
Returns
Type Description
Encryption.Builder

setMpegCenc(Encryption.MpegCommonEncryption.Builder builderForValue)

publicEncryption.BuildersetMpegCenc(Encryption.MpegCommonEncryption.BuilderbuilderForValue)

Configuration for MPEG Common Encryption (MPEG-CENC).

.google.cloud.video.transcoder.v1.Encryption.MpegCommonEncryption mpeg_cenc = 5;

Parameter
Name Description
builderForValue Encryption.MpegCommonEncryption.Builder
Returns
Type Description
Encryption.Builder

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

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

setSampleAes(Encryption.SampleAesEncryption value)

publicEncryption.BuildersetSampleAes(Encryption.SampleAesEncryptionvalue)

Configuration for SAMPLE-AES encryption.

.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4;

Parameter
Name Description
value Encryption.SampleAesEncryption
Returns
Type Description
Encryption.Builder

setSampleAes(Encryption.SampleAesEncryption.Builder builderForValue)

publicEncryption.BuildersetSampleAes(Encryption.SampleAesEncryption.BuilderbuilderForValue)

Configuration for SAMPLE-AES encryption.

.google.cloud.video.transcoder.v1.Encryption.SampleAesEncryption sample_aes = 4;

Parameter
Name Description
builderForValue Encryption.SampleAesEncryption.Builder
Returns
Type Description
Encryption.Builder

setSecretManagerKeySource(Encryption.SecretManagerSource value)

publicEncryption.BuildersetSecretManagerKeySource(Encryption.SecretManagerSourcevalue)

Keys are stored in Google Secret Manager.

.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7;

Parameter
Name Description
value Encryption.SecretManagerSource
Returns
Type Description
Encryption.Builder

setSecretManagerKeySource(Encryption.SecretManagerSource.Builder builderForValue)

publicEncryption.BuildersetSecretManagerKeySource(Encryption.SecretManagerSource.BuilderbuilderForValue)

Keys are stored in Google Secret Manager.

.google.cloud.video.transcoder.v1.Encryption.SecretManagerSource secret_manager_key_source = 7;

Parameter
Name Description
builderForValue Encryption.SecretManagerSource.Builder
Returns
Type Description
Encryption.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalEncryption.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Encryption.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.