public static final class Suggestions.SuggestionItem.Builder extends GeneratedMessageV3.Builder<Suggestions.SuggestionItem.Builder> implements Suggestions.SuggestionItemOrBuilder
One suggested value that users can enter in a text input field.
Google Workspace Add-ons and Chat apps:
Protobuf type google.apps.card.v1.Suggestions.SuggestionItem
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Suggestions.SuggestionItem.BuilderImplements
Suggestions.SuggestionItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Suggestions.SuggestionItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
build()
public Suggestions.SuggestionItem build()
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem |
buildPartial()
public Suggestions.SuggestionItem buildPartial()
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem |
clear()
public Suggestions.SuggestionItem.Builder clear()
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
clearContent()
public Suggestions.SuggestionItem.Builder clearContent()
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
clearField(Descriptors.FieldDescriptor field)
public Suggestions.SuggestionItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Suggestions.SuggestionItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
clearText()
public Suggestions.SuggestionItem.Builder clearText()
The value of a suggested input to a text input field. This is equivalent to what users enter themselves.
string text = 1;
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
This builder for chaining. |
clone()
public Suggestions.SuggestionItem.Builder clone()
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
getContentCase()
public Suggestions.SuggestionItem.ContentCase getContentCase()
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.ContentCase |
getDefaultInstanceForType()
public Suggestions.SuggestionItem getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getText()
public String getText()
The value of a suggested input to a text input field. This is equivalent to what users enter themselves.
string text = 1;
Returns | |
---|---|
Type | Description |
String |
The text. |
getTextBytes()
public ByteString getTextBytes()
The value of a suggested input to a text input field. This is equivalent to what users enter themselves.
string text = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for text. |
hasText()
public boolean hasText()
The value of a suggested input to a text input field. This is equivalent to what users enter themselves.
string text = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the text field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Suggestions.SuggestionItem other)
public Suggestions.SuggestionItem.Builder mergeFrom(Suggestions.SuggestionItem other)
Parameter | |
---|---|
Name | Description |
other |
Suggestions.SuggestionItem |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Suggestions.SuggestionItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Suggestions.SuggestionItem.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Suggestions.SuggestionItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Suggestions.SuggestionItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Suggestions.SuggestionItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
setText(String value)
public Suggestions.SuggestionItem.Builder setText(String value)
The value of a suggested input to a text input field. This is equivalent to what users enter themselves.
string text = 1;
Parameter | |
---|---|
Name | Description |
value |
String The text to set. |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public Suggestions.SuggestionItem.Builder setTextBytes(ByteString value)
The value of a suggested input to a text input field. This is equivalent to what users enter themselves.
string text = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for text to set. |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Suggestions.SuggestionItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Suggestions.SuggestionItem.Builder |