public static final class SuggestionInput.Builder extends GeneratedMessageV3.Builder<SuggestionInput.Builder> implements SuggestionInputOrBuilder
Represents the selection of a suggestion.
Protobuf type google.cloud.dialogflow.v2.SuggestionInput
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public SuggestionInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SuggestionInput build()
public SuggestionInput buildPartial()
public SuggestionInput.Builder clear()
Overrides
public SuggestionInput.Builder clearAnswerRecord()
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 [(.google.api.field_behavior) = REQUIRED];
public SuggestionInput.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public SuggestionInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public SuggestionInput.Builder clone()
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 [(.google.api.field_behavior) = REQUIRED];
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 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for answerRecord.
|
public SuggestionInput getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SuggestionInput.Builder mergeFrom(SuggestionInput other)
public SuggestionInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public SuggestionInput.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final SuggestionInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public SuggestionInput.Builder setAnswerRecord(String value)
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 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The answerRecord to set.
|
public SuggestionInput.Builder setAnswerRecordBytes(ByteString value)
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 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for answerRecord to set.
|
public SuggestionInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SuggestionInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final SuggestionInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides