Class Chip

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.apps.card.v1.Chip
All Implemented Interfaces:
ChipOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class Chip extends com.google.protobuf.GeneratedMessageV3 implements ChipOrBuilder
 A text, icon, or text and icon chip that users can click.

 [Google Workspace add-ons and Chat
 apps](https://developers.google.com/workspace/extend):
 
Protobuf type google.apps.card.v1.Chip
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A text, icon, or text and icon chip that users can click.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The alternative text that's used for accessibility.
    com.google.protobuf.ByteString
    The alternative text that's used for accessibility.
    static Chip
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Whether the chip is in an inactive state and ignores user actions.
    boolean
    Deprecated.
    google.apps.card.v1.Chip.enabled is deprecated.
    The icon image.
    The icon image.
    The text displayed inside the chip.
    com.google.protobuf.ByteString
    The text displayed inside the chip.
    Optional.
    Optional.
    com.google.protobuf.Parser<Chip>
     
    int
     
    int
     
    boolean
    The icon image.
    boolean
    Optional.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Chip prototype)
     
     
    protected Chip.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Chip
     
    static Chip
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Chip
    parseFrom(byte[] data)
     
    static Chip
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Chip
    parseFrom(com.google.protobuf.ByteString data)
     
    static Chip
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Chip
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Chip
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Chip
     
    static Chip
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Chip
     
    static Chip
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Chip>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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
    • hasIcon

      public boolean hasIcon()
       The icon image. If both `icon` and `text` are set, then the icon appears
       before the text.
       
      .google.apps.card.v1.Icon icon = 1;
      Specified by:
      hasIcon in interface ChipOrBuilder
      Returns:
      Whether the icon field is set.
    • getIcon

      public Icon getIcon()
       The icon image. If both `icon` and `text` are set, then the icon appears
       before the text.
       
      .google.apps.card.v1.Icon icon = 1;
      Specified by:
      getIcon in interface ChipOrBuilder
      Returns:
      The icon.
    • getIconOrBuilder

      public IconOrBuilder getIconOrBuilder()
       The icon image. If both `icon` and `text` are set, then the icon appears
       before the text.
       
      .google.apps.card.v1.Icon icon = 1;
      Specified by:
      getIconOrBuilder in interface ChipOrBuilder
    • getLabel

      public String getLabel()
       The text displayed inside the chip.
       
      string label = 2;
      Specified by:
      getLabel in interface ChipOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       The text displayed inside the chip.
       
      string label = 2;
      Specified by:
      getLabelBytes in interface ChipOrBuilder
      Returns:
      The bytes for label.
    • hasOnClick

      public boolean hasOnClick()
       Optional. The action to perform when a user clicks the chip, such as
       opening a hyperlink or running a custom function.
       
      .google.apps.card.v1.OnClick on_click = 3;
      Specified by:
      hasOnClick in interface ChipOrBuilder
      Returns:
      Whether the onClick field is set.
    • getOnClick

      public OnClick getOnClick()
       Optional. The action to perform when a user clicks the chip, such as
       opening a hyperlink or running a custom function.
       
      .google.apps.card.v1.OnClick on_click = 3;
      Specified by:
      getOnClick in interface ChipOrBuilder
      Returns:
      The onClick.
    • getOnClickOrBuilder

      public OnClickOrBuilder getOnClickOrBuilder()
       Optional. The action to perform when a user clicks the chip, such as
       opening a hyperlink or running a custom function.
       
      .google.apps.card.v1.OnClick on_click = 3;
      Specified by:
      getOnClickOrBuilder in interface ChipOrBuilder
    • getEnabled

      @Deprecated public boolean getEnabled()
      Deprecated.
      google.apps.card.v1.Chip.enabled is deprecated. See google/apps/card/v1/card.proto;l=2425
       Whether the chip is in an active state and responds to user actions.
       Defaults to `true`.
       Deprecated. Use `disabled` instead.
       
      bool enabled = 4 [deprecated = true];
      Specified by:
      getEnabled in interface ChipOrBuilder
      Returns:
      The enabled.
    • getDisabled

      public boolean getDisabled()
       Whether the chip is in an inactive state and ignores user actions.
       Defaults to `false`.
       
      bool disabled = 6;
      Specified by:
      getDisabled in interface ChipOrBuilder
      Returns:
      The disabled.
    • getAltText

      public String getAltText()
       The alternative text that's used for accessibility.
      
       Set descriptive text that lets users know what the chip does. For
       example, if a chip opens a hyperlink, write: "Opens a new
       browser tab and navigates to the Google Chat developer documentation at
       https://developers.google.com/workspace/chat".
       
      string alt_text = 5;
      Specified by:
      getAltText in interface ChipOrBuilder
      Returns:
      The altText.
    • getAltTextBytes

      public com.google.protobuf.ByteString getAltTextBytes()
       The alternative text that's used for accessibility.
      
       Set descriptive text that lets users know what the chip does. For
       example, if a chip opens a hyperlink, write: "Opens a new
       browser tab and navigates to the Google Chat developer documentation at
       https://developers.google.com/workspace/chat".
       
      string alt_text = 5;
      Specified by:
      getAltTextBytes in interface ChipOrBuilder
      Returns:
      The bytes for altText.
    • 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 Chip parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Chip parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Chip parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Chip.Builder newBuilder()
    • newBuilder

      public static Chip.Builder newBuilder(Chip prototype)
    • toBuilder

      public Chip.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Chip getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Chip> 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 Chip getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder