Class StreamingReactiveCompanionSuggestionsResponse.Builder (4.105.0)

public static final class StreamingReactiveCompanionSuggestionsResponse.Builder extends GeneratedMessage.Builder<StreamingReactiveCompanionSuggestionsResponse.Builder> implements StreamingReactiveCompanionSuggestionsResponseOrBuilder

The response message for Participants.StreamingReactiveCompanionSuggestions.

Protobuf type google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse

Static Methods

getDescriptor()

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

Methods

build()

public StreamingReactiveCompanionSuggestionsResponse build()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse

buildPartial()

public StreamingReactiveCompanionSuggestionsResponse buildPartial()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse

clear()

public StreamingReactiveCompanionSuggestionsResponse.Builder clear()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder
Overrides

clearAnswerRecord()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearAnswerRecord()

Output only. Only set when is_final is true and conversational turn processing completes. The final answer record representing the completed suggestion. Only present in the last chunk of the completed response.

string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

clearIntermediateToolCallEvents()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearIntermediateToolCallEvents()

Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the reactive_mode_final_response.response string.

.google.cloud.dialogflow.v2.ToolCallEvents intermediate_tool_call_events = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

clearIsFinal()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearIsFinal()

Output only. Indicates whether the client/UI can accept a new query for reactive chat. When is_final is true, the reactive chat interface is unblocked and ready to receive new human agent queries. For synchronous turns, this is set to true on the final response chunk. For asynchronous tool calls running in the background, this is set to true on the intermediate trigger chunk to unblock the UI while the background tool execution is in progress.

bool is_final = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

clearReactiveModeFinalResponse()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearReactiveModeFinalResponse()

Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when is_final is true and conversational processing for the query turn completes.

.google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse reactive_mode_final_response = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

clearResponse()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearResponse()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

clearResponseChunk()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearResponseChunk()

Streamed response text chunks.

string response_chunk = 1;

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

clearSendTime()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearSendTime()

The timestamp when the response chunk was sent by the service.

.google.protobuf.Timestamp send_time = 9;

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

clearStatus()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearStatus()

Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

.google.rpc.Status status = 3;

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

clearTextMessageId()

public StreamingReactiveCompanionSuggestionsResponse.Builder clearTextMessageId()

Required. The unique message identifier corresponding to the human agent query that generated this response chunk.

string text_message_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

getAnswerRecord()

public String getAnswerRecord()

Output only. Only set when is_final is true and conversational turn processing completes. The final answer record representing the completed suggestion. Only present in the last chunk of the completed response.

string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The answerRecord.

getAnswerRecordBytes()

public ByteString getAnswerRecordBytes()

Output only. Only set when is_final is true and conversational turn processing completes. The final answer record representing the completed suggestion. Only present in the last chunk of the completed response.

string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for answerRecord.

getDefaultInstanceForType()

public StreamingReactiveCompanionSuggestionsResponse getDefaultInstanceForType()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIntermediateToolCallEvents()

public ToolCallEvents getIntermediateToolCallEvents()

Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the reactive_mode_final_response.response string.

.google.cloud.dialogflow.v2.ToolCallEvents intermediate_tool_call_events = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolCallEvents

The intermediateToolCallEvents.

getIntermediateToolCallEventsBuilder()

public ToolCallEvents.Builder getIntermediateToolCallEventsBuilder()

Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the reactive_mode_final_response.response string.

.google.cloud.dialogflow.v2.ToolCallEvents intermediate_tool_call_events = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolCallEvents.Builder

getIntermediateToolCallEventsOrBuilder()

public ToolCallEventsOrBuilder getIntermediateToolCallEventsOrBuilder()

Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the reactive_mode_final_response.response string.

.google.cloud.dialogflow.v2.ToolCallEvents intermediate_tool_call_events = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolCallEventsOrBuilder

getIsFinal()

public boolean getIsFinal()

Output only. Indicates whether the client/UI can accept a new query for reactive chat. When is_final is true, the reactive chat interface is unblocked and ready to receive new human agent queries. For synchronous turns, this is set to true on the final response chunk. For asynchronous tool calls running in the background, this is set to true on the intermediate trigger chunk to unblock the UI while the background tool execution is in progress.

bool is_final = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The isFinal.

getReactiveModeFinalResponse()

public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse getReactiveModeFinalResponse()

Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when is_final is true and conversational processing for the query turn completes.

