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.GeneratedMessage.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.GeneratedMessage.Builder<AutomatedAgentReply.Builder>
implements AutomatedAgentReplyOrBuilder
Represents a response from an automated agent.Protobuf type
google.cloud.dialogflow.v2.AutomatedAgentReply-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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.AutomatedAgentReply type.The unique identifier of the current Dialogflow CX conversation page.Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.booleanIndicates 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.AutomatedAgentReply type.intAutomatedAgentReply type.The unique identifier of the current Dialogflow CX conversation page.com.google.protobuf.ByteStringThe unique identifier of the current Dialogflow CX conversation page.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorResponse of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.booleanResponse of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanResponse of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.mergeFrom(AutomatedAgentReply other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.AutomatedAgentReply type.setAutomatedAgentReplyTypeValue(int value) AutomatedAgentReply type.setCxCurrentPage(String value) The unique identifier of the current Dialogflow CX conversation page.setCxCurrentPageBytes(com.google.protobuf.ByteString value) The unique identifier of the current Dialogflow CX conversation page.Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.setDetectIntentResponse(DetectIntentResponse.Builder builderForValue) Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AutomatedAgentReply.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<AutomatedAgentReply.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatedAgentReply.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; -
clearDetectIntentResponse
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; -
getDetectIntentResponseBuilder
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; -
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
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
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
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
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
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
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
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
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
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.
-