Package com.google.cloud.dialogflow.v2
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.v2.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.v2.SuggestionInput-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.Optional.Optional.intOptional.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.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) mergeParameters(com.google.protobuf.Struct value) Optional.mergeSendTime(com.google.protobuf.Timestamp value) Optional.setAction(SuggestionInput.Action value) Optional.setActionValue(int value) Optional.setAnswerRecord(String value) Required.setAnswerRecordBytes(com.google.protobuf.ByteString value) Required.setParameters(com.google.protobuf.Struct value) Optional.setParameters(com.google.protobuf.Struct.Builder builderForValue) Optional.setSendTime(com.google.protobuf.Timestamp value) Optional.setSendTime(com.google.protobuf.Timestamp.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 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for answerRecord to set.- Returns:
- This builder for chaining.
-
hasParameters
public boolean hasParameters()Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasParametersin interfaceSuggestionInputOrBuilder- Returns:
- Whether the parameters field is set.
-
getParameters
public com.google.protobuf.Struct getParameters()Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParametersin interfaceSuggestionInputOrBuilder- Returns:
- The parameters.
-
setParameters
Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setParameters
Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeParameters
Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearParameters
Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getParametersBuilder
public com.google.protobuf.Struct.Builder getParametersBuilder()Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getParametersOrBuilder
public com.google.protobuf.StructOrBuilder getParametersOrBuilder()Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
.google.protobuf.Struct parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParametersOrBuilderin interfaceSuggestionInputOrBuilder
-
getActionValue
public int getActionValue()Optional. The type of action to take with the tool.
.google.cloud.dialogflow.v2.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.v2.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.v2.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.v2.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.v2.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
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
-