Class OverflowMenu.OverflowMenuItem

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.apps.card.v1.OverflowMenu.OverflowMenuItem
All Implemented Interfaces:
OverflowMenu.OverflowMenuItemOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
OverflowMenu

public static final class OverflowMenu.OverflowMenuItem extends com.google.protobuf.GeneratedMessageV3 implements OverflowMenu.OverflowMenuItemOrBuilder
 An option that users can invoke in an overflow menu.

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

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasStartIcon

      public boolean hasStartIcon()
       The icon displayed in front of the text.
       
      .google.apps.card.v1.Icon start_icon = 1;
      Specified by:
      hasStartIcon in interface OverflowMenu.OverflowMenuItemOrBuilder
      Returns:
      Whether the startIcon field is set.
    • getStartIcon

      public Icon getStartIcon()
       The icon displayed in front of the text.
       
      .google.apps.card.v1.Icon start_icon = 1;
      Specified by:
      getStartIcon in interface OverflowMenu.OverflowMenuItemOrBuilder
      Returns:
      The startIcon.
    • getStartIconOrBuilder

      public IconOrBuilder getStartIconOrBuilder()
       The icon displayed in front of the text.
       
      .google.apps.card.v1.Icon start_icon = 1;
      Specified by:
      getStartIconOrBuilder in interface OverflowMenu.OverflowMenuItemOrBuilder
    • getText

      public String getText()
       Required. The text that identifies or describes the item to users.
       
      string text = 2;
      Specified by:
      getText in interface OverflowMenu.OverflowMenuItemOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       Required. The text that identifies or describes the item to users.
       
      string text = 2;
      Specified by:
      getTextBytes in interface OverflowMenu.OverflowMenuItemOrBuilder
      Returns:
      The bytes for text.
    • hasOnClick

      public boolean hasOnClick()
       Required. The action invoked when a menu option is selected.
       This `OnClick` cannot contain an `OverflowMenu`, any specified
       `OverflowMenu` is dropped and the menu item disabled.
       
      .google.apps.card.v1.OnClick on_click = 3;
      Specified by:
      hasOnClick in interface OverflowMenu.OverflowMenuItemOrBuilder
      Returns:
      Whether the onClick field is set.
    • getOnClick

      public OnClick getOnClick()
       Required. The action invoked when a menu option is selected.
       This `OnClick` cannot contain an `OverflowMenu`, any specified
       `OverflowMenu` is dropped and the menu item disabled.
       
      .google.apps.card.v1.OnClick on_click = 3;
      Specified by:
      getOnClick in interface OverflowMenu.OverflowMenuItemOrBuilder
      Returns:
      The onClick.
    • getOnClickOrBuilder

      public OnClickOrBuilder getOnClickOrBuilder()
       Required. The action invoked when a menu option is selected.
       This `OnClick` cannot contain an `OverflowMenu`, any specified
       `OverflowMenu` is dropped and the menu item disabled.
       
      .google.apps.card.v1.OnClick on_click = 3;
      Specified by:
      getOnClickOrBuilder in interface OverflowMenu.OverflowMenuItemOrBuilder
    • getDisabled

      public boolean getDisabled()
       Whether the menu option is disabled.
       Defaults to false.
       
      bool disabled = 4;
      Specified by:
      getDisabled in interface OverflowMenu.OverflowMenuItemOrBuilder
      Returns:
      The disabled.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • 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.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • 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 OverflowMenu.OverflowMenuItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static OverflowMenu.OverflowMenuItem parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static OverflowMenu.OverflowMenuItem parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static OverflowMenu.OverflowMenuItem.Builder newBuilder()
    • newBuilder

    • toBuilder

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

      protected OverflowMenu.OverflowMenuItem.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static OverflowMenu.OverflowMenuItem getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OverflowMenu.OverflowMenuItem> parser()
    • getParserForType

      public com.google.protobuf.Parser<OverflowMenu.OverflowMenuItem> 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.GeneratedMessageV3
    • getDefaultInstanceForType

      public OverflowMenu.OverflowMenuItem getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder