Package com.google.cloud.dialogflow.v2
Class AutomatedAgentReply.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
- com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder
-
- All Implemented Interfaces:
AutomatedAgentReplyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutomatedAgentReply
public static final class AutomatedAgentReply.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder> implements AutomatedAgentReplyOrBuilder
Represents a response from an automated agent.
Protobuf typegoogle.cloud.dialogflow.v2.AutomatedAgentReply
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutomatedAgentReply.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AutomatedAgentReplybuild()AutomatedAgentReplybuildPartial()AutomatedAgentReply.Builderclear()AutomatedAgentReply.BuilderclearAllowCancellation()Indicates whether the partial automated agent reply is interruptible when a later reply message arrives.AutomatedAgentReply.BuilderclearAutomatedAgentReplyType()AutomatedAgentReply type.AutomatedAgentReply.BuilderclearCxCurrentPage()The unique identifier of the current Dialogflow CX conversation page.AutomatedAgentReply.BuilderclearDetectIntentResponse()Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.AutomatedAgentReply.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AutomatedAgentReply.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AutomatedAgentReply.Builderclone()booleangetAllowCancellation()Indicates whether the partial automated agent reply is interruptible when a later reply message arrives.AutomatedAgentReply.AutomatedAgentReplyTypegetAutomatedAgentReplyType()AutomatedAgentReply type.intgetAutomatedAgentReplyTypeValue()AutomatedAgentReply type.StringgetCxCurrentPage()The unique identifier of the current Dialogflow CX conversation page.com.google.protobuf.ByteStringgetCxCurrentPageBytes()The unique identifier of the current Dialogflow CX conversation page.AutomatedAgentReplygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DetectIntentResponsegetDetectIntentResponse()Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.DetectIntentResponse.BuildergetDetectIntentResponseBuilder()Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.DetectIntentResponseOrBuildergetDetectIntentResponseOrBuilder()Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.booleanhasDetectIntentResponse()Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AutomatedAgentReply.BuildermergeDetectIntentResponse(DetectIntentResponse value)Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.AutomatedAgentReply.BuildermergeFrom(AutomatedAgentReply other)AutomatedAgentReply.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AutomatedAgentReply.BuildermergeFrom(com.google.protobuf.Message other)AutomatedAgentReply.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AutomatedAgentReply.BuildersetAllowCancellation(boolean value)Indicates whether the partial automated agent reply is interruptible when a later reply message arrives.AutomatedAgentReply.BuildersetAutomatedAgentReplyType(AutomatedAgentReply.AutomatedAgentReplyType value)AutomatedAgentReply type.AutomatedAgentReply.BuildersetAutomatedAgentReplyTypeValue(int value)AutomatedAgentReply type.AutomatedAgentReply.BuildersetCxCurrentPage(String value)The unique identifier of the current Dialogflow CX conversation page.AutomatedAgentReply.BuildersetCxCurrentPageBytes(com.google.protobuf.ByteString value)The unique identifier of the current Dialogflow CX conversation page.AutomatedAgentReply.BuildersetDetectIntentResponse(DetectIntentResponse value)Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.AutomatedAgentReply.BuildersetDetectIntentResponse(DetectIntentResponse.Builder builderForValue)Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.AutomatedAgentReply.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AutomatedAgentReply.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AutomatedAgentReply.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
clear
public AutomatedAgentReply.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
getDefaultInstanceForType
public AutomatedAgentReply getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AutomatedAgentReply build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AutomatedAgentReply buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AutomatedAgentReply.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
setField
public AutomatedAgentReply.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
clearField
public AutomatedAgentReply.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
clearOneof
public AutomatedAgentReply.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
setRepeatedField
public AutomatedAgentReply.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
addRepeatedField
public AutomatedAgentReply.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
mergeFrom
public AutomatedAgentReply.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatedAgentReply.Builder>
-
mergeFrom
public AutomatedAgentReply.Builder mergeFrom(AutomatedAgentReply other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
mergeFrom
public AutomatedAgentReply.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatedAgentReply.Builder>- Throws:
IOException
-
hasDetectIntentResponse
public boolean hasDetectIntentResponse()
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;- Specified by:
hasDetectIntentResponsein interfaceAutomatedAgentReplyOrBuilder- Returns:
- Whether the detectIntentResponse field is set.
-
getDetectIntentResponse
public DetectIntentResponse getDetectIntentResponse()
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;- Specified by:
getDetectIntentResponsein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The detectIntentResponse.
-
setDetectIntentResponse
public AutomatedAgentReply.Builder setDetectIntentResponse(DetectIntentResponse value)
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
-
setDetectIntentResponse
public AutomatedAgentReply.Builder setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
-
mergeDetectIntentResponse
public AutomatedAgentReply.Builder mergeDetectIntentResponse(DetectIntentResponse value)
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
-
clearDetectIntentResponse
public AutomatedAgentReply.Builder clearDetectIntentResponse()
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
-
getDetectIntentResponseBuilder
public DetectIntentResponse.Builder getDetectIntentResponseBuilder()
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
-
getDetectIntentResponseOrBuilder
public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;- Specified by:
getDetectIntentResponseOrBuilderin interfaceAutomatedAgentReplyOrBuilder
-
getAutomatedAgentReplyTypeValue
public int getAutomatedAgentReplyTypeValue()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;- Specified by:
getAutomatedAgentReplyTypeValuein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The enum numeric value on the wire for automatedAgentReplyType.
-
setAutomatedAgentReplyTypeValue
public AutomatedAgentReply.Builder setAutomatedAgentReplyTypeValue(int value)
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;- Parameters:
value- The enum numeric value on the wire for automatedAgentReplyType to set.- Returns:
- This builder for chaining.
-
getAutomatedAgentReplyType
public AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;- Specified by:
getAutomatedAgentReplyTypein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The automatedAgentReplyType.
-
setAutomatedAgentReplyType
public AutomatedAgentReply.Builder setAutomatedAgentReplyType(AutomatedAgentReply.AutomatedAgentReplyType value)
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;- Parameters:
value- The automatedAgentReplyType to set.- Returns:
- This builder for chaining.
-
clearAutomatedAgentReplyType
public AutomatedAgentReply.Builder clearAutomatedAgentReplyType()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;- Returns:
- This builder for chaining.
-
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;- Specified by:
getAllowCancellationin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The allowCancellation.
-
setAllowCancellation
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;- Parameters:
value- The allowCancellation to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getCxCurrentPagein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The cxCurrentPage.
-
getCxCurrentPageBytes
public com.google.protobuf.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;- Specified by:
getCxCurrentPageBytesin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The bytes for cxCurrentPage.
-
setCxCurrentPage
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;- Parameters:
value- The cxCurrentPage to set.- Returns:
- 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:
- This builder for chaining.
-
setCxCurrentPageBytes
public AutomatedAgentReply.Builder setCxCurrentPageBytes(com.google.protobuf.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;- Parameters:
value- The bytes for cxCurrentPage to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AutomatedAgentReply.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
mergeUnknownFields
public final AutomatedAgentReply.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedAgentReply.Builder>
-
-