public static final class StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse extends GeneratedMessage implements StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponseOrBuilder
The 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int GROUNDING_METADATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RESPONSE_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOL_CALLS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder newBuilder()
newBuilder(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse prototype)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder newBuilder(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse prototype)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseDelimitedFrom(InputStream input)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(CodedInputStream input)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(InputStream input)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse getDefaultInstanceForType()
public GroundingMetadata getGroundingMetadata()
Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadataOrBuilder getGroundingMetadataOrBuilder()
Optional. Grounding metadata for the generated response.
.google.cloud.dialogflow.v2.GroundingMetadata grounding_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
getParserForType()
public Parser<StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse> getParserForType()
Overrides
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.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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
|
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 |
|
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];
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
|
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> |
|
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides