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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AutomatedAgentReply.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AutomatedAgentReply build()
Returns
buildPartial()
public AutomatedAgentReply buildPartial()
Returns
clear()
public AutomatedAgentReply.Builder clear()
Returns
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
clearAutomatedAgentReplyType()
public AutomatedAgentReply.Builder clearAutomatedAgentReplyType()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
Returns
clearDetectIntentResponse()
public AutomatedAgentReply.Builder clearDetectIntentResponse()
Response of the Dialogflow Sessions.DetectIntent call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public AutomatedAgentReply.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomatedAgentReply.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AutomatedAgentReply.Builder clone()
Returns
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
Type |
Description |
boolean |
The allowCancellation.
|
getAutomatedAgentReplyType()
public AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
Returns
getAutomatedAgentReplyTypeValue()
public int getAutomatedAgentReplyTypeValue()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
Returns
Type |
Description |
int |
The enum numeric value on the wire for automatedAgentReplyType.
|
getDefaultInstanceForType()
public AutomatedAgentReply getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDetectIntentResponse()
public DetectIntentResponse getDetectIntentResponse()
Response of the Dialogflow Sessions.DetectIntent call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
Returns
getDetectIntentResponseBuilder()
public DetectIntentResponse.Builder getDetectIntentResponseBuilder()
Response of the Dialogflow Sessions.DetectIntent call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
Returns
getDetectIntentResponseOrBuilder()
public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
Response of the Dialogflow Sessions.DetectIntent call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
Returns
hasDetectIntentResponse()
public boolean hasDetectIntentResponse()
Response of the Dialogflow Sessions.DetectIntent call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
Returns
Type |
Description |
boolean |
Whether the detectIntentResponse field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(AutomatedAgentReply other)
public AutomatedAgentReply.Builder mergeFrom(AutomatedAgentReply other)
Parameter
Returns
public AutomatedAgentReply.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AutomatedAgentReply.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedAgentReply.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Name |
Description |
value |
boolean
The allowCancellation to set.
|
Returns
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
Returns
setAutomatedAgentReplyTypeValue(int value)
public AutomatedAgentReply.Builder setAutomatedAgentReplyTypeValue(int value)
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
Parameter
Name |
Description |
value |
int
The enum numeric value on the wire for automatedAgentReplyType to set.
|
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AutomatedAgentReply.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AutomatedAgentReply.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedAgentReply.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides