Class AutomatedAgentReply.Builder (4.6.0)

public static final class AutomatedAgentReply.Builder extends GeneratedMessageV3.Builder<AutomatedAgentReply.Builder> implements AutomatedAgentReplyOrBuilder

Represents a response from an automated agent.

Protobuf type google.cloud.dialogflow.v2beta1.AutomatedAgentReply

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllResponseMessages(Iterable<? extends ResponseMessage> values)

public AutomatedAgentReply.Builder addAllResponseMessages(Iterable<? extends ResponseMessage> values)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.ResponseMessage>
Returns
TypeDescription
AutomatedAgentReply.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomatedAgentReply.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

addResponseMessages(ResponseMessage value)

public AutomatedAgentReply.Builder addResponseMessages(ResponseMessage value)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameter
NameDescription
valueResponseMessage
Returns
TypeDescription
AutomatedAgentReply.Builder

addResponseMessages(ResponseMessage.Builder builderForValue)

public AutomatedAgentReply.Builder addResponseMessages(ResponseMessage.Builder builderForValue)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameter
NameDescription
builderForValueResponseMessage.Builder
Returns
TypeDescription
AutomatedAgentReply.Builder

addResponseMessages(int index, ResponseMessage value)

public AutomatedAgentReply.Builder addResponseMessages(int index, ResponseMessage value)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameters
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
AutomatedAgentReply.Builder

addResponseMessages(int index, ResponseMessage.Builder builderForValue)

public AutomatedAgentReply.Builder addResponseMessages(int index, ResponseMessage.Builder builderForValue)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameters
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
AutomatedAgentReply.Builder

addResponseMessagesBuilder()

public ResponseMessage.Builder addResponseMessagesBuilder()

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Returns
TypeDescription
ResponseMessage.Builder

addResponseMessagesBuilder(int index)

public ResponseMessage.Builder addResponseMessagesBuilder(int index)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

build()

public AutomatedAgentReply build()
Returns
TypeDescription
AutomatedAgentReply

buildPartial()

public AutomatedAgentReply buildPartial()
Returns
TypeDescription
AutomatedAgentReply

clear()

public AutomatedAgentReply.Builder clear()
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

clearAllowCancellation()

public AutomatedAgentReply.Builder clearAllowCancellation()

Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.

bool allow_cancellation = 8;

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

clearAutomatedAgentReplyType()

public AutomatedAgentReply.Builder clearAutomatedAgentReplyType()

AutomatedAgentReply type.

.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

clearCxSessionParameters()

public AutomatedAgentReply.Builder clearCxSessionParameters()

The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use parameters instead.

.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];

Returns
TypeDescription
AutomatedAgentReply.Builder

clearDetectIntentResponse()

public AutomatedAgentReply.Builder clearDetectIntentResponse()

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;

Returns
TypeDescription
AutomatedAgentReply.Builder

clearEvent()

public AutomatedAgentReply.Builder clearEvent()

Event name if an event is triggered for the query.

string event = 5;

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AutomatedAgentReply.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

clearIntent()

public AutomatedAgentReply.Builder clearIntent()

Name of the intent if an intent is matched for the query. For a V2 query, the value format is projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>. For a V3 query, the value format is projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

clearMatch()

public AutomatedAgentReply.Builder clearMatch()
Returns
TypeDescription
AutomatedAgentReply.Builder

clearMatchConfidence()

public AutomatedAgentReply.Builder clearMatchConfidence()

The confidence of the match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.

float match_confidence = 9;

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomatedAgentReply.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

clearParameters()

public AutomatedAgentReply.Builder clearParameters()

The collection of current parameters at the time of this response.

.google.protobuf.Struct parameters = 10;

Returns
TypeDescription
AutomatedAgentReply.Builder

clearResponse()

public AutomatedAgentReply.Builder clearResponse()
Returns
TypeDescription
AutomatedAgentReply.Builder

clearResponseMessages()

public AutomatedAgentReply.Builder clearResponseMessages()

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Returns
TypeDescription
AutomatedAgentReply.Builder

clone()

public AutomatedAgentReply.Builder clone()
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

getAllowCancellation()

public boolean getAllowCancellation()

Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.

bool allow_cancellation = 8;

Returns
TypeDescription
boolean

The allowCancellation.

getAutomatedAgentReplyType()

public AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType()

AutomatedAgentReply type.

.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Returns
TypeDescription
AutomatedAgentReply.AutomatedAgentReplyType

The automatedAgentReplyType.

getAutomatedAgentReplyTypeValue()

public int getAutomatedAgentReplyTypeValue()

AutomatedAgentReply type.

.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for automatedAgentReplyType.

getCxSessionParameters() (deprecated)

public Struct getCxSessionParameters()

Deprecated. google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=474

The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use parameters instead.

.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];

Returns
TypeDescription
Struct

The cxSessionParameters.

getCxSessionParametersBuilder()

public Struct.Builder getCxSessionParametersBuilder()

The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use parameters instead.

.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];

Returns
TypeDescription
Builder

getCxSessionParametersOrBuilder()

public StructOrBuilder getCxSessionParametersOrBuilder()

The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use parameters instead.

.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public AutomatedAgentReply getDefaultInstanceForType()
Returns
TypeDescription
AutomatedAgentReply

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetectIntentResponse()

public DetectIntentResponse getDetectIntentResponse()

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;

Returns
TypeDescription
DetectIntentResponse

The detectIntentResponse.

getDetectIntentResponseBuilder()

public DetectIntentResponse.Builder getDetectIntentResponseBuilder()

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;

Returns
TypeDescription
DetectIntentResponse.Builder

getDetectIntentResponseOrBuilder()

public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;

Returns
TypeDescription
DetectIntentResponseOrBuilder

getEvent()

public String getEvent()

Event name if an event is triggered for the query.

string event = 5;

Returns
TypeDescription
String

The event.

getEventBytes()

public ByteString getEventBytes()

Event name if an event is triggered for the query.

string event = 5;

Returns
TypeDescription
ByteString

The bytes for event.

getIntent()

public String getIntent()

Name of the intent if an intent is matched for the query. For a V2 query, the value format is projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>. For a V3 query, the value format is projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The intent.

getIntentBytes()

public ByteString getIntentBytes()

Name of the intent if an intent is matched for the query. For a V2 query, the value format is projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>. For a V3 query, the value format is projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for intent.

getMatchCase()

public AutomatedAgentReply.MatchCase getMatchCase()
Returns
TypeDescription
AutomatedAgentReply.MatchCase

getMatchConfidence()

public float getMatchConfidence()

The confidence of the match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.

float match_confidence = 9;

Returns
TypeDescription
float

The matchConfidence.

getParameters()

public Struct getParameters()

The collection of current parameters at the time of this response.

.google.protobuf.Struct parameters = 10;

Returns
TypeDescription
Struct

The parameters.

getParametersBuilder()

public Struct.Builder getParametersBuilder()

The collection of current parameters at the time of this response.

.google.protobuf.Struct parameters = 10;

Returns
TypeDescription
Builder

getParametersOrBuilder()

public StructOrBuilder getParametersOrBuilder()

The collection of current parameters at the time of this response.

.google.protobuf.Struct parameters = 10;

Returns
TypeDescription
StructOrBuilder

getResponseCase()

public AutomatedAgentReply.ResponseCase getResponseCase()
Returns
TypeDescription
AutomatedAgentReply.ResponseCase

getResponseMessages(int index)

public ResponseMessage getResponseMessages(int index)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage

getResponseMessagesBuilder(int index)

public ResponseMessage.Builder getResponseMessagesBuilder(int index)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

getResponseMessagesBuilderList()

public List<ResponseMessage.Builder> getResponseMessagesBuilderList()

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Returns
TypeDescription
List<Builder>

getResponseMessagesCount()

public int getResponseMessagesCount()

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Returns
TypeDescription
int

getResponseMessagesList()

public List<ResponseMessage> getResponseMessagesList()

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Returns
TypeDescription
List<ResponseMessage>

getResponseMessagesOrBuilder(int index)

public ResponseMessageOrBuilder getResponseMessagesOrBuilder(int index)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessageOrBuilder

getResponseMessagesOrBuilderList()

public List<? extends ResponseMessageOrBuilder> getResponseMessagesOrBuilderList()

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder>

hasCxSessionParameters() (deprecated)

public boolean hasCxSessionParameters()

Deprecated. google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=474

The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use parameters instead.

.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];

Returns
TypeDescription
boolean

Whether the cxSessionParameters field is set.

hasDetectIntentResponse()

public boolean hasDetectIntentResponse()

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;

Returns
TypeDescription
boolean

Whether the detectIntentResponse field is set.

hasEvent()

public boolean hasEvent()

Event name if an event is triggered for the query.

string event = 5;

Returns
TypeDescription
boolean

Whether the event field is set.

hasIntent()

public boolean hasIntent()

Name of the intent if an intent is matched for the query. For a V2 query, the value format is projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>. For a V3 query, the value format is projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
boolean

Whether the intent field is set.

hasParameters()

public boolean hasParameters()

The collection of current parameters at the time of this response.

.google.protobuf.Struct parameters = 10;

Returns
TypeDescription
boolean

Whether the parameters field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCxSessionParameters(Struct value)

public AutomatedAgentReply.Builder mergeCxSessionParameters(Struct value)

The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use parameters instead.

.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];

Parameter
NameDescription
valueStruct
Returns
TypeDescription
AutomatedAgentReply.Builder

mergeDetectIntentResponse(DetectIntentResponse value)

public AutomatedAgentReply.Builder mergeDetectIntentResponse(DetectIntentResponse value)

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;

Parameter
NameDescription
valueDetectIntentResponse
Returns
TypeDescription
AutomatedAgentReply.Builder

mergeFrom(AutomatedAgentReply other)

public AutomatedAgentReply.Builder mergeFrom(AutomatedAgentReply other)
Parameter
NameDescription
otherAutomatedAgentReply
Returns
TypeDescription
AutomatedAgentReply.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomatedAgentReply.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutomatedAgentReply.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

mergeParameters(Struct value)

public AutomatedAgentReply.Builder mergeParameters(Struct value)

The collection of current parameters at the time of this response.

.google.protobuf.Struct parameters = 10;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
AutomatedAgentReply.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedAgentReply.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

removeResponseMessages(int index)

public AutomatedAgentReply.Builder removeResponseMessages(int index)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AutomatedAgentReply.Builder

setAllowCancellation(boolean value)

public AutomatedAgentReply.Builder setAllowCancellation(boolean value)

Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.

bool allow_cancellation = 8;

Parameter
NameDescription
valueboolean

The allowCancellation to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setAutomatedAgentReplyType(AutomatedAgentReply.AutomatedAgentReplyType value)

public AutomatedAgentReply.Builder setAutomatedAgentReplyType(AutomatedAgentReply.AutomatedAgentReplyType value)

AutomatedAgentReply type.

.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Parameter
NameDescription
valueAutomatedAgentReply.AutomatedAgentReplyType

The automatedAgentReplyType to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setAutomatedAgentReplyTypeValue(int value)

public AutomatedAgentReply.Builder setAutomatedAgentReplyTypeValue(int value)

AutomatedAgentReply type.

.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for automatedAgentReplyType to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setCxSessionParameters(Struct value)

public AutomatedAgentReply.Builder setCxSessionParameters(Struct value)

The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use parameters instead.

.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];

Parameter
NameDescription
valueStruct
Returns
TypeDescription
AutomatedAgentReply.Builder

setCxSessionParameters(Struct.Builder builderForValue)

public AutomatedAgentReply.Builder setCxSessionParameters(Struct.Builder builderForValue)

The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use parameters instead.

.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutomatedAgentReply.Builder

setDetectIntentResponse(DetectIntentResponse value)

public AutomatedAgentReply.Builder setDetectIntentResponse(DetectIntentResponse value)

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;

Parameter
NameDescription
valueDetectIntentResponse
Returns
TypeDescription
AutomatedAgentReply.Builder

setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)

public AutomatedAgentReply.Builder setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;

Parameter
NameDescription
builderForValueDetectIntentResponse.Builder
Returns
TypeDescription
AutomatedAgentReply.Builder

setEvent(String value)

public AutomatedAgentReply.Builder setEvent(String value)

Event name if an event is triggered for the query.

string event = 5;

Parameter
NameDescription
valueString

The event to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setEventBytes(ByteString value)

public AutomatedAgentReply.Builder setEventBytes(ByteString value)

Event name if an event is triggered for the query.

string event = 5;

Parameter
NameDescription
valueByteString

The bytes for event to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedAgentReply.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

setIntent(String value)

public AutomatedAgentReply.Builder setIntent(String value)

Name of the intent if an intent is matched for the query. For a V2 query, the value format is projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>. For a V3 query, the value format is projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 4 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The intent to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setIntentBytes(ByteString value)

public AutomatedAgentReply.Builder setIntentBytes(ByteString value)

Name of the intent if an intent is matched for the query. For a V2 query, the value format is projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>. For a V3 query, the value format is projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 4 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for intent to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setMatchConfidence(float value)

public AutomatedAgentReply.Builder setMatchConfidence(float value)

The confidence of the match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.

float match_confidence = 9;

Parameter
NameDescription
valuefloat

The matchConfidence to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setParameters(Struct value)

public AutomatedAgentReply.Builder setParameters(Struct value)

The collection of current parameters at the time of this response.

.google.protobuf.Struct parameters = 10;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
AutomatedAgentReply.Builder

setParameters(Struct.Builder builderForValue)

public AutomatedAgentReply.Builder setParameters(Struct.Builder builderForValue)

The collection of current parameters at the time of this response.

.google.protobuf.Struct parameters = 10;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutomatedAgentReply.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AutomatedAgentReply.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides

setResponseMessages(int index, ResponseMessage value)

public AutomatedAgentReply.Builder setResponseMessages(int index, ResponseMessage value)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameters
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
AutomatedAgentReply.Builder

setResponseMessages(int index, ResponseMessage.Builder builderForValue)

public AutomatedAgentReply.Builder setResponseMessages(int index, ResponseMessage.Builder builderForValue)

Response messages from the automated agent.

repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;

Parameters
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
AutomatedAgentReply.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedAgentReply.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomatedAgentReply.Builder
Overrides