public static final class BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder extends GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder> implements BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponseOrBuilderThe execution result of a specific tool from the client.
Protobuf type
google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse build()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse |
|
buildPartial()
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse |
|
clear()
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
|
clearId()
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder clearId()Required. The matching ID of the tool call the response is for.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
This builder for chaining. |
clearResponse()
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder clearResponse()Optional. The tool execution result in JSON object format.
.google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
|
clearTool()
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder clearTool()Required. The identifier of the tool that got executed.
string tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getId()
public String getId()Required. The matching ID of the tool call the response is for.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()Required. The matching ID of the tool call the response is for.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for id. |
getResponse()
public Struct getResponse()Optional. The tool execution result in JSON object format.
.google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The response. |
getResponseBuilder()
public Struct.Builder getResponseBuilder()Optional. The tool execution result in JSON object format.
.google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getResponseOrBuilder()
public StructOrBuilder getResponseOrBuilder()Optional. The tool execution result in JSON object format.
.google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getTool()
public String getTool()Required. The identifier of the tool that got executed.
string tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The tool. |
getToolBytes()
public ByteString getToolBytes()Required. The identifier of the tool that got executed.
string tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tool. |
hasResponse()
public boolean hasResponse()Optional. The tool execution result in JSON object format.
.google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the response field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse other)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder mergeFrom(BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
|
mergeResponse(Struct value)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder mergeResponse(Struct value)Optional. The tool execution result in JSON object format.
.google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
|
setId(String value)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder setId(String value)Required. The matching ID of the tool call the response is for.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe id to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder setIdBytes(ByteString value)Required. The matching ID of the tool call the response is for.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
This builder for chaining. |
setResponse(Struct value)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder setResponse(Struct value)Optional. The tool execution result in JSON object format.
.google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
|
setResponse(Struct.Builder builderForValue)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder setResponse(Struct.Builder builderForValue)Optional. The tool execution result in JSON object format.
.google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
|
setTool(String value)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder setTool(String value)Required. The identifier of the tool that got executed.
string tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tool to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
This builder for chaining. |
setToolBytes(ByteString value)
public BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder setToolBytes(ByteString value)Required. The identifier of the tool that got executed.
string tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tool to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.Builder |
This builder for chaining. |