public static final class ExecuteToolResponse.Builder extends GeneratedMessage.Builder<ExecuteToolResponse.Builder> implements ExecuteToolResponseOrBuilderResponse message for ToolService.ExecuteTool.
Protobuf type google.cloud.ces.v1.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 |
|
clearResponse()
public ExecuteToolResponse.Builder clearResponse()Required. 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 [(.google.api.field_behavior) = REQUIRED];
| 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.v1.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
getDefaultInstanceForType()
public ExecuteToolResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getResponse()
public Struct getResponse()Required. 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 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Struct |
The response. |
getResponseBuilder()
public Struct.Builder getResponseBuilder()Required. 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 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getResponseOrBuilder()
public StructOrBuilder getResponseOrBuilder()Required. 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 [(.google.api.field_behavior) = REQUIRED];
| 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.v1.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
ToolsetTool |
The toolsetTool. |
getToolsetToolBuilder()
public ToolsetTool.Builder getToolsetToolBuilder()The toolset tool that got executed.
.google.cloud.ces.v1.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
|
getToolsetToolOrBuilder()
public ToolsetToolOrBuilder getToolsetToolOrBuilder()The toolset tool that got executed.
.google.cloud.ces.v1.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
ToolsetToolOrBuilder |
|
hasResponse()
public boolean hasResponse()Required. 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 [(.google.api.field_behavior) = REQUIRED];
| 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.v1.ToolsetTool toolset_tool = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the toolsetTool field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
mergeResponse(Struct value)
public ExecuteToolResponse.Builder mergeResponse(Struct value)Required. 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 [(.google.api.field_behavior) = REQUIRED];
| 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.v1.ToolsetTool toolset_tool = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ToolsetTool |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setResponse(Struct value)
public ExecuteToolResponse.Builder setResponse(Struct value)Required. 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 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|
setResponse(Struct.Builder builderForValue)
public ExecuteToolResponse.Builder setResponse(Struct.Builder builderForValue)Required. 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 [(.google.api.field_behavior) = REQUIRED];
| 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.v1.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.v1.ToolsetTool toolset_tool = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ToolsetTool.Builder |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse.Builder |
|