Class ResponseMessage.Builder (4.4.0)

public static final class ResponseMessage.Builder extends GeneratedMessageV3.Builder<ResponseMessage.Builder> implements ResponseMessageOrBuilder

Response messages from an automated agent.

Protobuf type google.cloud.dialogflow.v2beta1.ResponseMessage

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResponseMessage build()
Returns
TypeDescription
ResponseMessage

buildPartial()

public ResponseMessage buildPartial()
Returns
TypeDescription
ResponseMessage

clear()

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

clearEndInteraction()

public ResponseMessage.Builder clearEndInteraction()

A signal that indicates the interaction with the Dialogflow agent has ended.

.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;

Returns
TypeDescription
ResponseMessage.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLiveAgentHandoff()

public ResponseMessage.Builder clearLiveAgentHandoff()

Hands off conversation to a live agent.

.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;

Returns
TypeDescription
ResponseMessage.Builder

clearMessage()

public ResponseMessage.Builder clearMessage()
Returns
TypeDescription
ResponseMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPayload()

public ResponseMessage.Builder clearPayload()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
ResponseMessage.Builder

clearTelephonyTransferCall()

public ResponseMessage.Builder clearTelephonyTransferCall()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;

Returns
TypeDescription
ResponseMessage.Builder

clearText()

public ResponseMessage.Builder clearText()

Returns a text response.

.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
ResponseMessage.Builder

clone()

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

getDefaultInstanceForType()

public ResponseMessage getDefaultInstanceForType()
Returns
TypeDescription
ResponseMessage

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndInteraction()

public ResponseMessage.EndInteraction getEndInteraction()

A signal that indicates the interaction with the Dialogflow agent has ended.

.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;

Returns
TypeDescription
ResponseMessage.EndInteraction

The endInteraction.

getEndInteractionBuilder()

public ResponseMessage.EndInteraction.Builder getEndInteractionBuilder()

A signal that indicates the interaction with the Dialogflow agent has ended.

.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;

Returns
TypeDescription
ResponseMessage.EndInteraction.Builder

getEndInteractionOrBuilder()

public ResponseMessage.EndInteractionOrBuilder getEndInteractionOrBuilder()

A signal that indicates the interaction with the Dialogflow agent has ended.

.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;

Returns
TypeDescription
ResponseMessage.EndInteractionOrBuilder

getLiveAgentHandoff()

public ResponseMessage.LiveAgentHandoff getLiveAgentHandoff()

Hands off conversation to a live agent.

.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;

Returns
TypeDescription
ResponseMessage.LiveAgentHandoff

The liveAgentHandoff.

getLiveAgentHandoffBuilder()

public ResponseMessage.LiveAgentHandoff.Builder getLiveAgentHandoffBuilder()

Hands off conversation to a live agent.

.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;

Returns
TypeDescription
ResponseMessage.LiveAgentHandoff.Builder

getLiveAgentHandoffOrBuilder()

public ResponseMessage.LiveAgentHandoffOrBuilder getLiveAgentHandoffOrBuilder()

Hands off conversation to a live agent.

.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;

Returns
TypeDescription
ResponseMessage.LiveAgentHandoffOrBuilder

getMessageCase()

public ResponseMessage.MessageCase getMessageCase()
Returns
TypeDescription
ResponseMessage.MessageCase

getPayload()

public Struct getPayload()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
Struct

The payload.

getPayloadBuilder()

public Struct.Builder getPayloadBuilder()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
Builder

getPayloadOrBuilder()

public StructOrBuilder getPayloadOrBuilder()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
StructOrBuilder

getTelephonyTransferCall()

public ResponseMessage.TelephonyTransferCall getTelephonyTransferCall()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;

Returns
TypeDescription
ResponseMessage.TelephonyTransferCall

The telephonyTransferCall.

getTelephonyTransferCallBuilder()

public ResponseMessage.TelephonyTransferCall.Builder getTelephonyTransferCallBuilder()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;

Returns
TypeDescription
ResponseMessage.TelephonyTransferCall.Builder

getTelephonyTransferCallOrBuilder()

public ResponseMessage.TelephonyTransferCallOrBuilder getTelephonyTransferCallOrBuilder()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;

Returns
TypeDescription
ResponseMessage.TelephonyTransferCallOrBuilder

getText()

public ResponseMessage.Text getText()

Returns a text response.

.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
ResponseMessage.Text

The text.

getTextBuilder()

public ResponseMessage.Text.Builder getTextBuilder()

Returns a text response.

.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
ResponseMessage.Text.Builder

getTextOrBuilder()

public ResponseMessage.TextOrBuilder getTextOrBuilder()

Returns a text response.

.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
ResponseMessage.TextOrBuilder

hasEndInteraction()

public boolean hasEndInteraction()

A signal that indicates the interaction with the Dialogflow agent has ended.

.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;

Returns
TypeDescription
boolean

Whether the endInteraction field is set.

hasLiveAgentHandoff()

public boolean hasLiveAgentHandoff()

