public static final class RunAssistantRequest.Builder extends GeneratedMessage.Builder<RunAssistantRequest.Builder> implements RunAssistantRequestOrBuilderRequest message for AssistantService.RunAssistant.
Protobuf type google.cloud.ces.v1beta.RunAssistantRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RunAssistantRequest.BuilderImplements
RunAssistantRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RunAssistantRequest build()| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest |
|
buildPartial()
public RunAssistantRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest |
|
clear()
public RunAssistantRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
|
clearApp()
public RunAssistantRequest.Builder clearApp() Required. The app to run assistant for.
Format:
projects/{project}/locations/{location}/apps/{app}
string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
clearAssistantSession()
public RunAssistantRequest.Builder clearAssistantSession() Required. The assistant session to be used to run the assistant.
Format:
projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}
string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
clearInteractionType()
public RunAssistantRequest.Builder clearInteractionType()Optional. Different interaction types for the assistant message.
.google.cloud.ces.v1beta.RunAssistantRequest.InteractionType interaction_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
clearMessage()
public RunAssistantRequest.Builder clearMessage()Required. The message to send to the assistant agent.
.google.cloud.ces.v1beta.AssistantMessage message = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
|
getApp()
public String getApp() Required. The app to run assistant for.
Format:
projects/{project}/locations/{location}/apps/{app}
string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The app. |
getAppBytes()
public ByteString getAppBytes() Required. The app to run assistant for.
Format:
projects/{project}/locations/{location}/apps/{app}
string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for app. |
getAssistantSession()
public String getAssistantSession() Required. The assistant session to be used to run the assistant.
Format:
projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}
string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The assistantSession. |
getAssistantSessionBytes()
public ByteString getAssistantSessionBytes() Required. The assistant session to be used to run the assistant.
Format:
projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}
string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for assistantSession. |
getDefaultInstanceForType()
public RunAssistantRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInteractionType()
public RunAssistantRequest.InteractionType getInteractionType()Optional. Different interaction types for the assistant message.
.google.cloud.ces.v1beta.RunAssistantRequest.InteractionType interaction_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.InteractionType |
The interactionType. |
getInteractionTypeValue()
public int getInteractionTypeValue()Optional. Different interaction types for the assistant message.
.google.cloud.ces.v1beta.RunAssistantRequest.InteractionType interaction_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for interactionType. |
getMessage()
public AssistantMessage getMessage()Required. The message to send to the assistant agent.
.google.cloud.ces.v1beta.AssistantMessage message = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AssistantMessage |
The message. |
getMessageBuilder()
public AssistantMessage.Builder getMessageBuilder()Required. The message to send to the assistant agent.
.google.cloud.ces.v1beta.AssistantMessage message = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AssistantMessage.Builder |
|
getMessageOrBuilder()
public AssistantMessageOrBuilder getMessageOrBuilder()Required. The message to send to the assistant agent.
.google.cloud.ces.v1beta.AssistantMessage message = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AssistantMessageOrBuilder |
|
hasMessage()
public boolean hasMessage()Required. The message to send to the assistant agent.
.google.cloud.ces.v1beta.AssistantMessage message = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the message field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RunAssistantRequest other)
public RunAssistantRequest.Builder mergeFrom(RunAssistantRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
RunAssistantRequest |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RunAssistantRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RunAssistantRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
|
mergeMessage(AssistantMessage value)
public RunAssistantRequest.Builder mergeMessage(AssistantMessage value)Required. The message to send to the assistant agent.
.google.cloud.ces.v1beta.AssistantMessage message = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AssistantMessage |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
|
setApp(String value)
public RunAssistantRequest.Builder setApp(String value) Required. The app to run assistant for.
Format:
projects/{project}/locations/{location}/apps/{app}
string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe app to set. |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
setAppBytes(ByteString value)
public RunAssistantRequest.Builder setAppBytes(ByteString value) Required. The app to run assistant for.
Format:
projects/{project}/locations/{location}/apps/{app}
string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for app to set. |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
setAssistantSession(String value)
public RunAssistantRequest.Builder setAssistantSession(String value) Required. The assistant session to be used to run the assistant.
Format:
projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}
string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe assistantSession to set. |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
setAssistantSessionBytes(ByteString value)
public RunAssistantRequest.Builder setAssistantSessionBytes(ByteString value) Required. The assistant session to be used to run the assistant.
Format:
projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}
string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for assistantSession to set. |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
setInteractionType(RunAssistantRequest.InteractionType value)
public RunAssistantRequest.Builder setInteractionType(RunAssistantRequest.InteractionType value)Optional. Different interaction types for the assistant message.
.google.cloud.ces.v1beta.RunAssistantRequest.InteractionType interaction_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RunAssistantRequest.InteractionTypeThe interactionType to set. |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
setInteractionTypeValue(int value)
public RunAssistantRequest.Builder setInteractionTypeValue(int value)Optional. Different interaction types for the assistant message.
.google.cloud.ces.v1beta.RunAssistantRequest.InteractionType interaction_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for interactionType to set. |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
This builder for chaining. |
setMessage(AssistantMessage value)
public RunAssistantRequest.Builder setMessage(AssistantMessage value)Required. The message to send to the assistant agent.
.google.cloud.ces.v1beta.AssistantMessage message = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AssistantMessage |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
|
setMessage(AssistantMessage.Builder builderForValue)
public RunAssistantRequest.Builder setMessage(AssistantMessage.Builder builderForValue)Required. The message to send to the assistant agent.
.google.cloud.ces.v1beta.AssistantMessage message = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AssistantMessage.Builder |
| Returns | |
|---|---|
| Type | Description |
RunAssistantRequest.Builder |
|