Class WidgetMarkup.Image (0.31.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.31.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  WidgetMarkup . Image   extends   GeneratedMessageV3   implements   WidgetMarkup . ImageOrBuilder  
   An image that's specified by a URL and can have an onclick action.
 Protobuf type google.chat.v1.WidgetMarkup.Image
    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   ASPECT_RATIO_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   IMAGE_URL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   ON_CLICK_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   WidgetMarkup . Image   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   WidgetMarkup . Image . Builder   newBuilder ()  
  
  
    
public   static   WidgetMarkup . Image . Builder   newBuilder ( WidgetMarkup . Image   prototype )  
  
  
  
    
public   static   WidgetMarkup . Image   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   WidgetMarkup . Image   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<WidgetMarkup . Image >  parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   double   getAspectRatio ()  
   The aspect ratio of this image (width and height). This field lets you
 reserve the right height for the image while waiting for it to load.
 It's not meant to override the built-in aspect ratio of the image.
 If unset, the server fills it by prefetching the image.
 double aspect_ratio = 3;
    
      
        Returns  
      
        Type Description  
      
        double The aspectRatio.
 
     
  
  
    
public   WidgetMarkup . Image   getDefaultInstanceForType ()  
  
  
    
public   String   getImageUrl ()  
   The URL of the image.
 string image_url = 1;
    
      
        Returns  
      
        Type Description  
      
        String The imageUrl.
 
     
  
  
    
public   ByteString   getImageUrlBytes ()  
   The URL of the image.
 string image_url = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for imageUrl.
 
     
  
  
    
public   WidgetMarkup . OnClick   getOnClick ()  
   The onclick action.
 .google.chat.v1.WidgetMarkup.OnClick on_click = 2;
    
public   WidgetMarkup . OnClickOrBuilder   getOnClickOrBuilder ()  
   The onclick action.
 .google.chat.v1.WidgetMarkup.OnClick on_click = 2;
    
public   Parser<WidgetMarkup . Image >  getParserForType ()  
  
  Overrides 
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
public   boolean   hasOnClick ()  
   The onclick action.
 .google.chat.v1.WidgetMarkup.OnClick on_click = 2;
    
      
        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 . Image . Builder   newBuilderForType ()  
  
  
    
protected   WidgetMarkup . Image . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   WidgetMarkup . Image . 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-28 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-28 UTC."],[],[]]