Class AutomatedAgentReply.Builder (4.43.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.v2.AutomatedAgentReply

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

clearCxCurrentPage()

public AutomatedAgentReply.Builder clearCxCurrentPage()

The unique identifier of the current Dialogflow CX conversation page. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string cx_current_page = 11;

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

clearDetectIntentResponse()

public AutomatedAgentReply.Builder clearDetectIntentResponse()

Response of the Dialogflow Sessions.DetectIntent call.

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

Returns
TypeDescription
AutomatedAgentReply.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;

Returns
TypeDescription
AutomatedAgentReply.AutomatedAgentReplyType

The automatedAgentReplyType.

getAutomatedAgentReplyTypeValue()

public int getAutomatedAgentReplyTypeValue()

AutomatedAgentReply type.

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

Returns
TypeDescription
int

The enum numeric value on the wire for automatedAgentReplyType.

getCxCurrentPage()

public String getCxCurrentPage()

The unique identifier of the current Dialogflow CX conversation page. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string cx_current_page = 11;

Returns
TypeDescription
String

The cxCurrentPage.

getCxCurrentPageBytes()

public ByteString getCxCurrentPageBytes()

The unique identifier of the current Dialogflow CX conversation page. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string cx_current_page = 11;

Returns
TypeDescription
ByteString

The bytes for cxCurrentPage.

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.v2.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.v2.DetectIntentResponse detect_intent_response = 1;

Returns
TypeDescription
DetectIntentResponse.Builder

getDetectIntentResponseOrBuilder()

public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()

Response of the Dialogflow Sessions.DetectIntent call.

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

Returns
TypeDescription
DetectIntentResponseOrBuilder

hasDetectIntentResponse()

public boolean hasDetectIntentResponse()

Response of the Dialogflow Sessions.DetectIntent call.

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

Returns
TypeDescription
boolean

Whether the detectIntentResponse field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDetectIntentResponse(DetectIntentResponse value)

public AutomatedAgentReply.Builder mergeDetectIntentResponse(DetectIntentResponse value)

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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.v2.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.v2.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.

setCxCurrentPage(String value)

public AutomatedAgentReply.Builder setCxCurrentPage(String value)

The unique identifier of the current Dialogflow CX conversation page. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string cx_current_page = 11;

Parameter
NameDescription
valueString

The cxCurrentPage to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setCxCurrentPageBytes(ByteString value)

public AutomatedAgentReply.Builder setCxCurrentPageBytes(ByteString value)

The unique identifier of the current Dialogflow CX conversation page. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string cx_current_page = 11;

Parameter
NameDescription
valueByteString

The bytes for cxCurrentPage to set.

Returns
TypeDescription
AutomatedAgentReply.Builder

This builder for chaining.

setDetectIntentResponse(DetectIntentResponse value)

public AutomatedAgentReply.Builder setDetectIntentResponse(DetectIntentResponse value)

Response of the Dialogflow Sessions.DetectIntent call.

.google.cloud.dialogflow.v2.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.v2.DetectIntentResponse detect_intent_response = 1;

Parameter
NameDescription
builderForValueDetectIntentResponse.Builder
Returns
TypeDescription
AutomatedAgentReply.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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