Class UserResponseSuggestions.Builder (0.19.0)

public static final class UserResponseSuggestions.Builder extends GeneratedMessage.Builder<UserResponseSuggestions.Builder> implements UserResponseSuggestionsOrBuilder

Suggested user responses from the assistant agent.

Protobuf type google.cloud.ces.v1beta.UserResponseSuggestions

Static Methods

getDescriptor()

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

Methods

addAllSuggestions(Iterable<String> values)

public UserResponseSuggestions.Builder addAllSuggestions(Iterable<String> values)

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
values Iterable<String>

The suggestions to add.

Returns
Type Description
UserResponseSuggestions.Builder

This builder for chaining.

addSuggestions(String value)

public UserResponseSuggestions.Builder addSuggestions(String value)

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
value String

The suggestions to add.

Returns
Type Description
UserResponseSuggestions.Builder

This builder for chaining.

addSuggestionsBytes(ByteString value)

public UserResponseSuggestions.Builder addSuggestionsBytes(ByteString value)

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

The bytes of the suggestions to add.

Returns
Type Description
UserResponseSuggestions.Builder

This builder for chaining.

build()

public UserResponseSuggestions build()
Returns
Type Description
UserResponseSuggestions

buildPartial()

public UserResponseSuggestions buildPartial()
Returns
Type Description
UserResponseSuggestions

clear()

public UserResponseSuggestions.Builder clear()
Returns
Type Description
UserResponseSuggestions.Builder
Overrides

clearSuggestions()

public UserResponseSuggestions.Builder clearSuggestions()

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

This builder for chaining.

getDefaultInstanceForType()

public UserResponseSuggestions getDefaultInstanceForType()
Returns
Type Description
UserResponseSuggestions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserResponseSuggestions other)

public UserResponseSuggestions.Builder mergeFrom(UserResponseSuggestions other)
Parameter
Name Description
other UserResponseSuggestions
Returns
Type Description
UserResponseSuggestions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserResponseSuggestions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserResponseSuggestions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setSuggestions(int index, String value)

public UserResponseSuggestions.Builder setSuggestions(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The suggestions to set.

Returns
Type Description
UserResponseSuggestions.Builder

This builder for chaining.