Class SuggestSmartRepliesResponse (4.47.0)

public final class SuggestSmartRepliesResponse extends GeneratedMessageV3 implements SuggestSmartRepliesResponseOrBuilder

The response message for Participants.SuggestSmartReplies.

Protobuf type google.cloud.dialogflow.v2.SuggestSmartRepliesResponse

Static 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

Static Methods

getDefaultInstance()

public static SuggestSmartRepliesResponse getDefaultInstance()
Returns
TypeDescription
SuggestSmartRepliesResponse

getDescriptor()

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

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

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>

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.

getDefaultInstanceForType()

public SuggestSmartRepliesResponse getDefaultInstanceForType()
Returns
TypeDescription
SuggestSmartRepliesResponse

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 [(.google.api.resource_reference) = { ... }

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 [(.google.api.resource_reference) = { ... }

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.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

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

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

toBuilder()

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

writeTo(CodedOutputStream output)

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