Class SmartReplyAnswer.Builder (4.53.0)

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

Represents a smart reply answer.

Protobuf type google.cloud.dialogflow.v2.SmartReplyAnswer

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SmartReplyAnswer.Builder
Overrides

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
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
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.

clearField(Descriptors.FieldDescriptor field)

public SmartReplyAnswer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SmartReplyAnswer.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SmartReplyAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SmartReplyAnswer.Builder
Overrides

clearReply()

public SmartReplyAnswer.Builder clearReply()

The content of the reply.

string reply = 1;

Returns
Type Description
SmartReplyAnswer.Builder

This builder for chaining.

clone()

public SmartReplyAnswer.Builder clone()
Returns
Type Description
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
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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SmartReplyAnswer.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SmartReplyAnswer.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The 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 ByteString

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

The confidence to set.

Returns
Type Description
SmartReplyAnswer.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SmartReplyAnswer.Builder
Overrides

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

public SmartReplyAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SmartReplyAnswer.Builder
Overrides

setReply(String value)

public SmartReplyAnswer.Builder setReply(String value)

The content of the reply.

string reply = 1;

Parameter
Name Description
value String

The 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 ByteString

The bytes for reply to set.

Returns
Type Description
SmartReplyAnswer.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SmartReplyAnswer.Builder
Overrides