Class SuggestSmartRepliesResponse (4.3.1)

public final class SuggestSmartRepliesResponse extends GeneratedMessageV3 implements SuggestSmartRepliesResponseOrBuilder

The response message for Participants.SuggestSmartReplies.

Protobuf type google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse

Fields

CONTEXT_SIZE_FIELD_NUMBER

public static final int CONTEXT_SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

LATEST_MESSAGE_FIELD_NUMBER

public static final int LATEST_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SMART_REPLY_ANSWERS_FIELD_NUMBER

public static final int SMART_REPLY_ANSWERS_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContextSize()

public int getContextSize()

Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size field in the request if there aren't that many messages in the conversation.

int32 context_size = 3;

Returns
TypeDescription
int

The contextSize.

getDefaultInstance()

public static SuggestSmartRepliesResponse getDefaultInstance()
Returns
TypeDescription
SuggestSmartRepliesResponse

getDefaultInstanceForType()

public SuggestSmartRepliesResponse getDefaultInstanceForType()
Returns
TypeDescription
SuggestSmartRepliesResponse

getDescriptor()

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

getLatestMessage()

public String getLatestMessage()

The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2;

Returns
TypeDescription
String

The latestMessage.

getLatestMessageBytes()

public ByteString getLatestMessageBytes()

The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2;

Returns
TypeDescription
ByteString

The bytes for latestMessage.

getParserForType()

public Parser<SuggestSmartRepliesResponse> getParserForType()
Returns
TypeDescription
Parser<SuggestSmartRepliesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSmartReplyAnswers(int index)

public SmartReplyAnswer getSmartReplyAnswers(int index)

Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.

repeated .google.cloud.dialogflow.v2beta1.SmartReplyAnswer smart_reply_answers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SmartReplyAnswer

getSmartReplyAnswersCount()

public int getSmartReplyAnswersCount()

Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.

repeated .google.cloud.dialogflow.v2beta1.SmartReplyAnswer smart_reply_answers = 1;

Returns
TypeDescription
int

getSmartReplyAnswersList()

public List<SmartReplyAnswer> getSmartReplyAnswersList()

Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.

repeated .google.cloud.dialogflow.v2beta1.SmartReplyAnswer smart_reply_answers = 1;

Returns
TypeDescription
List<SmartReplyAnswer>

getSmartReplyAnswersOrBuilder(int index)

public SmartReplyAnswerOrBuilder getSmartReplyAnswersOrBuilder(int index)

Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.

repeated .google.cloud.dialogflow.v2beta1.SmartReplyAnswer smart_reply_answers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SmartReplyAnswerOrBuilder

getSmartReplyAnswersOrBuilderList()

public List<? extends SmartReplyAnswerOrBuilder> getSmartReplyAnswersOrBuilderList()

Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.

repeated .google.cloud.dialogflow.v2beta1.SmartReplyAnswer smart_reply_answers = 1;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.SmartReplyAnswerOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static SuggestSmartRepliesResponse.Builder newBuilder()
Returns
TypeDescription
SuggestSmartRepliesResponse.Builder

newBuilder(SuggestSmartRepliesResponse prototype)

public static SuggestSmartRepliesResponse.Builder newBuilder(SuggestSmartRepliesResponse prototype)
Parameter
NameDescription
prototypeSuggestSmartRepliesResponse
Returns
TypeDescription
SuggestSmartRepliesResponse.Builder

newBuilderForType()

public SuggestSmartRepliesResponse.Builder newBuilderForType()
Returns
TypeDescription
SuggestSmartRepliesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SuggestSmartRepliesResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SuggestSmartRepliesResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static SuggestSmartRepliesResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SuggestSmartRepliesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SuggestSmartRepliesResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SuggestSmartRepliesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SuggestSmartRepliesResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SuggestSmartRepliesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SuggestSmartRepliesResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SuggestSmartRepliesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SuggestSmartRepliesResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SuggestSmartRepliesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SuggestSmartRepliesResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SuggestSmartRepliesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestSmartRepliesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SuggestSmartRepliesResponse> parser()
Returns
TypeDescription
Parser<SuggestSmartRepliesResponse>

toBuilder()

public SuggestSmartRepliesResponse.Builder toBuilder()
Returns
TypeDescription
SuggestSmartRepliesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException