Class Suggestions.SuggestionItem (2.42.0)

public static final class Suggestions.SuggestionItem extends GeneratedMessageV3 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 Fields

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Suggestions.SuggestionItem getDefaultInstance()
Returns
Type Description
Suggestions.SuggestionItem

getDescriptor()

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

newBuilder()

public static Suggestions.SuggestionItem.Builder newBuilder()
Returns
Type Description
Suggestions.SuggestionItem.Builder

newBuilder(Suggestions.SuggestionItem prototype)

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

parseDelimitedFrom(InputStream input)

public static Suggestions.SuggestionItem parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Suggestions.SuggestionItem
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Suggestions.SuggestionItem parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Suggestions.SuggestionItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Suggestions.SuggestionItem parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Suggestions.SuggestionItem
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Suggestions.SuggestionItem parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Suggestions.SuggestionItem
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Suggestions.SuggestionItem parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Suggestions.SuggestionItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Suggestions.SuggestionItem> parser()
Returns
Type Description
Parser<SuggestionItem>

Methods

equals(Object obj)

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

getContentCase()

public Suggestions.SuggestionItem.ContentCase getContentCase()
Returns
Type Description
Suggestions.SuggestionItem.ContentCase

getDefaultInstanceForType()

public Suggestions.SuggestionItem getDefaultInstanceForType()
Returns
Type Description
Suggestions.SuggestionItem

getParserForType()

public Parser<Suggestions.SuggestionItem> getParserForType()
Returns
Type Description
Parser<SuggestionItem>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Suggestions.SuggestionItem.Builder newBuilderForType()
Returns
Type Description
Suggestions.SuggestionItem.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Suggestions.SuggestionItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Suggestions.SuggestionItem.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Suggestions.SuggestionItem.Builder toBuilder()
Returns
Type Description
Suggestions.SuggestionItem.Builder

writeTo(CodedOutputStream output)

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