public static final class GenerateStreamHlsTokenResponse.Builder extends GeneratedMessage.Builder<GenerateStreamHlsTokenResponse.Builder> implements GenerateStreamHlsTokenResponseOrBuilderResponse message for GenerateStreamHlsToken.
Protobuf type google.cloud.visionai.v1.GenerateStreamHlsTokenResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GenerateStreamHlsTokenResponse.BuilderImplements
GenerateStreamHlsTokenResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearExpirationTime()
public GenerateStreamHlsTokenResponse.Builder clearExpirationTime()The expiration time of the token.
.google.protobuf.Timestamp expiration_time = 2;
| Returns | |
|---|---|
| Type | Description |
GenerateStreamHlsTokenResponse.Builder |
|
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. |
getDefaultInstanceForType()
public GenerateStreamHlsTokenResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GenerateStreamHlsTokenResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GenerateStreamHlsTokenResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GenerateStreamHlsTokenResponse.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for token to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateStreamHlsTokenResponse.Builder |
This builder for chaining. |