public static final class GenerateChatTokenRequest.Builder extends GeneratedMessage.Builder<GenerateChatTokenRequest.Builder> implements GenerateChatTokenRequestOrBuilderRequest message for WidgetService.GenerateChatToken.
Protobuf type google.cloud.ces.v1.GenerateChatTokenRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GenerateChatTokenRequest.BuilderImplements
GenerateChatTokenRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GenerateChatTokenRequest build()| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest |
|
buildPartial()
public GenerateChatTokenRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest |
|
clear()
public GenerateChatTokenRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
|
clearDeployment()
public GenerateChatTokenRequest.Builder clearDeployment()Required. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |
clearName()
public GenerateChatTokenRequest.Builder clearName()Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |
clearRecaptchaToken()
public GenerateChatTokenRequest.Builder clearRecaptchaToken()Optional. The reCAPTCHA token generated by the client-side chat widget.
string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GenerateChatTokenRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest |
|
getDeployment()
public String getDeployment()Required. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The deployment. |
getDeploymentBytes()
public ByteString getDeploymentBytes()Required. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for deployment. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getRecaptchaToken()
public String getRecaptchaToken()Optional. The reCAPTCHA token generated by the client-side chat widget.
string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The recaptchaToken. |
getRecaptchaTokenBytes()
public ByteString getRecaptchaTokenBytes()Optional. The reCAPTCHA token generated by the client-side chat widget.
string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for recaptchaToken. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GenerateChatTokenRequest other)
public GenerateChatTokenRequest.Builder mergeFrom(GenerateChatTokenRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
GenerateChatTokenRequest |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateChatTokenRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GenerateChatTokenRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
|
setDeployment(String value)
public GenerateChatTokenRequest.Builder setDeployment(String value)Required. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe deployment to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |
setDeploymentBytes(ByteString value)
public GenerateChatTokenRequest.Builder setDeploymentBytes(ByteString value)Required. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for deployment to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |
setName(String value)
public GenerateChatTokenRequest.Builder setName(String value)Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public GenerateChatTokenRequest.Builder setNameBytes(ByteString value)Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |
setRecaptchaToken(String value)
public GenerateChatTokenRequest.Builder setRecaptchaToken(String value)Optional. The reCAPTCHA token generated by the client-side chat widget.
string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe recaptchaToken to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |
setRecaptchaTokenBytes(ByteString value)
public GenerateChatTokenRequest.Builder setRecaptchaTokenBytes(ByteString value)Optional. The reCAPTCHA token generated by the client-side chat widget.
string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for recaptchaToken to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenRequest.Builder |
This builder for chaining. |