Class Suggestions.SuggestionItem (0.1.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static Suggestions.SuggestionItem getDefaultInstance()
Returns
TypeDescription
Suggestions.SuggestionItem

getDescriptor()

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

newBuilder()

public static Suggestions.SuggestionItem.Builder newBuilder()
Returns
TypeDescription
Suggestions.SuggestionItem.Builder

newBuilder(Suggestions.SuggestionItem prototype)

public static Suggestions.SuggestionItem.Builder newBuilder(Suggestions.SuggestionItem prototype)
Parameter
NameDescription
prototypeSuggestions.SuggestionItem
Returns
TypeDescription
Suggestions.SuggestionItem.Builder

parseDelimitedFrom(InputStream input)

public static Suggestions.SuggestionItem parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Suggestions.SuggestionItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Suggestions.SuggestionItem parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Suggestions.SuggestionItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Suggestions.SuggestionItem parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Suggestions.SuggestionItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Suggestions.SuggestionItem parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Suggestions.SuggestionItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Suggestions.SuggestionItem parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Suggestions.SuggestionItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Suggestions.SuggestionItem parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Suggestions.SuggestionItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Suggestions.SuggestionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContentCase()

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

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Suggestions.SuggestionItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Suggestions.SuggestionItem.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException