Class CdnKey.Builder (0.14.0)

public static final class CdnKey.Builder extends GeneratedMessageV3.Builder<CdnKey.Builder> implements CdnKeyOrBuilder

Configuration for a CDN key. Used by the Video Stitcher to sign URIs for fetching video manifests and signing media segments for playback.

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

Implements

CdnKeyOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CdnKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CdnKey.Builder
Overrides

build()

public CdnKey build()
Returns
TypeDescription
CdnKey

buildPartial()

public CdnKey buildPartial()
Returns
TypeDescription
CdnKey

clear()

public CdnKey.Builder clear()
Returns
TypeDescription
CdnKey.Builder
Overrides

clearAkamaiCdnKey()

public CdnKey.Builder clearAkamaiCdnKey()

The configuration for an Akamai CDN key.

.google.cloud.video.stitcher.v1.AkamaiCdnKey akamai_cdn_key = 6;

Returns
TypeDescription
CdnKey.Builder

clearCdnKeyConfig()

public CdnKey.Builder clearCdnKeyConfig()
Returns
TypeDescription
CdnKey.Builder

clearField(Descriptors.FieldDescriptor field)

public CdnKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CdnKey.Builder
Overrides

clearGoogleCdnKey()

public CdnKey.Builder clearGoogleCdnKey()

The configuration for a Google Cloud CDN key.

.google.cloud.video.stitcher.v1.GoogleCdnKey google_cdn_key = 5;

Returns
TypeDescription
CdnKey.Builder

clearHostname()

public CdnKey.Builder clearHostname()

The hostname this key applies to.

string hostname = 4;

Returns
TypeDescription
CdnKey.Builder

This builder for chaining.

clearMediaCdnKey()

public CdnKey.Builder clearMediaCdnKey()

The configuration for a Media CDN key.

.google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8;

Returns
TypeDescription
CdnKey.Builder

clearName()

public CdnKey.Builder clearName()

The resource name of the CDN key, in the form of projects/{project}/locations/{location}/cdnKeys/{id}. The name is ignored when creating a CDN key.

string name = 1;

Returns
TypeDescription
CdnKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CdnKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CdnKey.Builder
Overrides

clone()

public CdnKey.Builder clone()
Returns
TypeDescription
CdnKey.Builder
Overrides

getAkamaiCdnKey()

public AkamaiCdnKey getAkamaiCdnKey()

The configuration for an Akamai CDN key.

.google.cloud.video.stitcher.v1.AkamaiCdnKey akamai_cdn_key = 6;

Returns
TypeDescription
AkamaiCdnKey

The akamaiCdnKey.

getAkamaiCdnKeyBuilder()

public AkamaiCdnKey.Builder getAkamaiCdnKeyBuilder()

The configuration for an Akamai CDN key.

.google.cloud.video.stitcher.v1.AkamaiCdnKey akamai_cdn_key = 6;

Returns
TypeDescription
AkamaiCdnKey.Builder

getAkamaiCdnKeyOrBuilder()

public AkamaiCdnKeyOrBuilder getAkamaiCdnKeyOrBuilder()

The configuration for an Akamai CDN key.

.google.cloud.video.stitcher.v1.AkamaiCdnKey akamai_cdn_key = 6;

Returns
TypeDescription
AkamaiCdnKeyOrBuilder

getCdnKeyConfigCase()

public CdnKey.CdnKeyConfigCase getCdnKeyConfigCase()
Returns
TypeDescription
CdnKey.CdnKeyConfigCase

getDefaultInstanceForType()

public CdnKey getDefaultInstanceForType()
Returns
TypeDescription
CdnKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGoogleCdnKey()

public GoogleCdnKey getGoogleCdnKey()

The configuration for a Google Cloud CDN key.

.google.cloud.video.stitcher.v1.GoogleCdnKey google_cdn_key = 5;

Returns
TypeDescription
GoogleCdnKey

The googleCdnKey.

getGoogleCdnKeyBuilder()

public GoogleCdnKey.Builder getGoogleCdnKeyBuilder()

The configuration for a Google Cloud CDN key.

.google.cloud.video.stitcher.v1.GoogleCdnKey google_cdn_key = 5;

Returns
TypeDescription
GoogleCdnKey.Builder

getGoogleCdnKeyOrBuilder()

public GoogleCdnKeyOrBuilder getGoogleCdnKeyOrBuilder()

The configuration for a Google Cloud CDN key.

.google.cloud.video.stitcher.v1.GoogleCdnKey google_cdn_key = 5;

Returns
TypeDescription
GoogleCdnKeyOrBuilder

getHostname()

public String getHostname()

The hostname this key applies to.

string hostname = 4;

Returns
TypeDescription
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

The hostname this key applies to.

string hostname = 4;

Returns
TypeDescription
ByteString

The bytes for hostname.

getMediaCdnKey()

public MediaCdnKey getMediaCdnKey()

The configuration for a Media CDN key.

.google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8;

Returns
TypeDescription
MediaCdnKey

The mediaCdnKey.

getMediaCdnKeyBuilder()

public MediaCdnKey.Builder getMediaCdnKeyBuilder()

The configuration for a Media CDN key.

.google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8;

Returns
TypeDescription
MediaCdnKey.Builder

getMediaCdnKeyOrBuilder()

public MediaCdnKeyOrBuilder getMediaCdnKeyOrBuilder()

The configuration for a Media CDN key.

.google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8;

Returns
TypeDescription
MediaCdnKeyOrBuilder

getName()

public String getName()

The resource name of the CDN key, in the form of projects/{project}/locations/{location}/cdnKeys/{id}. The name is ignored when creating a CDN key.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the CDN key, in the form of projects/{project}/locations/{location}/cdnKeys/{id}. The name is ignored when creating a CDN key.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasAkamaiCdnKey()

public boolean hasAkamaiCdnKey()

The configuration for an Akamai CDN key.

.google.cloud.video.stitcher.v1.AkamaiCdnKey akamai_cdn_key = 6;

Returns
TypeDescription
boolean

Whether the akamaiCdnKey field is set.

hasGoogleCdnKey()

public boolean hasGoogleCdnKey()

The configuration for a Google Cloud CDN key.

.google.cloud.video.stitcher.v1.GoogleCdnKey google_cdn_key = 5;

Returns
TypeDescription
boolean

Whether the googleCdnKey field is set.

hasMediaCdnKey()

public boolean hasMediaCdnKey()

The configuration for a Media CDN key.

.google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8;

Returns
TypeDescription
boolean

Whether the mediaCdnKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAkamaiCdnKey(AkamaiCdnKey value)

public CdnKey.Builder mergeAkamaiCdnKey(AkamaiCdnKey value)

The configuration for an Akamai CDN key.

.google.cloud.video.stitcher.v1.AkamaiCdnKey akamai_cdn_key = 6;

Parameter
NameDescription
valueAkamaiCdnKey
Returns
TypeDescription
CdnKey.Builder

mergeFrom(CdnKey other)

public CdnKey.Builder mergeFrom(CdnKey other)
Parameter
NameDescription
otherCdnKey
Returns
TypeDescription
CdnKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CdnKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CdnKey.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CdnKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CdnKey.Builder
Overrides

mergeGoogleCdnKey(GoogleCdnKey value)

public CdnKey.Builder mergeGoogleCdnKey(GoogleCdnKey value)

The configuration for a Google Cloud CDN key.

.google.cloud.video.stitcher.v1.GoogleCdnKey google_cdn_key = 5;

Parameter
NameDescription
valueGoogleCdnKey
Returns
TypeDescription
CdnKey.Builder

mergeMediaCdnKey(MediaCdnKey value)

public CdnKey.Builder mergeMediaCdnKey(MediaCdnKey value)

The configuration for a Media CDN key.

.google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8;

Parameter
NameDescription
valueMediaCdnKey
Returns
TypeDescription
CdnKey.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CdnKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CdnKey.Builder
Overrides

setAkamaiCdnKey(AkamaiCdnKey value)

public CdnKey.Builder setAkamaiCdnKey(AkamaiCdnKey value)

The configuration for an Akamai CDN key.

.google.cloud.video.stitcher.v1.AkamaiCdnKey akamai_cdn_key = 6;

Parameter
NameDescription
valueAkamaiCdnKey
Returns
TypeDescription
CdnKey.Builder

setAkamaiCdnKey(AkamaiCdnKey.Builder builderForValue)

public CdnKey.Builder setAkamaiCdnKey(AkamaiCdnKey.Builder builderForValue)

The configuration for an Akamai CDN key.

.google.cloud.video.stitcher.v1.AkamaiCdnKey akamai_cdn_key = 6;

Parameter
NameDescription
builderForValueAkamaiCdnKey.Builder
Returns
TypeDescription
CdnKey.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CdnKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CdnKey.Builder
Overrides

setGoogleCdnKey(GoogleCdnKey value)

public CdnKey.Builder setGoogleCdnKey(GoogleCdnKey value)

The configuration for a Google Cloud CDN key.

.google.cloud.video.stitcher.v1.GoogleCdnKey google_cdn_key = 5;

Parameter
NameDescription
valueGoogleCdnKey
Returns
TypeDescription
CdnKey.Builder

setGoogleCdnKey(GoogleCdnKey.Builder builderForValue)

public CdnKey.Builder setGoogleCdnKey(GoogleCdnKey.Builder builderForValue)

The configuration for a Google Cloud CDN key.

.google.cloud.video.stitcher.v1.GoogleCdnKey google_cdn_key = 5;

Parameter
NameDescription
builderForValueGoogleCdnKey.Builder
Returns
TypeDescription
CdnKey.Builder

setHostname(String value)

public CdnKey.Builder setHostname(String value)

The hostname this key applies to.

string hostname = 4;

Parameter
NameDescription
valueString

The hostname to set.

Returns
TypeDescription
CdnKey.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public CdnKey.Builder setHostnameBytes(ByteString value)

The hostname this key applies to.

string hostname = 4;

Parameter
NameDescription
valueByteString

The bytes for hostname to set.

Returns
TypeDescription
CdnKey.Builder

This builder for chaining.

setMediaCdnKey(MediaCdnKey value)

public CdnKey.Builder setMediaCdnKey(MediaCdnKey value)

The configuration for a Media CDN key.

.google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8;

Parameter
NameDescription
valueMediaCdnKey
Returns
TypeDescription
CdnKey.Builder

setMediaCdnKey(MediaCdnKey.Builder builderForValue)

public CdnKey.Builder setMediaCdnKey(MediaCdnKey.Builder builderForValue)

The configuration for a Media CDN key.

.google.cloud.video.stitcher.v1.MediaCdnKey media_cdn_key = 8;

Parameter
NameDescription
builderForValueMediaCdnKey.Builder
Returns
TypeDescription
CdnKey.Builder

setName(String value)

public CdnKey.Builder setName(String value)

The resource name of the CDN key, in the form of projects/{project}/locations/{location}/cdnKeys/{id}. The name is ignored when creating a CDN key.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
CdnKey.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CdnKey.Builder setNameBytes(ByteString value)

The resource name of the CDN key, in the form of projects/{project}/locations/{location}/cdnKeys/{id}. The name is ignored when creating a CDN key.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
CdnKey.Builder

This builder for chaining.

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

public CdnKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CdnKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CdnKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CdnKey.Builder
Overrides