.google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse reactive_mode_final_response = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse

The reactiveModeFinalResponse.

getReactiveModeFinalResponseBuilder()

public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder getReactiveModeFinalResponseBuilder()

Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when is_final is true and conversational processing for the query turn completes.

.google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse reactive_mode_final_response = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder

getReactiveModeFinalResponseOrBuilder()

public StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponseOrBuilder getReactiveModeFinalResponseOrBuilder()

Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when is_final is true and conversational processing for the query turn completes.

.google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse reactive_mode_final_response = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponseOrBuilder

getResponseCase()

public StreamingReactiveCompanionSuggestionsResponse.ResponseCase getResponseCase()
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.ResponseCase

getResponseChunk()

public String getResponseChunk()

Streamed response text chunks.

string response_chunk = 1;

Returns
Type Description
String

The responseChunk.

getResponseChunkBytes()

public ByteString getResponseChunkBytes()

Streamed response text chunks.

string response_chunk = 1;

Returns
Type Description
ByteString

The bytes for responseChunk.

getSendTime()

public Timestamp getSendTime()

The timestamp when the response chunk was sent by the service.

.google.protobuf.Timestamp send_time = 9;

Returns
Type Description
Timestamp

The sendTime.

getSendTimeBuilder()

public Timestamp.Builder getSendTimeBuilder()

The timestamp when the response chunk was sent by the service.

.google.protobuf.Timestamp send_time = 9;

Returns
Type Description
Builder

getSendTimeOrBuilder()

public TimestampOrBuilder getSendTimeOrBuilder()

The timestamp when the response chunk was sent by the service.

.google.protobuf.Timestamp send_time = 9;

Returns
Type Description
TimestampOrBuilder

getStatus()

public Status getStatus()

Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

.google.rpc.Status status = 3;

Returns
Type Description
com.google.rpc.Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

.google.rpc.Status status = 3;

Returns
Type Description
com.google.rpc.Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

.google.rpc.Status status = 3;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getTextMessageId()

public String getTextMessageId()

Required. The unique message identifier corresponding to the human agent query that generated this response chunk.

string text_message_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The textMessageId.

getTextMessageIdBytes()

public ByteString getTextMessageIdBytes()

Required. The unique message identifier corresponding to the human agent query that generated this response chunk.

string text_message_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for textMessageId.

hasIntermediateToolCallEvents()

public boolean hasIntermediateToolCallEvents()

Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the reactive_mode_final_response.response string.

.google.cloud.dialogflow.v2.ToolCallEvents intermediate_tool_call_events = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the intermediateToolCallEvents field is set.

hasReactiveModeFinalResponse()

public boolean hasReactiveModeFinalResponse()

Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when is_final is true and conversational processing for the query turn completes.

.google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse reactive_mode_final_response = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the reactiveModeFinalResponse field is set.

hasResponseChunk()

public boolean hasResponseChunk()

Streamed response text chunks.

string response_chunk = 1;

Returns
Type Description
boolean

Whether the responseChunk field is set.

hasSendTime()

public boolean hasSendTime()

The timestamp when the response chunk was sent by the service.

.google.protobuf.Timestamp send_time = 9;

Returns
Type Description
boolean

Whether the sendTime field is set.

hasStatus()

public boolean hasStatus()

Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

.google.rpc.Status status = 3;

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamingReactiveCompanionSuggestionsResponse other)

public StreamingReactiveCompanionSuggestionsResponse.Builder mergeFrom(StreamingReactiveCompanionSuggestionsResponse other)
Parameter
Name Description
other StreamingReactiveCompanionSuggestionsResponse
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingReactiveCompanionSuggestionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamingReactiveCompanionSuggestionsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder
Overrides

mergeIntermediateToolCallEvents(ToolCallEvents value)

public StreamingReactiveCompanionSuggestionsResponse.Builder mergeIntermediateToolCallEvents(ToolCallEvents value)

Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the reactive_mode_final_response.response string.

.google.cloud.dialogflow.v2.ToolCallEvents intermediate_tool_call_events = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ToolCallEvents
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

mergeReactiveModeFinalResponse(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse value)

public StreamingReactiveCompanionSuggestionsResponse.Builder mergeReactiveModeFinalResponse(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse value)

Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when is_final is true and conversational processing for the query turn completes.

.google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse reactive_mode_final_response = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

