public static final class UserResponseSuggestions.Builder extends GeneratedMessage.Builder<UserResponseSuggestions.Builder> implements UserResponseSuggestionsOrBuilderSuggested user responses from the assistant agent.
Protobuf type google.cloud.ces.v1beta.UserResponseSuggestions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UserResponseSuggestions.BuilderImplements
UserResponseSuggestionsOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UserResponseSuggestions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UserResponseSuggestions.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe suggestions to set. |
| Returns | |
|---|---|
| Type | Description |
UserResponseSuggestions.Builder |
This builder for chaining. |