Class Image.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Image.Builder>
com.google.apps.card.v1.Image.Builder
All Implemented Interfaces:
ImageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Image

public static final class Image.Builder extends com.google.protobuf.GeneratedMessage.Builder<Image.Builder> implements ImageOrBuilder
 An image that is specified by a URL and can have an `onClick` action. For an
 example, see [Add an
 image](https://developers.google.com/workspace/chat/add-text-image-card-dialog#add_an_image).

 [Google Workspace add-ons and Chat
 apps](https://developers.google.com/workspace/extend):
 
Protobuf type google.apps.card.v1.Image
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The alternative text of this image that's used for accessibility.
    The HTTPS URL that hosts the image.
    When a user clicks the image, the click triggers this action.
    The alternative text of this image that's used for accessibility.
    com.google.protobuf.ByteString
    The alternative text of this image that's used for accessibility.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The HTTPS URL that hosts the image.
    com.google.protobuf.ByteString
    The HTTPS URL that hosts the image.
    When a user clicks the image, the click triggers this action.
    When a user clicks the image, the click triggers this action.
    When a user clicks the image, the click triggers this action.
    boolean
    When a user clicks the image, the click triggers this action.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    When a user clicks the image, the click triggers this action.
    The alternative text of this image that's used for accessibility.
    setAltTextBytes(com.google.protobuf.ByteString value)
    The alternative text of this image that's used for accessibility.
    The HTTPS URL that hosts the image.
    setImageUrlBytes(com.google.protobuf.ByteString value)
    The HTTPS URL that hosts the image.
    When a user clicks the image, the click triggers this action.
    setOnClick(OnClick.Builder builderForValue)
    When a user clicks the image, the click triggers this action.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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.Builder<Image.Builder>
    • clear

      public Image.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Image.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Image.Builder>
    • getDefaultInstanceForType

      public Image getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Image build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Image buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Image.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Image.Builder>
    • mergeFrom

      public Image.Builder mergeFrom(Image other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Image.Builder>
    • mergeFrom

      public Image.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Image.Builder>
      Throws:
      IOException
    • getImageUrl

      public String getImageUrl()
       The HTTPS URL that hosts the image.
      
       For example:
      
       ```
       https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
       ```
       
      string image_url = 1;
      Specified by:
      getImageUrl in interface ImageOrBuilder
      Returns:
      The imageUrl.
    • getImageUrlBytes

      public com.google.protobuf.ByteString getImageUrlBytes()
       The HTTPS URL that hosts the image.
      
       For example:
      
       ```
       https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
       ```
       
      string image_url = 1;
      Specified by:
      getImageUrlBytes in interface ImageOrBuilder
      Returns:
      The bytes for imageUrl.
    • setImageUrl

      public Image.Builder setImageUrl(String value)
       The HTTPS URL that hosts the image.
      
       For example:
      
       ```
       https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
       ```
       
      string image_url = 1;
      Parameters:
      value - The imageUrl to set.
      Returns:
      This builder for chaining.
    • clearImageUrl

      public Image.Builder clearImageUrl()
       The HTTPS URL that hosts the image.
      
       For example:
      
       ```
       https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
       ```
       
      string image_url = 1;
      Returns:
      This builder for chaining.
    • setImageUrlBytes

      public Image.Builder setImageUrlBytes(com.google.protobuf.ByteString value)
       The HTTPS URL that hosts the image.
      
       For example:
      
       ```
       https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
       ```
       
      string image_url = 1;
      Parameters:
      value - The bytes for imageUrl to set.
      Returns:
      This builder for chaining.
    • hasOnClick

      public boolean hasOnClick()
       When a user clicks the image, the click triggers this action.
       
      .google.apps.card.v1.OnClick on_click = 2;
      Specified by:
      hasOnClick in interface ImageOrBuilder
      Returns:
      Whether the onClick field is set.
    • getOnClick

      public OnClick getOnClick()
       When a user clicks the image, the click triggers this action.
       
      .google.apps.card.v1.OnClick on_click = 2;
      Specified by:
      getOnClick in interface ImageOrBuilder
      Returns:
      The onClick.
    • setOnClick

      public Image.Builder setOnClick(OnClick value)
       When a user clicks the image, the click triggers this action.
       
      .google.apps.card.v1.OnClick on_click = 2;
    • setOnClick

      public Image.Builder setOnClick(OnClick.Builder builderForValue)
       When a user clicks the image, the click triggers this action.
       
      .google.apps.card.v1.OnClick on_click = 2;
    • mergeOnClick

      public Image.Builder mergeOnClick(OnClick value)
       When a user clicks the image, the click triggers this action.
       
      .google.apps.card.v1.OnClick on_click = 2;
    • clearOnClick

      public Image.Builder clearOnClick()
       When a user clicks the image, the click triggers this action.
       
      .google.apps.card.v1.OnClick on_click = 2;
    • getOnClickBuilder

      public OnClick.Builder getOnClickBuilder()
       When a user clicks the image, the click triggers this action.
       
      .google.apps.card.v1.OnClick on_click = 2;
    • getOnClickOrBuilder

      public OnClickOrBuilder getOnClickOrBuilder()
       When a user clicks the image, the click triggers this action.
       
      .google.apps.card.v1.OnClick on_click = 2;
      Specified by:
      getOnClickOrBuilder in interface ImageOrBuilder
    • getAltText

      public String getAltText()
       The alternative text of this image that's used for accessibility.
       
      string alt_text = 3;
      Specified by:
      getAltText in interface ImageOrBuilder
      Returns:
      The altText.
    • getAltTextBytes

      public com.google.protobuf.ByteString getAltTextBytes()
       The alternative text of this image that's used for accessibility.
       
      string alt_text = 3;
      Specified by:
      getAltTextBytes in interface ImageOrBuilder
      Returns:
      The bytes for altText.
    • setAltText

      public Image.Builder setAltText(String value)
       The alternative text of this image that's used for accessibility.
       
      string alt_text = 3;
      Parameters:
      value - The altText to set.
      Returns:
      This builder for chaining.
    • clearAltText

      public Image.Builder clearAltText()
       The alternative text of this image that's used for accessibility.
       
      string alt_text = 3;
      Returns:
      This builder for chaining.
    • setAltTextBytes

      public Image.Builder setAltTextBytes(com.google.protobuf.ByteString value)
       The alternative text of this image that's used for accessibility.
       
      string alt_text = 3;
      Parameters:
      value - The bytes for altText to set.
      Returns:
      This builder for chaining.