Class CdnKey (0.44.0)

public final class CdnKey extends GeneratedMessageV3 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 Fields

AKAMAI_CDN_KEY_FIELD_NUMBER

public static final int AKAMAI_CDN_KEY_FIELD_NUMBER
Field Value
Type Description
int

GOOGLE_CDN_KEY_FIELD_NUMBER

public static final int GOOGLE_CDN_KEY_FIELD_NUMBER
Field Value
Type Description
int

HOSTNAME_FIELD_NUMBER

public static final int HOSTNAME_FIELD_NUMBER
Field Value
Type Description
int

MEDIA_CDN_KEY_FIELD_NUMBER

public static final int MEDIA_CDN_KEY_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CdnKey getDefaultInstance()
Returns
Type Description
CdnKey

getDescriptor()

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

newBuilder()

public static CdnKey.Builder newBuilder()
Returns
Type Description
CdnKey.Builder

newBuilder(CdnKey prototype)

public static CdnKey.Builder newBuilder(CdnKey prototype)
Parameter
Name Description
prototype CdnKey
Returns
Type Description
CdnKey.Builder

parseDelimitedFrom(InputStream input)

public static CdnKey parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CdnKey
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdnKey
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CdnKey parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CdnKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdnKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CdnKey parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CdnKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdnKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CdnKey parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CdnKey
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdnKey
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CdnKey parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CdnKey
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdnKey
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CdnKey parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CdnKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CdnKey
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CdnKey> parser()
Returns
Type Description
Parser<CdnKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAkamaiCdnKey()

public AkamaiCdnKey getAkamaiCdnKey()

The configuration for an Akamai CDN key.

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

Returns
Type Description
AkamaiCdnKey

The akamaiCdnKey.

getAkamaiCdnKeyOrBuilder()

public AkamaiCdnKeyOrBuilder getAkamaiCdnKeyOrBuilder()

The configuration for an Akamai CDN key.

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

Returns
Type Description
AkamaiCdnKeyOrBuilder

getCdnKeyConfigCase()

public CdnKey.CdnKeyConfigCase getCdnKeyConfigCase()
Returns
Type Description
CdnKey.CdnKeyConfigCase

getDefaultInstanceForType()

public CdnKey getDefaultInstanceForType()
Returns
Type Description
CdnKey

getGoogleCdnKey()

public GoogleCdnKey getGoogleCdnKey()

The configuration for a Google Cloud CDN key.

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

Returns
Type Description
GoogleCdnKey

The googleCdnKey.

getGoogleCdnKeyOrBuilder()

public GoogleCdnKeyOrBuilder getGoogleCdnKeyOrBuilder()

The configuration for a Google Cloud CDN key.

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

Returns
Type Description
GoogleCdnKeyOrBuilder

getHostname()

public String getHostname()

The hostname this key applies to.

string hostname = 4;

Returns
Type Description
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

The hostname this key applies to.

string hostname = 4;

Returns
Type Description
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
Type Description
MediaCdnKey

The mediaCdnKey.

getMediaCdnKeyOrBuilder()

public MediaCdnKeyOrBuilder getMediaCdnKeyOrBuilder()

The configuration for a Media CDN key.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<CdnKey> getParserForType()
Returns
Type Description
Parser<CdnKey>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAkamaiCdnKey()

public boolean hasAkamaiCdnKey()

The configuration for an Akamai CDN key.

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

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the mediaCdnKey field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CdnKey.Builder newBuilderForType()
Returns
Type Description
CdnKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CdnKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CdnKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CdnKey.Builder toBuilder()
Returns
Type Description
CdnKey.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException