Class Suggestions.SuggestionItem.Builder (2.37.1)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Suggestions.SuggestionItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

build()

public Suggestions.SuggestionItem build()
Returns
TypeDescription
Suggestions.SuggestionItem

buildPartial()

public Suggestions.SuggestionItem buildPartial()
Returns
TypeDescription
Suggestions.SuggestionItem

clear()

public Suggestions.SuggestionItem.Builder clear()
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

clearContent()

public Suggestions.SuggestionItem.Builder clearContent()
Returns
TypeDescription
Suggestions.SuggestionItem.Builder

clearField(Descriptors.FieldDescriptor field)

public Suggestions.SuggestionItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Suggestions.SuggestionItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

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
TypeDescription
Suggestions.SuggestionItem.Builder

This builder for chaining.

clone()

public Suggestions.SuggestionItem.Builder clone()
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

getContentCase()

public Suggestions.SuggestionItem.ContentCase getContentCase()
Returns
TypeDescription
Suggestions.SuggestionItem.ContentCase

getDefaultInstanceForType()

public Suggestions.SuggestionItem getDefaultInstanceForType()
Returns
TypeDescription
Suggestions.SuggestionItem

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Suggestions.SuggestionItem other)

public Suggestions.SuggestionItem.Builder mergeFrom(Suggestions.SuggestionItem other)
Parameter
NameDescription
otherSuggestions.SuggestionItem
Returns
TypeDescription
Suggestions.SuggestionItem.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Suggestions.SuggestionItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Suggestions.SuggestionItem.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Suggestions.SuggestionItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Suggestions.SuggestionItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Suggestions.SuggestionItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

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
NameDescription
valueString

The text to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
Suggestions.SuggestionItem.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Suggestions.SuggestionItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides