Class StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse (4.105.0)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse

Static Fields

GROUNDING_METADATA_FIELD_NUMBER

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

TOOL_CALLS_FIELD_NUMBER

public static final int TOOL_CALLS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse getDefaultInstance()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder newBuilder()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder

newBuilder(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse prototype)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder newBuilder(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse prototype)
Parameter
Name Description
prototype StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder

parseDelimitedFrom(InputStream input)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse> parser()
Returns
Type Description
Parser<ReactiveModeResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse getDefaultInstanceForType()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse

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.

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

getParserForType()

public Parser<StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse> getParserForType()
Returns
Type Description
Parser<ReactiveModeResponse>
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

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

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder newBuilderForType()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder
Overrides

toBuilder()

public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder toBuilder()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException