Class GenerateStreamHlsTokenResponse.Builder (0.10.0)

public static final class GenerateStreamHlsTokenResponse.Builder extends GeneratedMessageV3.Builder<GenerateStreamHlsTokenResponse.Builder> implements GenerateStreamHlsTokenResponseOrBuilder

Response message for GenerateStreamHlsToken.

Protobuf type google.cloud.visionai.v1.GenerateStreamHlsTokenResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateStreamHlsTokenResponse build()
Returns
Type Description
GenerateStreamHlsTokenResponse

buildPartial()

public GenerateStreamHlsTokenResponse buildPartial()
Returns
Type Description
GenerateStreamHlsTokenResponse

clear()

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

clearExpirationTime()

public GenerateStreamHlsTokenResponse.Builder clearExpirationTime()

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
GenerateStreamHlsTokenResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearToken()

public GenerateStreamHlsTokenResponse.Builder clearToken()

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
GenerateStreamHlsTokenResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GenerateStreamHlsTokenResponse getDefaultInstanceForType()
Returns
Type Description
GenerateStreamHlsTokenResponse

getDescriptorForType()

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

getExpirationTime()

public Timestamp getExpirationTime()

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
Timestamp

The expirationTime.

getExpirationTimeBuilder()

public Timestamp.Builder getExpirationTimeBuilder()

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
Builder

getExpirationTimeOrBuilder()

public TimestampOrBuilder getExpirationTimeOrBuilder()

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
TimestampOrBuilder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpirationTime(Timestamp value)

public GenerateStreamHlsTokenResponse.Builder mergeExpirationTime(Timestamp value)

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateStreamHlsTokenResponse.Builder

mergeFrom(GenerateStreamHlsTokenResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExpirationTime(Timestamp value)

public GenerateStreamHlsTokenResponse.Builder setExpirationTime(Timestamp value)

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateStreamHlsTokenResponse.Builder

setExpirationTime(Timestamp.Builder builderForValue)

public GenerateStreamHlsTokenResponse.Builder setExpirationTime(Timestamp.Builder builderForValue)

The expiration time of the token.

.google.protobuf.Timestamp expiration_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateStreamHlsTokenResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setToken(String value)

public GenerateStreamHlsTokenResponse.Builder setToken(String value)

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;

Parameter
Name Description
value String

The token to set.

Returns
Type Description
GenerateStreamHlsTokenResponse.Builder

This builder for chaining.

setTokenBytes(ByteString value)

public GenerateStreamHlsTokenResponse.Builder setTokenBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for token to set.

Returns
Type Description
GenerateStreamHlsTokenResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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