public static final class SmartReplyAnswer.Builder extends GeneratedMessage.Builder<SmartReplyAnswer.Builder> implements SmartReplyAnswerOrBuilderRepresents a smart reply answer.
Protobuf type google.cloud.dialogflow.v2beta1.SmartReplyAnswer
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SmartReplyAnswer.BuilderImplements
SmartReplyAnswerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SmartReplyAnswer build()| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer |
|
buildPartial()
public SmartReplyAnswer buildPartial()| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer |
|
clear()
public SmartReplyAnswer.Builder clear()| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
|
clearAnswerRecord()
public SmartReplyAnswer.Builder clearAnswerRecord()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
This builder for chaining. |
clearConfidence()
public SmartReplyAnswer.Builder clearConfidence()Smart reply confidence. The system's confidence score that this reply is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 2;
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
This builder for chaining. |
clearReply()
public SmartReplyAnswer.Builder clearReply()The content of the reply.
string reply = 1;
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
This builder for chaining. |
getAnswerRecord()
public String getAnswerRecord()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The answerRecord. |
getAnswerRecordBytes()
public ByteString getAnswerRecordBytes()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for answerRecord. |
getConfidence()
public float getConfidence()Smart reply confidence. The system's confidence score that this reply is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 2;
| Returns | |
|---|---|
| Type | Description |
float |
The confidence. |
getDefaultInstanceForType()
public SmartReplyAnswer getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getReply()
public String getReply()The content of the reply.
string reply = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The reply. |
getReplyBytes()
public ByteString getReplyBytes()The content of the reply.
string reply = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for reply. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SmartReplyAnswer other)
public SmartReplyAnswer.Builder mergeFrom(SmartReplyAnswer other)| Parameter | |
|---|---|
| Name | Description |
other |
SmartReplyAnswer |
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SmartReplyAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SmartReplyAnswer.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
|
setAnswerRecord(String value)
public SmartReplyAnswer.Builder setAnswerRecord(String value)The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe answerRecord to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
This builder for chaining. |
setAnswerRecordBytes(ByteString value)
public SmartReplyAnswer.Builder setAnswerRecordBytes(ByteString value)The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for answerRecord to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
This builder for chaining. |
setConfidence(float value)
public SmartReplyAnswer.Builder setConfidence(float value)Smart reply confidence. The system's confidence score that this reply is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe confidence to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
This builder for chaining. |
setReply(String value)
public SmartReplyAnswer.Builder setReply(String value)The content of the reply.
string reply = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe reply to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
This builder for chaining. |
setReplyBytes(ByteString value)
public SmartReplyAnswer.Builder setReplyBytes(ByteString value)The content of the reply.
string reply = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for reply to set. |
| Returns | |
|---|---|
| Type | Description |
SmartReplyAnswer.Builder |
This builder for chaining. |