Class GenerateStreamHlsTokenResponse (0.11.0)

public final class GenerateStreamHlsTokenResponse extends GeneratedMessageV3 implements GenerateStreamHlsTokenResponseOrBuilder

Response message for GenerateStreamHlsToken.

Protobuf type google.cloud.visionai.v1.GenerateStreamHlsTokenResponse

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerateStreamHlsTokenResponse

Static Fields

EXPIRATION_TIME_FIELD_NUMBER

public static final int EXPIRATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

TOKEN_FIELD_NUMBER

public static final int TOKEN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateStreamHlsTokenResponse getDefaultInstance()
Returns
Type Description
GenerateStreamHlsTokenResponse

getDescriptor()

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

newBuilder()

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

newBuilder(GenerateStreamHlsTokenResponse prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GenerateStreamHlsTokenResponse getDefaultInstanceForType()
Returns
Type Description
GenerateStreamHlsTokenResponse

getExpirationTime()

public Timestamp getExpirationTime()

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
Timestamp

The expirationTime.

getExpirationTimeOrBuilder()

public TimestampOrBuilder getExpirationTimeOrBuilder()

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
TimestampOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getToken()

public String getToken()

The generated JWT token.

The caller should insert this token to the authorization header of the HTTP requests to get the HLS playlist manifest and the video chunks. eg: curl -H "Authorization: Bearer $TOKEN" https://domain.com/test-stream.playback/master.m3u8

string token = 1;

Returns
Type Description
String

The token.

getTokenBytes()

public ByteString getTokenBytes()

The generated JWT token.

The caller should insert this token to the authorization header of the HTTP requests to get the HLS playlist manifest and the video chunks. eg: curl -H "Authorization: Bearer $TOKEN" https://domain.com/test-stream.playback/master.m3u8

string token = 1;

Returns
Type Description
ByteString

The bytes for token.

hasExpirationTime()

public boolean hasExpirationTime()

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
boolean

Whether the expirationTime 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 GenerateStreamHlsTokenResponse.Builder newBuilderForType()
Returns
Type Description
GenerateStreamHlsTokenResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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