Class SmartReplyAnswer.Builder (4.7.0)

public static final class SmartReplyAnswer.Builder extends GeneratedMessageV3.Builder<SmartReplyAnswer.Builder> implements SmartReplyAnswerOrBuilder

Represents a smart reply answer.

Protobuf type google.cloud.dialogflow.v2beta1.SmartReplyAnswer

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

build()

public SmartReplyAnswer build()
Returns
TypeDescription
SmartReplyAnswer

buildPartial()

public SmartReplyAnswer buildPartial()
Returns
TypeDescription
SmartReplyAnswer

clear()

public SmartReplyAnswer.Builder clear()
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

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
TypeDescription
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
TypeDescription
SmartReplyAnswer.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SmartReplyAnswer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SmartReplyAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

clearReply()

public SmartReplyAnswer.Builder clearReply()

The content of the reply.

string reply = 1;

Returns
TypeDescription
SmartReplyAnswer.Builder

This builder for chaining.

clone()

public SmartReplyAnswer.Builder clone()
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public SmartReplyAnswer getDefaultInstanceForType()
Returns
TypeDescription
SmartReplyAnswer

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReply()

public String getReply()

The content of the reply.

string reply = 1;

Returns
TypeDescription
String

The reply.

getReplyBytes()

public ByteString getReplyBytes()

The content of the reply.

string reply = 1;

Returns
TypeDescription
ByteString

The bytes for reply.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SmartReplyAnswer other)

public SmartReplyAnswer.Builder mergeFrom(SmartReplyAnswer other)
Parameter
NameDescription
otherSmartReplyAnswer
Returns
TypeDescription
SmartReplyAnswer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SmartReplyAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SmartReplyAnswer.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

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
NameDescription
valueString

The answerRecord to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for answerRecord to set.

Returns
TypeDescription
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
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
SmartReplyAnswer.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SmartReplyAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides

setReply(String value)

public SmartReplyAnswer.Builder setReply(String value)

The content of the reply.

string reply = 1;

Parameter
NameDescription
valueString

The reply to set.

Returns
TypeDescription
SmartReplyAnswer.Builder

This builder for chaining.

setReplyBytes(ByteString value)

public SmartReplyAnswer.Builder setReplyBytes(ByteString value)

The content of the reply.

string reply = 1;

Parameter
NameDescription
valueByteString

The bytes for reply to set.

Returns
TypeDescription
SmartReplyAnswer.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SmartReplyAnswer.Builder
Overrides