Hands off conversation to a live agent.

.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;

Returns
TypeDescription
boolean

Whether the liveAgentHandoff field is set.

hasPayload()

public boolean hasPayload()

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Returns
TypeDescription
boolean

Whether the payload field is set.

hasTelephonyTransferCall()

public boolean hasTelephonyTransferCall()

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;

Returns
TypeDescription
boolean

Whether the telephonyTransferCall field is set.

hasText()

public boolean hasText()

Returns a text response.

.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;

Returns
TypeDescription
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndInteraction(ResponseMessage.EndInteraction value)

public ResponseMessage.Builder mergeEndInteraction(ResponseMessage.EndInteraction value)

A signal that indicates the interaction with the Dialogflow agent has ended.

.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;

Parameter
NameDescription
valueResponseMessage.EndInteraction
Returns
TypeDescription
ResponseMessage.Builder

mergeFrom(ResponseMessage other)

public ResponseMessage.Builder mergeFrom(ResponseMessage other)
Parameter
NameDescription
otherResponseMessage
Returns
TypeDescription
ResponseMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLiveAgentHandoff(ResponseMessage.LiveAgentHandoff value)

public ResponseMessage.Builder mergeLiveAgentHandoff(ResponseMessage.LiveAgentHandoff value)

Hands off conversation to a live agent.

.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;

Parameter
NameDescription
valueResponseMessage.LiveAgentHandoff
Returns
TypeDescription
ResponseMessage.Builder

mergePayload(Struct value)

public ResponseMessage.Builder mergePayload(Struct value)

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ResponseMessage.Builder

mergeTelephonyTransferCall(ResponseMessage.TelephonyTransferCall value)

public ResponseMessage.Builder mergeTelephonyTransferCall(ResponseMessage.TelephonyTransferCall value)

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;

Parameter
NameDescription
valueResponseMessage.TelephonyTransferCall
Returns
TypeDescription
ResponseMessage.Builder

mergeText(ResponseMessage.Text value)

public ResponseMessage.Builder mergeText(ResponseMessage.Text value)

Returns a text response.

.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;

Parameter
NameDescription
valueResponseMessage.Text
Returns
TypeDescription
ResponseMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndInteraction(ResponseMessage.EndInteraction value)

public ResponseMessage.Builder setEndInteraction(ResponseMessage.EndInteraction value)

A signal that indicates the interaction with the Dialogflow agent has ended.

.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;

Parameter
NameDescription
valueResponseMessage.EndInteraction
Returns
TypeDescription
ResponseMessage.Builder

setEndInteraction(ResponseMessage.EndInteraction.Builder builderForValue)

public ResponseMessage.Builder setEndInteraction(ResponseMessage.EndInteraction.Builder builderForValue)

A signal that indicates the interaction with the Dialogflow agent has ended.

.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;

Parameter
NameDescription
builderForValueResponseMessage.EndInteraction.Builder
Returns
TypeDescription
ResponseMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff value)

public ResponseMessage.Builder setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff value)

Hands off conversation to a live agent.

.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;

Parameter
NameDescription
valueResponseMessage.LiveAgentHandoff
Returns
TypeDescription
ResponseMessage.Builder

setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff.Builder builderForValue)

public ResponseMessage.Builder setLiveAgentHandoff(ResponseMessage.LiveAgentHandoff.Builder builderForValue)

Hands off conversation to a live agent.

.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;

Parameter
NameDescription
builderForValueResponseMessage.LiveAgentHandoff.Builder
Returns
TypeDescription
ResponseMessage.Builder

setPayload(Struct value)

public ResponseMessage.Builder setPayload(Struct value)

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ResponseMessage.Builder

setPayload(Struct.Builder builderForValue)

public ResponseMessage.Builder setPayload(Struct.Builder builderForValue)

Returns a response containing a custom, platform-specific payload.

.google.protobuf.Struct payload = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResponseMessage.Builder

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

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

setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall value)

public ResponseMessage.Builder setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall value)

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;

Parameter
NameDescription
valueResponseMessage.TelephonyTransferCall
Returns
TypeDescription
ResponseMessage.Builder

setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall.Builder builderForValue)

public ResponseMessage.Builder setTelephonyTransferCall(ResponseMessage.TelephonyTransferCall.Builder builderForValue)

A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.

.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;

Parameter
NameDescription
builderForValueResponseMessage.TelephonyTransferCall.Builder
Returns
TypeDescription
ResponseMessage.Builder

setText(ResponseMessage.Text value)

public ResponseMessage.Builder setText(ResponseMessage.Text value)

Returns a text response.

.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;

Parameter
NameDescription
valueResponseMessage.Text
Returns
TypeDescription
ResponseMessage.Builder

setText(ResponseMessage.Text.Builder builderForValue)

public ResponseMessage.Builder setText(ResponseMessage.Text.Builder builderForValue)

Returns a text response.

.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;

Parameter
NameDescription
builderForValueResponseMessage.Text.Builder
Returns
TypeDescription
ResponseMessage.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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