Class CdnKey (0.4.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
TypeDescription
int

GOOGLE_CDN_KEY_FIELD_NUMBER

public static final int GOOGLE_CDN_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

HOSTNAME_FIELD_NUMBER

public static final int HOSTNAME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CdnKey getDefaultInstance()
Returns
TypeDescription
CdnKey

getDescriptor()

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

newBuilder()

public static CdnKey.Builder newBuilder()
Returns
TypeDescription
CdnKey.Builder

newBuilder(CdnKey prototype)

public static CdnKey.Builder newBuilder(CdnKey prototype)
Parameter
NameDescription
prototypeCdnKey
Returns
TypeDescription
CdnKey.Builder

parseDelimitedFrom(InputStream input)

public static CdnKey parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CdnKey parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CdnKey parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CdnKey parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CdnKey parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CdnKey parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CdnKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CdnKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CdnKey> parser()
Returns
TypeDescription
Parser<CdnKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

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.

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.

getParserForType()

public Parser<CdnKey> getParserForType()
Returns
TypeDescription
Parser<CdnKey>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CdnKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CdnKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException