Class MediaCdnKey.Builder (0.45.0)

public static final class MediaCdnKey.Builder extends GeneratedMessageV3.Builder<MediaCdnKey.Builder> implements MediaCdnKeyOrBuilder

Configuration for a Media CDN key.

Protobuf type google.cloud.video.stitcher.v1.MediaCdnKey

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MediaCdnKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MediaCdnKey.Builder
Overrides

build()

public MediaCdnKey build()
Returns
Type Description
MediaCdnKey

buildPartial()

public MediaCdnKey buildPartial()
Returns
Type Description
MediaCdnKey

clear()

public MediaCdnKey.Builder clear()
Returns
Type Description
MediaCdnKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MediaCdnKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MediaCdnKey.Builder
Overrides

clearKeyName()

public MediaCdnKey.Builder clearKeyName()

The keyset name of the Media CDN key.

string key_name = 2;

Returns
Type Description
MediaCdnKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MediaCdnKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MediaCdnKey.Builder
Overrides

clearPrivateKey()

public MediaCdnKey.Builder clearPrivateKey()

Input only. 64-byte ed25519 private key for this Media CDN key.

bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
MediaCdnKey.Builder

This builder for chaining.

clearTokenConfig()

public MediaCdnKey.Builder clearTokenConfig()

Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature.

.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MediaCdnKey.Builder

clone()

public MediaCdnKey.Builder clone()
Returns
Type Description
MediaCdnKey.Builder
Overrides

getDefaultInstanceForType()

public MediaCdnKey getDefaultInstanceForType()
Returns
Type Description
MediaCdnKey

getDescriptorForType()

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

getKeyName()

public String getKeyName()

The keyset name of the Media CDN key.

string key_name = 2;

Returns
Type Description
String

The keyName.

getKeyNameBytes()

public ByteString getKeyNameBytes()

The keyset name of the Media CDN key.

string key_name = 2;

Returns
Type Description
ByteString

The bytes for keyName.

getPrivateKey()

public ByteString getPrivateKey()

Input only. 64-byte ed25519 private key for this Media CDN key.

bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The privateKey.

getTokenConfig()

public MediaCdnKey.TokenConfig getTokenConfig()

Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature.

.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MediaCdnKey.TokenConfig

The tokenConfig.

getTokenConfigBuilder()

public MediaCdnKey.TokenConfig.Builder getTokenConfigBuilder()

Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature.

.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MediaCdnKey.TokenConfig.Builder

getTokenConfigOrBuilder()

public MediaCdnKey.TokenConfigOrBuilder getTokenConfigOrBuilder()

Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature.

.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MediaCdnKey.TokenConfigOrBuilder

hasTokenConfig()

public boolean hasTokenConfig()

Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature.

.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the tokenConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MediaCdnKey other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTokenConfig(MediaCdnKey.TokenConfig value)

public MediaCdnKey.Builder mergeTokenConfig(MediaCdnKey.TokenConfig value)

Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature.

.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MediaCdnKey.TokenConfig
Returns
Type Description
MediaCdnKey.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MediaCdnKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MediaCdnKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MediaCdnKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MediaCdnKey.Builder
Overrides

setKeyName(String value)

public MediaCdnKey.Builder setKeyName(String value)

The keyset name of the Media CDN key.

string key_name = 2;

Parameter
Name Description
value String

The keyName to set.

Returns
Type Description
MediaCdnKey.Builder

This builder for chaining.

setKeyNameBytes(ByteString value)

public MediaCdnKey.Builder setKeyNameBytes(ByteString value)

The keyset name of the Media CDN key.

string key_name = 2;

Parameter
Name Description
value ByteString

The bytes for keyName to set.

Returns
Type Description
MediaCdnKey.Builder

This builder for chaining.

setPrivateKey(ByteString value)

public MediaCdnKey.Builder setPrivateKey(ByteString value)

Input only. 64-byte ed25519 private key for this Media CDN key.

bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ByteString

The privateKey to set.

Returns
Type Description
MediaCdnKey.Builder

This builder for chaining.

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

public MediaCdnKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MediaCdnKey.Builder
Overrides

setTokenConfig(MediaCdnKey.TokenConfig value)

public MediaCdnKey.Builder setTokenConfig(MediaCdnKey.TokenConfig value)

Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature.

.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MediaCdnKey.TokenConfig
Returns
Type Description
MediaCdnKey.Builder

setTokenConfig(MediaCdnKey.TokenConfig.Builder builderForValue)

public MediaCdnKey.Builder setTokenConfig(MediaCdnKey.TokenConfig.Builder builderForValue)

Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature.

.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue MediaCdnKey.TokenConfig.Builder
Returns
Type Description
MediaCdnKey.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MediaCdnKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MediaCdnKey.Builder
Overrides