Class SuggestionInput.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SuggestionInput.Builder>
com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder
- All Implemented Interfaces:
SuggestionInputOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SuggestionInput
public static final class SuggestionInput.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SuggestionInput.Builder>
implements SuggestionInputOrBuilder
Represents the action to take for a tool call that requires confirmation.Protobuf type
google.cloud.dialogflow.v2beta1.SuggestionInput-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.The intent to be triggered on V3 agent.Parameters to be used for the tool call.Optional.Optional.Optional.intOptional.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe intent to be triggered on V3 agent.The intent to be triggered on V3 agent.The intent to be triggered on V3 agent.com.google.protobuf.StructParameters to be used for the tool call.com.google.protobuf.Struct.BuilderParameters to be used for the tool call.com.google.protobuf.StructOrBuilderParameters to be used for the tool call.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.Optional.Optional.Optional.booleanThe intent to be triggered on V3 agent.booleanParameters to be used for the tool call.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SuggestionInput other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIntentInput(IntentInput value) The intent to be triggered on V3 agent.mergeParameters(com.google.protobuf.Struct value) Parameters to be used for the tool call.mergeSendTime(com.google.protobuf.Timestamp value) Optional.mergeTextOverride(TextInput value) Optional.setAction(SuggestionInput.Action value) Optional.setActionValue(int value) Optional.setAnswerRecord(String value) Required.setAnswerRecordBytes(com.google.protobuf.ByteString value) Required.setIntentInput(IntentInput value) The intent to be triggered on V3 agent.setIntentInput(IntentInput.Builder builderForValue) The intent to be triggered on V3 agent.setParameters(com.google.protobuf.Struct value) Parameters to be used for the tool call.setParameters(com.google.protobuf.Struct.Builder builderForValue) Parameters to be used for the tool call.setSendTime(com.google.protobuf.Timestamp value) Optional.setSendTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setTextOverride(TextInput value) Optional.setTextOverride(TextInput.Builder builderForValue) Optional.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<SuggestionInput.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<SuggestionInput.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<SuggestionInput.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<SuggestionInput.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SuggestionInput.Builder>
-
mergeFrom
public SuggestionInput.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<SuggestionInput.Builder>- Throws:
IOException
-
getAnswerRecord
Required. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>` The answer record associated with the tool call.
string answer_record = 1;- Specified by:
getAnswerRecordin interfaceSuggestionInputOrBuilder- Returns:
- The answerRecord.
-
getAnswerRecordBytes
public com.google.protobuf.ByteString getAnswerRecordBytes()Required. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>` The answer record associated with the tool call.
string answer_record = 1;- Specified by:
getAnswerRecordBytesin interfaceSuggestionInputOrBuilder- Returns:
- The bytes for answerRecord.
-
setAnswerRecord
Required. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>` The answer record associated with the tool call.
string answer_record = 1;- Parameters:
value- The answerRecord to set.- Returns:
- This builder for chaining.
-
clearAnswerRecord
Required. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>` The answer record associated with the tool call.
string answer_record = 1;- Returns:
- This builder for chaining.
-
setAnswerRecordBytes
Required. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>` The answer record associated with the tool call.
string answer_record = 1;- Parameters:
value- The bytes for answerRecord to set.- Returns:
- This builder for chaining.
-
hasTextOverride
public boolean hasTextOverride()Optional. If the customer edited the suggestion before using it, include the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;- Specified by:
hasTextOverridein interfaceSuggestionInputOrBuilder- Returns:
- Whether the textOverride field is set.
-
getTextOverride
Optional. If the customer edited the suggestion before using it, include the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;- Specified by:
getTextOverridein interfaceSuggestionInputOrBuilder- Returns:
- The textOverride.
-
setTextOverride
Optional. If the customer edited the suggestion before using it, include the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2; -
setTextOverride
Optional. If the customer edited the suggestion before using it, include the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2; -
mergeTextOverride
Optional. If the customer edited the suggestion before using it, include the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2; -
clearTextOverride
Optional. If the customer edited the suggestion before using it, include the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2; -
getTextOverrideBuilder
Optional. If the customer edited the suggestion before using it, include the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2; -
getTextOverrideOrBuilder
Optional. If the customer edited the suggestion before using it, include the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;- Specified by:
getTextOverrideOrBuilderin interfaceSuggestionInputOrBuilder
-
hasParameters
public boolean hasParameters()Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4;- Specified by:
hasParametersin interfaceSuggestionInputOrBuilder- Returns:
- Whether the parameters field is set.
-
getParameters
public com.google.protobuf.Struct getParameters()Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4;- Specified by:
getParametersin interfaceSuggestionInputOrBuilder- Returns:
- The parameters.
-
setParameters
Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4; -
setParameters
Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4; -
mergeParameters
Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4; -
clearParameters
Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4; -
getParametersBuilder
public com.google.protobuf.Struct.Builder getParametersBuilder()Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4; -
getParametersOrBuilder
public com.google.protobuf.StructOrBuilder getParametersOrBuilder()Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4;- Specified by:
getParametersOrBuilderin interfaceSuggestionInputOrBuilder
-
getActionValue
public int getActionValue()Optional. The type of action to take with the tool.
.google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionValuein interfaceSuggestionInputOrBuilder- Returns:
- The enum numeric value on the wire for action.
-
setActionValue
Optional. The type of action to take with the tool.
.google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for action to set.- Returns:
- This builder for chaining.
-
getAction
Optional. The type of action to take with the tool.
.google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionin interfaceSuggestionInputOrBuilder- Returns:
- The action.
-
setAction
Optional. The type of action to take with the tool.
.google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
Optional. The type of action to take with the tool.
.google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasIntentInput
public boolean hasIntentInput()The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;- Specified by:
hasIntentInputin interfaceSuggestionInputOrBuilder- Returns:
- Whether the intentInput field is set.
-
getIntentInput
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;- Specified by:
getIntentInputin interfaceSuggestionInputOrBuilder- Returns:
- The intentInput.
-
setIntentInput
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6; -
setIntentInput
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6; -
mergeIntentInput
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6; -
clearIntentInput
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6; -
getIntentInputBuilder
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6; -
getIntentInputOrBuilder
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;- Specified by:
getIntentInputOrBuilderin interfaceSuggestionInputOrBuilder
-
hasSendTime
public boolean hasSendTime()Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
.google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSendTimein interfaceSuggestionInputOrBuilder- Returns:
- Whether the sendTime field is set.
-
getSendTime
public com.google.protobuf.Timestamp getSendTime()Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
.google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSendTimein interfaceSuggestionInputOrBuilder- Returns:
- The sendTime.
-
setSendTime
Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
.google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setSendTime
Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
.google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
mergeSendTime
Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
.google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearSendTime
Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
.google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getSendTimeBuilder
public com.google.protobuf.Timestamp.Builder getSendTimeBuilder()Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
.google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getSendTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder()Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
.google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSendTimeOrBuilderin interfaceSuggestionInputOrBuilder
-