public static final class ExecuteToolResponse.Builder extends GeneratedMessage.Builder<ExecuteToolResponse.Builder> implements ExecuteToolResponseOrBuilderResponse message for ToolService.ExecuteTool.
Protobuf type google.cloud.ces.v1beta.ExecuteToolResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExecuteToolResponse.BuilderImplements
ExecuteToolResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ExecuteToolResponse build()| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse |
|
buildPartial()
public ExecuteToolResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse |
|
clear()
public ExecuteToolResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
clearCitations()
public ExecuteToolResponse.Builder clearCitations()Citations that provide the source information for the tool's execution.
.google.cloud.ces.v1beta.Citations citations = 5;
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
clearGoogleSearchSuggestions()
public ExecuteToolResponse.Builder clearGoogleSearchSuggestions()The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
.google.cloud.ces.v1beta.GoogleSearchSuggestions google_search_suggestions = 6;
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
clearResponse()
public ExecuteToolResponse.Builder clearResponse()The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
.google.protobuf.Struct response = 2;
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
clearTool()
public ExecuteToolResponse.Builder clearTool() The name of the tool that got executed.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
This builder for chaining. |
clearToolIdentifier()
public ExecuteToolResponse.Builder clearToolIdentifier()| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
clearToolsetTool()
public ExecuteToolResponse.Builder clearToolsetTool()The toolset tool that got executed.
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
clearVariables()
public ExecuteToolResponse.Builder clearVariables()The variable values at the end of the tool execution.
.google.protobuf.Struct variables = 4;
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
getCitations()
public Citations getCitations()Citations that provide the source information for the tool's execution.
.google.cloud.ces.v1beta.Citations citations = 5;
| Returns | |
|---|---|
| Type | Description |
Citations |
The citations. |
getCitationsBuilder()
public Citations.Builder getCitationsBuilder()Citations that provide the source information for the tool's execution.
.google.cloud.ces.v1beta.Citations citations = 5;
| Returns | |
|---|---|
| Type | Description |
Citations.Builder |
|
getCitationsOrBuilder()
public CitationsOrBuilder getCitationsOrBuilder()Citations that provide the source information for the tool's execution.
.google.cloud.ces.v1beta.Citations citations = 5;
| Returns | |
|---|---|
| Type | Description |
CitationsOrBuilder |
|
getDefaultInstanceForType()
public ExecuteToolResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGoogleSearchSuggestions()
public GoogleSearchSuggestions getGoogleSearchSuggestions()The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
.google.cloud.ces.v1beta.GoogleSearchSuggestions google_search_suggestions = 6;
| Returns | |
|---|---|
| Type | Description |
GoogleSearchSuggestions |
The googleSearchSuggestions. |
getGoogleSearchSuggestionsBuilder()
public GoogleSearchSuggestions.Builder getGoogleSearchSuggestionsBuilder()The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
.google.cloud.ces.v1beta.GoogleSearchSuggestions google_search_suggestions = 6;
| Returns | |
|---|---|
| Type | Description |
GoogleSearchSuggestions.Builder |
|
getGoogleSearchSuggestionsOrBuilder()
public GoogleSearchSuggestionsOrBuilder getGoogleSearchSuggestionsOrBuilder()The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
.google.cloud.ces.v1beta.GoogleSearchSuggestions google_search_suggestions = 6;
| Returns | |
|---|---|
| Type | Description |
GoogleSearchSuggestionsOrBuilder |
|
getResponse()
public Struct getResponse()The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
.google.protobuf.Struct response = 2;
| Returns | |
|---|---|
| Type | Description |
Struct |
The response. |
getResponseBuilder()
public Struct.Builder getResponseBuilder()The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
.google.protobuf.Struct response = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getResponseOrBuilder()
public StructOrBuilder getResponseOrBuilder()The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
.google.protobuf.Struct response = 2;
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getTool()
public String getTool() The name of the tool that got executed.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The tool. |
getToolBytes()
public ByteString getToolBytes() The name of the tool that got executed.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tool. |
getToolIdentifierCase()
public ExecuteToolResponse.ToolIdentifierCase getToolIdentifierCase()| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.ToolIdentifierCase |
|
getToolsetTool()
public ToolsetTool getToolsetTool()The toolset tool that got executed.
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
ToolsetTool |
The toolsetTool. |
getToolsetToolBuilder()
public ToolsetTool.Builder getToolsetToolBuilder()The toolset tool that got executed.
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
|
getToolsetToolOrBuilder()
public ToolsetToolOrBuilder getToolsetToolOrBuilder()The toolset tool that got executed.
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
ToolsetToolOrBuilder |
|
getVariables()
public Struct getVariables()The variable values at the end of the tool execution.
.google.protobuf.Struct variables = 4;
| Returns | |
|---|---|
| Type | Description |
Struct |
The variables. |
getVariablesBuilder()
public Struct.Builder getVariablesBuilder()The variable values at the end of the tool execution.
.google.protobuf.Struct variables = 4;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getVariablesOrBuilder()
public StructOrBuilder getVariablesOrBuilder()The variable values at the end of the tool execution.
.google.protobuf.Struct variables = 4;
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
hasCitations()
public boolean hasCitations()Citations that provide the source information for the tool's execution.
.google.cloud.ces.v1beta.Citations citations = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the citations field is set. |
hasGoogleSearchSuggestions()
public boolean hasGoogleSearchSuggestions()The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
.google.cloud.ces.v1beta.GoogleSearchSuggestions google_search_suggestions = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the googleSearchSuggestions field is set. |
hasResponse()
public boolean hasResponse()The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
.google.protobuf.Struct response = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the response field is set. |
hasTool()
public boolean hasTool() The name of the tool that got executed.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the tool field is set. |
hasToolsetTool()
public boolean hasToolsetTool()The toolset tool that got executed.
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the toolsetTool field is set. |
hasVariables()
public boolean hasVariables()The variable values at the end of the tool execution.
.google.protobuf.Struct variables = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the variables field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCitations(Citations value)
public ExecuteToolResponse.Builder mergeCitations(Citations value)Citations that provide the source information for the tool's execution.
.google.cloud.ces.v1beta.Citations citations = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Citations |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
mergeFrom(ExecuteToolResponse other)
public ExecuteToolResponse.Builder mergeFrom(ExecuteToolResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ExecuteToolResponse |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExecuteToolResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExecuteToolResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
mergeGoogleSearchSuggestions(GoogleSearchSuggestions value)
public ExecuteToolResponse.Builder mergeGoogleSearchSuggestions(GoogleSearchSuggestions value)The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
.google.cloud.ces.v1beta.GoogleSearchSuggestions google_search_suggestions = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
GoogleSearchSuggestions |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
mergeResponse(Struct value)
public ExecuteToolResponse.Builder mergeResponse(Struct value)The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
.google.protobuf.Struct response = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
mergeToolsetTool(ToolsetTool value)
public ExecuteToolResponse.Builder mergeToolsetTool(ToolsetTool value)The toolset tool that got executed.
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ToolsetTool |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
mergeVariables(Struct value)
public ExecuteToolResponse.Builder mergeVariables(Struct value)The variable values at the end of the tool execution.
.google.protobuf.Struct variables = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setCitations(Citations value)
public ExecuteToolResponse.Builder setCitations(Citations value)Citations that provide the source information for the tool's execution.
.google.cloud.ces.v1beta.Citations citations = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Citations |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setCitations(Citations.Builder builderForValue)
public ExecuteToolResponse.Builder setCitations(Citations.Builder builderForValue)Citations that provide the source information for the tool's execution.
.google.cloud.ces.v1beta.Citations citations = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Citations.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setGoogleSearchSuggestions(GoogleSearchSuggestions value)
public ExecuteToolResponse.Builder setGoogleSearchSuggestions(GoogleSearchSuggestions value)The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
.google.cloud.ces.v1beta.GoogleSearchSuggestions google_search_suggestions = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
GoogleSearchSuggestions |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setGoogleSearchSuggestions(GoogleSearchSuggestions.Builder builderForValue)
public ExecuteToolResponse.Builder setGoogleSearchSuggestions(GoogleSearchSuggestions.Builder builderForValue)The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
.google.cloud.ces.v1beta.GoogleSearchSuggestions google_search_suggestions = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GoogleSearchSuggestions.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setResponse(Struct value)
public ExecuteToolResponse.Builder setResponse(Struct value)The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
.google.protobuf.Struct response = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setResponse(Struct.Builder builderForValue)
public ExecuteToolResponse.Builder setResponse(Struct.Builder builderForValue)The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
.google.protobuf.Struct response = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setTool(String value)
public ExecuteToolResponse.Builder setTool(String value) The name of the tool that got executed.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tool to set. |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
This builder for chaining. |
setToolBytes(ByteString value)
public ExecuteToolResponse.Builder setToolBytes(ByteString value) The name of the tool that got executed.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tool to set. |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
This builder for chaining. |
setToolsetTool(ToolsetTool value)
public ExecuteToolResponse.Builder setToolsetTool(ToolsetTool value)The toolset tool that got executed.
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ToolsetTool |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setToolsetTool(ToolsetTool.Builder builderForValue)
public ExecuteToolResponse.Builder setToolsetTool(ToolsetTool.Builder builderForValue)The toolset tool that got executed.
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ToolsetTool.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setVariables(Struct value)
public ExecuteToolResponse.Builder setVariables(Struct value)The variable values at the end of the tool execution.
.google.protobuf.Struct variables = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setVariables(Struct.Builder builderForValue)
public ExecuteToolResponse.Builder setVariables(Struct.Builder builderForValue)The variable values at the end of the tool execution.
.google.protobuf.Struct variables = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|