Class GenerateChatTokenResponse.Builder (0.1.0)

public static final class GenerateChatTokenResponse.Builder extends GeneratedMessage.Builder<GenerateChatTokenResponse.Builder> implements GenerateChatTokenResponseOrBuilder

Response message for WidgetService.GenerateChatToken.

Protobuf type google.cloud.ces.v1.GenerateChatTokenResponse

Static Methods

getDescriptor()

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

Methods

build()

public GenerateChatTokenResponse build()
Returns
Type Description
GenerateChatTokenResponse

buildPartial()

public GenerateChatTokenResponse buildPartial()
Returns
Type Description
GenerateChatTokenResponse

clear()

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

clearChatToken()

public GenerateChatTokenResponse.Builder clearChatToken()

The session scoped token for chat widget to authenticate with Session APIs.

string chat_token = 1;

Returns
Type Description
GenerateChatTokenResponse.Builder

This builder for chaining.

clearExpireTime()

public GenerateChatTokenResponse.Builder clearExpireTime()

The time at which the chat token expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
GenerateChatTokenResponse.Builder

getChatToken()

public String getChatToken()

The session scoped token for chat widget to authenticate with Session APIs.

string chat_token = 1;

Returns
Type Description
String

The chatToken.

getChatTokenBytes()

public ByteString getChatTokenBytes()

The session scoped token for chat widget to authenticate with Session APIs.

string chat_token = 1;

Returns
Type Description
ByteString

The bytes for chatToken.

getDefaultInstanceForType()

public GenerateChatTokenResponse getDefaultInstanceForType()
Returns
Type Description
GenerateChatTokenResponse

getDescriptorForType()

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

getExpireTime()

public Timestamp getExpireTime()

The time at which the chat token expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The time at which the chat token expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The time at which the chat token expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
TimestampOrBuilder

hasExpireTime()

public boolean hasExpireTime()

The time at which the chat token expires.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public GenerateChatTokenResponse.Builder mergeExpireTime(Timestamp value)

The time at which the chat token expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateChatTokenResponse.Builder

mergeFrom(GenerateChatTokenResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setChatToken(String value)

public GenerateChatTokenResponse.Builder setChatToken(String value)

The session scoped token for chat widget to authenticate with Session APIs.

string chat_token = 1;

Parameter
Name Description
value String

The chatToken to set.

Returns
Type Description
GenerateChatTokenResponse.Builder

This builder for chaining.

setChatTokenBytes(ByteString value)

public GenerateChatTokenResponse.Builder setChatTokenBytes(ByteString value)

The session scoped token for chat widget to authenticate with Session APIs.

string chat_token = 1;

Parameter
Name Description
value ByteString

The bytes for chatToken to set.

Returns
Type Description
GenerateChatTokenResponse.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public GenerateChatTokenResponse.Builder setExpireTime(Timestamp value)

The time at which the chat token expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateChatTokenResponse.Builder

setExpireTime(Timestamp.Builder builderForValue)

public GenerateChatTokenResponse.Builder setExpireTime(Timestamp.Builder builderForValue)

The time at which the chat token expires.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateChatTokenResponse.Builder