Class ImageComponent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ImageComponent.Builder>
com.google.protobuf.GeneratedMessage.Builder<ImageComponent.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,ImageComponent.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
com.google.apps.card.v1.ImageComponent.Builder
All Implemented Interfaces:
ImageComponentOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImageComponent

public static final class ImageComponent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder> implements ImageComponentOrBuilder
 Represents an image.

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

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
    • clear

      public ImageComponent.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.GeneratedMessageV3.Builder<ImageComponent.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<ImageComponent.Builder>
    • getDefaultInstanceForType

      public ImageComponent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public ImageComponent.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
    • setField

      public ImageComponent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
    • clearField

      public ImageComponent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
    • clearOneof

      public ImageComponent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
    • setRepeatedField

      public ImageComponent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
    • addRepeatedField

      public ImageComponent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
    • mergeFrom

      public ImageComponent.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<ImageComponent.Builder>
    • mergeFrom

      public ImageComponent.Builder mergeFrom(ImageComponent other)
    • isInitialized

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

      public ImageComponent.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<ImageComponent.Builder>
      Throws:
      IOException
    • getImageUri

      public String getImageUri()
       The image URL.
       
      string image_uri = 1;
      Specified by:
      getImageUri in interface ImageComponentOrBuilder
      Returns:
      The imageUri.
    • getImageUriBytes

      public com.google.protobuf.ByteString getImageUriBytes()
       The image URL.
       
      string image_uri = 1;
      Specified by:
      getImageUriBytes in interface ImageComponentOrBuilder
      Returns:
      The bytes for imageUri.
    • setImageUri

      public ImageComponent.Builder setImageUri(String value)
       The image URL.
       
      string image_uri = 1;
      Parameters:
      value - The imageUri to set.
      Returns:
      This builder for chaining.
    • clearImageUri

      public ImageComponent.Builder clearImageUri()
       The image URL.
       
      string image_uri = 1;
      Returns:
      This builder for chaining.
    • setImageUriBytes

      public ImageComponent.Builder setImageUriBytes(com.google.protobuf.ByteString value)
       The image URL.
       
      string image_uri = 1;
      Parameters:
      value - The bytes for imageUri to set.
      Returns:
      This builder for chaining.
    • getAltText

      public String getAltText()
       The accessibility label for the image.
       
      string alt_text = 2;
      Specified by:
      getAltText in interface ImageComponentOrBuilder
      Returns:
      The altText.
    • getAltTextBytes

      public com.google.protobuf.ByteString getAltTextBytes()
       The accessibility label for the image.
       
      string alt_text = 2;
      Specified by:
      getAltTextBytes in interface ImageComponentOrBuilder
      Returns:
      The bytes for altText.
    • setAltText

      public ImageComponent.Builder setAltText(String value)
       The accessibility label for the image.
       
      string alt_text = 2;
      Parameters:
      value - The altText to set.
      Returns:
      This builder for chaining.
    • clearAltText

      public ImageComponent.Builder clearAltText()
       The accessibility label for the image.
       
      string alt_text = 2;
      Returns:
      This builder for chaining.
    • setAltTextBytes

      public ImageComponent.Builder setAltTextBytes(com.google.protobuf.ByteString value)
       The accessibility label for the image.
       
      string alt_text = 2;
      Parameters:
      value - The bytes for altText to set.
      Returns:
      This builder for chaining.
    • hasCropStyle

      public boolean hasCropStyle()
       The crop style to apply to the image.
       
      .google.apps.card.v1.ImageCropStyle crop_style = 3;
      Specified by:
      hasCropStyle in interface ImageComponentOrBuilder
      Returns:
      Whether the cropStyle field is set.
    • getCropStyle

      public ImageCropStyle getCropStyle()
       The crop style to apply to the image.
       
      .google.apps.card.v1.ImageCropStyle crop_style = 3;
      Specified by:
      getCropStyle in interface ImageComponentOrBuilder
      Returns:
      The cropStyle.
    • setCropStyle

      public ImageComponent.Builder setCropStyle(ImageCropStyle value)
       The crop style to apply to the image.
       
      .google.apps.card.v1.ImageCropStyle crop_style = 3;
    • setCropStyle

      public ImageComponent.Builder setCropStyle(ImageCropStyle.Builder builderForValue)
       The crop style to apply to the image.
       
      .google.apps.card.v1.ImageCropStyle crop_style = 3;
    • mergeCropStyle

      public ImageComponent.Builder mergeCropStyle(ImageCropStyle value)
       The crop style to apply to the image.
       
      .google.apps.card.v1.ImageCropStyle crop_style = 3;
    • clearCropStyle

      public ImageComponent.Builder clearCropStyle()
       The crop style to apply to the image.
       
      .google.apps.card.v1.ImageCropStyle crop_style = 3;
    • getCropStyleBuilder

      public ImageCropStyle.Builder getCropStyleBuilder()
       The crop style to apply to the image.
       
      .google.apps.card.v1.ImageCropStyle crop_style = 3;
    • getCropStyleOrBuilder

      public ImageCropStyleOrBuilder getCropStyleOrBuilder()
       The crop style to apply to the image.
       
      .google.apps.card.v1.ImageCropStyle crop_style = 3;
      Specified by:
      getCropStyleOrBuilder in interface ImageComponentOrBuilder
    • hasBorderStyle

      public boolean hasBorderStyle()
       The border style to apply to the image.
       
      .google.apps.card.v1.BorderStyle border_style = 4;
      Specified by:
      hasBorderStyle in interface ImageComponentOrBuilder
      Returns:
      Whether the borderStyle field is set.
    • getBorderStyle

      public BorderStyle getBorderStyle()
       The border style to apply to the image.
       
      .google.apps.card.v1.BorderStyle border_style = 4;
      Specified by:
      getBorderStyle in interface ImageComponentOrBuilder
      Returns:
      The borderStyle.
    • setBorderStyle

      public ImageComponent.Builder setBorderStyle(BorderStyle value)
       The border style to apply to the image.
       
      .google.apps.card.v1.BorderStyle border_style = 4;
    • setBorderStyle

      public ImageComponent.Builder setBorderStyle(BorderStyle.Builder builderForValue)
       The border style to apply to the image.
       
      .google.apps.card.v1.BorderStyle border_style = 4;
    • mergeBorderStyle

      public ImageComponent.Builder mergeBorderStyle(BorderStyle value)
       The border style to apply to the image.
       
      .google.apps.card.v1.BorderStyle border_style = 4;
    • clearBorderStyle

      public ImageComponent.Builder clearBorderStyle()
       The border style to apply to the image.
       
      .google.apps.card.v1.BorderStyle border_style = 4;
    • getBorderStyleBuilder

      public BorderStyle.Builder getBorderStyleBuilder()
       The border style to apply to the image.
       
      .google.apps.card.v1.BorderStyle border_style = 4;
    • getBorderStyleOrBuilder

      public BorderStyleOrBuilder getBorderStyleOrBuilder()
       The border style to apply to the image.
       
      .google.apps.card.v1.BorderStyle border_style = 4;
      Specified by:
      getBorderStyleOrBuilder in interface ImageComponentOrBuilder
    • setUnknownFields

      public final ImageComponent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>
    • mergeUnknownFields

      public final ImageComponent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageComponent.Builder>