public static final class GenerateStreamHlsTokenResponse.Builder extends GeneratedMessageV3.Builder<GenerateStreamHlsTokenResponse.Builder> implements GenerateStreamHlsTokenResponseOrBuilder
Response message for GenerateStreamHlsToken.
Protobuf type google.cloud.visionai.v1.GenerateStreamHlsTokenResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateStreamHlsTokenResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GenerateStreamHlsTokenResponse build()
buildPartial()
public GenerateStreamHlsTokenResponse buildPartial()
clear()
public GenerateStreamHlsTokenResponse.Builder clear()
Overrides
clearExpirationTime()
public GenerateStreamHlsTokenResponse.Builder clearExpirationTime()
The expiration time of the token.
.google.protobuf.Timestamp expiration_time = 2;
clearField(Descriptors.FieldDescriptor field)
public GenerateStreamHlsTokenResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateStreamHlsTokenResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public GenerateStreamHlsTokenResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public GenerateStreamHlsTokenResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
getExpirationTimeOrBuilder()
public TimestampOrBuilder getExpirationTimeOrBuilder()
The expiration time of the token.
.google.protobuf.Timestamp expiration_time = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeExpirationTime(Timestamp value)
public GenerateStreamHlsTokenResponse.Builder mergeExpirationTime(Timestamp value)
The expiration time of the token.
.google.protobuf.Timestamp expiration_time = 2;
mergeFrom(GenerateStreamHlsTokenResponse other)
public GenerateStreamHlsTokenResponse.Builder mergeFrom(GenerateStreamHlsTokenResponse other)
public GenerateStreamHlsTokenResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenerateStreamHlsTokenResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateStreamHlsTokenResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setExpirationTime(Timestamp value)
public GenerateStreamHlsTokenResponse.Builder setExpirationTime(Timestamp value)
The expiration time of the token.
.google.protobuf.Timestamp expiration_time = 2;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateStreamHlsTokenResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateStreamHlsTokenResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateStreamHlsTokenResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides