Class WidgetMarkup.KeyValue (0.38.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.38.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  WidgetMarkup . KeyValue   extends   GeneratedMessageV3   implements   WidgetMarkup . KeyValueOrBuilder  
   A UI element contains a key (label) and a value (content). This
 element can also contain some actions such as onclick button.
 Protobuf type google.chat.v1.WidgetMarkup.KeyValue
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   BOTTOM_LABEL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   BUTTON_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CONTENT_FIELD_NUMBER 
  
    
public   static   final   int   CONTENT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CONTENT_MULTILINE_FIELD_NUMBER 
  
    
public   static   final   int   CONTENT_MULTILINE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   ICON_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   ICON_URL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   ON_CLICK_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   TOP_LABEL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   WidgetMarkup . KeyValue   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   WidgetMarkup . KeyValue . Builder   newBuilder ()  
  
  
    
public   static   WidgetMarkup . KeyValue . Builder   newBuilder ( WidgetMarkup . KeyValue   prototype )  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   WidgetMarkup . KeyValue   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<WidgetMarkup . KeyValue >  parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   String   getBottomLabel ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The bottomLabel.
 
     
  
  
    
public   ByteString   getBottomLabelBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for bottomLabel.
 
     
  
  
    
public   WidgetMarkup . Button   getButton ()  
   A button that can be clicked to trigger an action.
 .google.chat.v1.WidgetMarkup.Button button = 7;
    
public   WidgetMarkup . ButtonOrBuilder   getButtonOrBuilder ()  
   A button that can be clicked to trigger an action.
 .google.chat.v1.WidgetMarkup.Button button = 7;
getContent() 
  
    
public   String   getContent ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The content.
 
     
  
  getContentBytes() 
  
    
public   ByteString   getContentBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for content.
 
     
  
  getContentMultiline() 
  
    
public   boolean   getContentMultiline ()  
   If the content should be multiline.
 bool content_multiline = 9;
    
      
        Returns  
      
        Type Description  
      
        boolean The contentMultiline.
 
     
  
  
    
public   WidgetMarkup . KeyValue . ControlCase   getControlCase ()  
  
  
    
public   WidgetMarkup . KeyValue   getDefaultInstanceForType ()  
  
  
    
public   WidgetMarkup . Icon   getIcon ()  
   An enum value that's replaced by the Chat API with the
 corresponding icon image.
 .google.chat.v1.WidgetMarkup.Icon icon = 1;
    
public   String   getIconUrl ()  
   The icon specified by a URL.
 string icon_url = 2;
    
      
        Returns  
      
        Type Description  
      
        String The iconUrl.
 
     
  
  
    
public   ByteString   getIconUrlBytes ()  
   The icon specified by a URL.
 string icon_url = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for iconUrl.
 
     
  
  
    
public   int   getIconValue ()  
   An enum value that's replaced by the Chat API with the
 corresponding icon image.
 .google.chat.v1.WidgetMarkup.Icon icon = 1;
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for icon.
 
     
  
  
    
public   WidgetMarkup . KeyValue . IconsCase   getIconsCase ()  
  
  
    
public   WidgetMarkup . OnClick   getOnClick ()  
   The onclick action. Only the top label, bottom label, and content
 region are clickable.
 .google.chat.v1.WidgetMarkup.OnClick on_click = 6;
    
public   WidgetMarkup . OnClickOrBuilder   getOnClickOrBuilder ()  
   The onclick action. Only the top label, bottom label, and content
 region are clickable.
 .google.chat.v1.WidgetMarkup.OnClick on_click = 6;
    
public   Parser<WidgetMarkup . KeyValue >  getParserForType ()  
  
  Overrides 
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
public   String   getTopLabel ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The topLabel.
 
     
  
  
    
public   ByteString   getTopLabelBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for topLabel.
 
     
  
  
    
public   boolean   hasButton ()  
   A button that can be clicked to trigger an action.
 .google.chat.v1.WidgetMarkup.Button button = 7;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the button field is set.
 
     
  
   An enum value that's replaced by the Chat API with the
 corresponding icon image.
 .google.chat.v1.WidgetMarkup.Icon icon = 1;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the icon field is set.
 
     
  
  
    
public   boolean   hasIconUrl ()  
   The icon specified by a URL.
 string icon_url = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the iconUrl field is set.
 
     
  
  
    
public   boolean   hasOnClick ()  
   The onclick action. Only the top label, bottom label, and content
 region are clickable.
 .google.chat.v1.WidgetMarkup.OnClick on_click = 6;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the onClick field is set.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   WidgetMarkup . KeyValue . Builder   newBuilderForType ()  
  
  
    
protected   WidgetMarkup . KeyValue . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   WidgetMarkup . KeyValue . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]