Package com.google.cloud.dialogflow.v2
Interface SuggestionInputOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SuggestionInput,SuggestionInput.Builder
@Generated
public interface SuggestionInputOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.intOptional.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.StructOptional.com.google.protobuf.StructOrBuilderOptional.com.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.booleanOptional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAnswerRecord
String 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];- Returns:
- The answerRecord.
-
getAnswerRecordBytes
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];- Returns:
- The bytes for answerRecord.
-
hasParameters
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];- Returns:
- Whether the parameters field is set.
-
getParameters
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];- Returns:
- The parameters.
-
getParametersOrBuilder
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]; -
getActionValue
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];- Returns:
- The enum numeric value on the wire for action.
-
getAction
SuggestionInput.Action getAction()Optional. The type of action to take with the tool.
.google.cloud.dialogflow.v2.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The action.
-
hasSendTime
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];- Returns:
- Whether the sendTime field is set.
-
getSendTime
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];- Returns:
- The sendTime.
-
getSendTimeOrBuilder
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];
-