mergeSendTime(Timestamp value)

public StreamingReactiveCompanionSuggestionsResponse.Builder mergeSendTime(Timestamp value)

The timestamp when the response chunk was sent by the service.

.google.protobuf.Timestamp send_time = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

mergeStatus(Status value)

public StreamingReactiveCompanionSuggestionsResponse.Builder mergeStatus(Status value)

Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

.google.rpc.Status status = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setAnswerRecord(String value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setAnswerRecord(String value)

Output only. Only set when is_final is true and conversational turn processing completes. The final answer record representing the completed suggestion. Only present in the last chunk of the completed response.

string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The answerRecord to set.

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

setAnswerRecordBytes(ByteString value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setAnswerRecordBytes(ByteString value)

Output only. Only set when is_final is true and conversational turn processing completes. The final answer record representing the completed suggestion. Only present in the last chunk of the completed response.

string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for answerRecord to set.

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

setIntermediateToolCallEvents(ToolCallEvents value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setIntermediateToolCallEvents(ToolCallEvents value)

Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the reactive_mode_final_response.response string.

.google.cloud.dialogflow.v2.ToolCallEvents intermediate_tool_call_events = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ToolCallEvents
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setIntermediateToolCallEvents(ToolCallEvents.Builder builderForValue)

public StreamingReactiveCompanionSuggestionsResponse.Builder setIntermediateToolCallEvents(ToolCallEvents.Builder builderForValue)

Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the reactive_mode_final_response.response string.

.google.cloud.dialogflow.v2.ToolCallEvents intermediate_tool_call_events = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ToolCallEvents.Builder
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setIsFinal(boolean value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setIsFinal(boolean value)

Output only. Indicates whether the client/UI can accept a new query for reactive chat. When is_final is true, the reactive chat interface is unblocked and ready to receive new human agent queries. For synchronous turns, this is set to true on the final response chunk. For asynchronous tool calls running in the background, this is set to true on the intermediate trigger chunk to unblock the UI while the background tool execution is in progress.

bool is_final = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The isFinal to set.

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

setReactiveModeFinalResponse(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setReactiveModeFinalResponse(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse value)

Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when is_final is true and conversational processing for the query turn completes.

.google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse reactive_mode_final_response = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setReactiveModeFinalResponse(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder builderForValue)

public StreamingReactiveCompanionSuggestionsResponse.Builder setReactiveModeFinalResponse(StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder builderForValue)

Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when is_final is true and conversational processing for the query turn completes.

.google.cloud.dialogflow.v2.StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse reactive_mode_final_response = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue StreamingReactiveCompanionSuggestionsResponse.ReactiveModeResponse.Builder
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setResponseChunk(String value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setResponseChunk(String value)

Streamed response text chunks.

string response_chunk = 1;

Parameter
Name Description
value String

The responseChunk to set.

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

setResponseChunkBytes(ByteString value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setResponseChunkBytes(ByteString value)

Streamed response text chunks.

string response_chunk = 1;

Parameter
Name Description
value ByteString

The bytes for responseChunk to set.

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

setSendTime(Timestamp value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setSendTime(Timestamp value)

The timestamp when the response chunk was sent by the service.

.google.protobuf.Timestamp send_time = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setSendTime(Timestamp.Builder builderForValue)

public StreamingReactiveCompanionSuggestionsResponse.Builder setSendTime(Timestamp.Builder builderForValue)

The timestamp when the response chunk was sent by the service.

.google.protobuf.Timestamp send_time = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setStatus(Status value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setStatus(Status value)

Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

.google.rpc.Status status = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setStatus(Status.Builder builderForValue)

public StreamingReactiveCompanionSuggestionsResponse.Builder setStatus(Status.Builder builderForValue)

Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

.google.rpc.Status status = 3;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

setTextMessageId(String value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setTextMessageId(String value)

Required. The unique message identifier corresponding to the human agent query that generated this response chunk.

string text_message_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The textMessageId to set.

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.

setTextMessageIdBytes(ByteString value)

public StreamingReactiveCompanionSuggestionsResponse.Builder setTextMessageIdBytes(ByteString value)

Required. The unique message identifier corresponding to the human agent query that generated this response chunk.

string text_message_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for textMessageId to set.

Returns
Type Description
StreamingReactiveCompanionSuggestionsResponse.Builder

This builder for chaining.