Class UserResponseSuggestions (0.19.0)

public final class UserResponseSuggestions extends GeneratedMessage implements UserResponseSuggestionsOrBuilder

Suggested user responses from the assistant agent.

Protobuf type google.cloud.ces.v1beta.UserResponseSuggestions

Static Fields

SUGGESTIONS_FIELD_NUMBER

public static final int SUGGESTIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UserResponseSuggestions getDefaultInstance()
Returns
Type Description
UserResponseSuggestions

getDescriptor()

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

newBuilder()

public static UserResponseSuggestions.Builder newBuilder()
Returns
Type Description
UserResponseSuggestions.Builder

newBuilder(UserResponseSuggestions prototype)

public static UserResponseSuggestions.Builder newBuilder(UserResponseSuggestions prototype)
Parameter
Name Description
prototype UserResponseSuggestions
Returns
Type Description
UserResponseSuggestions.Builder

parseDelimitedFrom(InputStream input)

public static UserResponseSuggestions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UserResponseSuggestions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UserResponseSuggestions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UserResponseSuggestions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UserResponseSuggestions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UserResponseSuggestions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UserResponseSuggestions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UserResponseSuggestions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UserResponseSuggestions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UserResponseSuggestions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UserResponseSuggestions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UserResponseSuggestions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserResponseSuggestions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UserResponseSuggestions> parser()
Returns
Type Description
Parser<UserResponseSuggestions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public UserResponseSuggestions getDefaultInstanceForType()
Returns
Type Description
UserResponseSuggestions

getParserForType()

public Parser<UserResponseSuggestions> getParserForType()
Returns
Type Description
Parser<UserResponseSuggestions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSuggestions(int index)

public String getSuggestions(int index)

Required. The assistant suggested user responses. These are suggestions for the user on how to interact with the assistant.

repeated string suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The suggestions at the given index.

getSuggestionsBytes(int index)

public ByteString getSuggestionsBytes(int index)

Required. The assistant suggested user responses. These are suggestions for the user on how to interact with the assistant.

repeated string suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the suggestions at the given index.

getSuggestionsCount()

public int getSuggestionsCount()

Required. The assistant suggested user responses. These are suggestions for the user on how to interact with the assistant.

repeated string suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of suggestions.

getSuggestionsList()

public ProtocolStringList getSuggestionsList()

Required. The assistant suggested user responses. These are suggestions for the user on how to interact with the assistant.

repeated string suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the suggestions.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public UserResponseSuggestions.Builder newBuilderForType()
Returns
Type Description
UserResponseSuggestions.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected UserResponseSuggestions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UserResponseSuggestions.Builder
Overrides

toBuilder()

public UserResponseSuggestions.Builder toBuilder()
Returns
Type Description
UserResponseSuggestions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException