public static final class StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder extends GeneratedMessage.Builder<StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder> implements StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponseOrBuilderThe complete response generated by the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls.
Protobuf type
google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllToolCalls(Iterable<? extends ToolCallSuggestion> values)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder addAllToolCalls(Iterable<? extends ToolCallSuggestion> values)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.ToolCallSuggestion> |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
addToolCalls(ToolCallSuggestion value)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder addToolCalls(ToolCallSuggestion value)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ToolCallSuggestion |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
addToolCalls(ToolCallSuggestion.Builder builderForValue)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder addToolCalls(ToolCallSuggestion.Builder builderForValue)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ToolCallSuggestion.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
addToolCalls(int index, ToolCallSuggestion value)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder addToolCalls(int index, ToolCallSuggestion value)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ToolCallSuggestion |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
addToolCalls(int index, ToolCallSuggestion.Builder builderForValue)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder addToolCalls(int index, ToolCallSuggestion.Builder builderForValue)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ToolCallSuggestion.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
addToolCallsBuilder()
public ToolCallSuggestion.Builder addToolCallsBuilder()Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolCallSuggestion.Builder |
|
addToolCallsBuilder(int index)
public ToolCallSuggestion.Builder addToolCallsBuilder(int index)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ToolCallSuggestion.Builder |
|
build()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse build()| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse |
|
buildPartial()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse |
|
clear()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
clearGroundingMetadata()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder clearGroundingMetadata()Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
clearResponse()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder clearResponse()Optional. The full reactive suggestion generated by the Companion Agent. After the last streaming chunk is sent, this is the final response concatenating all the streaming response chunks together to represent the full reactive suggestion.
string response = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
This builder for chaining. |
clearToolCalls()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder clearToolCalls()Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
getDefaultInstanceForType()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGroundingMetadata()
public GroundingMetadata getGroundingMetadata()Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata |
The groundingMetadata. |
getGroundingMetadataBuilder()
public GroundingMetadata.Builder getGroundingMetadataBuilder()Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
getGroundingMetadataOrBuilder()
public GroundingMetadataOrBuilder getGroundingMetadataOrBuilder()Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingMetadataOrBuilder |
|
getResponse()
public String getResponse()Optional. The full reactive suggestion generated by the Companion Agent. After the last streaming chunk is sent, this is the final response concatenating all the streaming response chunks together to represent the full reactive suggestion.
string response = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The response. |
getResponseBytes()
public ByteString getResponseBytes()Optional. The full reactive suggestion generated by the Companion Agent. After the last streaming chunk is sent, this is the final response concatenating all the streaming response chunks together to represent the full reactive suggestion.
string response = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for response. |
getToolCalls(int index)
public ToolCallSuggestion getToolCalls(int index)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ToolCallSuggestion |
|
getToolCallsBuilder(int index)
public ToolCallSuggestion.Builder getToolCallsBuilder(int index)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ToolCallSuggestion.Builder |
|
getToolCallsBuilderList()
public List<ToolCallSuggestion.Builder> getToolCallsBuilderList()Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getToolCallsCount()
public int getToolCallsCount()Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getToolCallsList()
public List<ToolCallSuggestion> getToolCallsList()Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<ToolCallSuggestion> |
|
getToolCallsOrBuilder(int index)
public ToolCallSuggestionOrBuilder getToolCallsOrBuilder(int index)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ToolCallSuggestionOrBuilder |
|
getToolCallsOrBuilderList()
public List<? extends ToolCallSuggestionOrBuilder> getToolCallsOrBuilderList()Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.dialogflow.v2.ToolCallSuggestionOrBuilder> |
|
hasGroundingMetadata()
public boolean hasGroundingMetadata()Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the groundingMetadata field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse other)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder mergeFrom(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
mergeGroundingMetadata(GroundingMetadata value)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder mergeGroundingMetadata(GroundingMetadata value)Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GroundingMetadata |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
removeToolCalls(int index)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder removeToolCalls(int index)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
setGroundingMetadata(GroundingMetadata value)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder setGroundingMetadata(GroundingMetadata value)Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GroundingMetadata |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
setGroundingMetadata(GroundingMetadata.Builder builderForValue)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder setGroundingMetadata(GroundingMetadata.Builder builderForValue)Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GroundingMetadata.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
setResponse(String value)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder setResponse(String value)Optional. The full reactive suggestion generated by the Companion Agent. After the last streaming chunk is sent, this is the final response concatenating all the streaming response chunks together to represent the full reactive suggestion.
string response = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe response to set. |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
This builder for chaining. |
setResponseBytes(ByteString value)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder setResponseBytes(ByteString value)Optional. The full reactive suggestion generated by the Companion Agent. After the last streaming chunk is sent, this is the final response concatenating all the streaming response chunks together to represent the full reactive suggestion.
string response = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for response to set. |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
This builder for chaining. |
setToolCalls(int index, ToolCallSuggestion value)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder setToolCalls(int index, ToolCallSuggestion value)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ToolCallSuggestion |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|
setToolCalls(int index, ToolCallSuggestion.Builder builderForValue)
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder setToolCalls(int index, ToolCallSuggestion.Builder builderForValue)Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion.
repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_calls = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ToolCallSuggestion.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder |
|