Class SelectionInput.SelectionItem

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.apps.card.v1.SelectionInput.SelectionItem
All Implemented Interfaces:
SelectionInput.SelectionItemOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
SelectionInput

public static final class SelectionInput.SelectionItem extends com.google.protobuf.GeneratedMessage implements SelectionInput.SelectionItemOrBuilder
 An item that users can select in a selection input, such as a checkbox
 or switch. Supports up to 100 items.

 [Google Workspace add-ons and Chat
 apps](https://developers.google.com/workspace/extend):
 
Protobuf type google.apps.card.v1.SelectionInput.SelectionItem
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getStartIconCase

      public SelectionInput.SelectionItem.StartIconCase getStartIconCase()
      Specified by:
      getStartIconCase in interface SelectionInput.SelectionItemOrBuilder
    • getText

      public String getText()
       The text that identifies or describes the item to users.
       
      string text = 1;
      Specified by:
      getText in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       The text that identifies or describes the item to users.
       
      string text = 1;
      Specified by:
      getTextBytes in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The bytes for text.
    • getValue

      public String getValue()
       The value associated with this item. The client should use this as a form
       input value.
      
       For details about working with form inputs, see [Receive form
       data](https://developers.google.com/workspace/chat/read-form-data).
       
      string value = 2;
      Specified by:
      getValue in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The value associated with this item. The client should use this as a form
       input value.
      
       For details about working with form inputs, see [Receive form
       data](https://developers.google.com/workspace/chat/read-form-data).
       
      string value = 2;
      Specified by:
      getValueBytes in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The bytes for value.
    • getSelected

      public boolean getSelected()
       Whether the item is selected by default. If the selection input only
       accepts one value (such as for radio buttons or a dropdown menu), only
       set this field for one item.
       
      bool selected = 3;
      Specified by:
      getSelected in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The selected.
    • hasStartIconUri

      public boolean hasStartIconUri()
      string start_icon_uri = 4;
      Specified by:
      hasStartIconUri in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      Whether the startIconUri field is set.
    • getStartIconUri

      public String getStartIconUri()
      string start_icon_uri = 4;
      Specified by:
      getStartIconUri in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The startIconUri.
    • getStartIconUriBytes

      public com.google.protobuf.ByteString getStartIconUriBytes()
      string start_icon_uri = 4;
      Specified by:
      getStartIconUriBytes in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The bytes for startIconUri.
    • getBottomText

      public String getBottomText()
       For multiselect menus, a text description or label that's
       displayed below the item's `text` field.
       
      string bottom_text = 5;
      Specified by:
      getBottomText in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The bottomText.
    • getBottomTextBytes

      public com.google.protobuf.ByteString getBottomTextBytes()
       For multiselect menus, a text description or label that's
       displayed below the item's `text` field.
       
      string bottom_text = 5;
      Specified by:
      getBottomTextBytes in interface SelectionInput.SelectionItemOrBuilder
      Returns:
      The bytes for bottomText.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SelectionInput.SelectionItem parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SelectionInput.SelectionItem parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SelectionInput.SelectionItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SelectionInput.SelectionItem.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SelectionInput.SelectionItem.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SelectionInput.SelectionItem.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SelectionInput.SelectionItem getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SelectionInput.SelectionItem> parser()
    • getParserForType

      public com.google.protobuf.Parser<SelectionInput.SelectionItem> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SelectionInput.SelectionItem getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder