public final class SuggestionInput extends GeneratedMessageV3 implements SuggestionInputOrBuilder
Represents the selection of a suggestion.
Protobuf type google.cloud.dialogflow.v2beta1.SuggestionInput
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int ANSWER_RECORD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int INTENT_INPUT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PARAMETERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TEXT_OVERRIDE_FIELD_NUMBER
public static final int TEXT_OVERRIDE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static SuggestionInput getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static SuggestionInput.Builder newBuilder()
public static SuggestionInput.Builder newBuilder(SuggestionInput prototype)
public static SuggestionInput parseDelimitedFrom(InputStream input)
public static SuggestionInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SuggestionInput parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static SuggestionInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SuggestionInput parseFrom(ByteString data)
public static SuggestionInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SuggestionInput parseFrom(CodedInputStream input)
public static SuggestionInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SuggestionInput parseFrom(InputStream input)
public static SuggestionInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SuggestionInput parseFrom(ByteBuffer data)
public static SuggestionInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<SuggestionInput> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public String getAnswerRecord()
Required. The ID of a suggestion selected by the human agent.
The suggestion(s) were generated in a previous call to
request Dialogflow assist.
The format is:
projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>
where <Answer Record ID> is an alphanumeric string.
string answer_record = 1;
Returns |
Type |
Description |
String |
The answerRecord.
|
public ByteString getAnswerRecordBytes()
Required. The ID of a suggestion selected by the human agent.
The suggestion(s) were generated in a previous call to
request Dialogflow assist.
The format is:
projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>
where <Answer Record ID> is an alphanumeric string.
string answer_record = 1;
Returns |
Type |
Description |
ByteString |
The bytes for answerRecord.
|
public SuggestionInput getDefaultInstanceForType()
public IntentInput getIntentInput()
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
public IntentInputOrBuilder getIntentInputOrBuilder()
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
public Struct getParameters()
In Dialogflow assist for v3, the user can submit a form by sending
a SuggestionInput. The
form is uniquely determined by the
answer_record
field, which identifies a v3
QueryResult containing the
current page. The form parameters
are specified via the
parameters
field.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter's entity type is a composite entity then use
map, otherwise, depending on the parameter value type, it could be one of
string, number, boolean, null, list or map.
- MapValue value: If parameter's entity type is a composite entity then use
map from composite entity property names to property values, otherwise,
use parameter value.
.google.protobuf.Struct parameters = 4;
Returns |
Type |
Description |
Struct |
The parameters.
|
public StructOrBuilder getParametersOrBuilder()
In Dialogflow assist for v3, the user can submit a form by sending
a SuggestionInput. The
form is uniquely determined by the
answer_record
field, which identifies a v3
QueryResult containing the
current page. The form parameters
are specified via the
parameters
field.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter's entity type is a composite entity then use
map, otherwise, depending on the parameter value type, it could be one of
string, number, boolean, null, list or map.
- MapValue value: If parameter's entity type is a composite entity then use
map from composite entity property names to property values, otherwise,
use parameter value.
.google.protobuf.Struct parameters = 4;
public Parser<SuggestionInput> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTextOverride()
public TextInput getTextOverride()
Optional. If the customer edited the suggestion before using it, include
the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
Returns |
Type |
Description |
TextInput |
The textOverride.
|
getTextOverrideOrBuilder()
public TextInputOrBuilder getTextOverrideOrBuilder()
Optional. If the customer edited the suggestion before using it, include
the revised text here.
.google.cloud.dialogflow.v2beta1.TextInput text_override = 2;
public boolean hasIntentInput()
The intent to be triggered on V3 agent.
.google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6;
Returns |
Type |
Description |
boolean |
Whether the intentInput field is set.
|
public boolean hasParameters()
In Dialogflow assist for v3, the user can submit a form by sending
a SuggestionInput. The
form is uniquely determined by the
answer_record
field, which identifies a v3
QueryResult containing the
current page. The form parameters
are specified via the
parameters
field.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter's entity type is a composite entity then use
map, otherwise, depending on the parameter value type, it could be one of
string, number, boolean, null, list or map.
- MapValue value: If parameter's entity type is a composite entity then use
map from composite entity property names to property values, otherwise,
use parameter value.
.google.protobuf.Struct parameters = 4;
Returns |
Type |
Description |
boolean |
Whether the parameters field is set.
|
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;
Returns |
Type |
Description |
boolean |
Whether the textOverride field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SuggestionInput.Builder newBuilderForType()
protected SuggestionInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public SuggestionInput.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides