Class ImageComponent.Builder (2.37.1)

public static final class ImageComponent.Builder extends GeneratedMessageV3.Builder<ImageComponent.Builder> implements ImageComponentOrBuilder

Represents an image.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.ImageComponent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageComponent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageComponent.Builder
Overrides

build()

public ImageComponent build()
Returns
TypeDescription
ImageComponent

buildPartial()

public ImageComponent buildPartial()
Returns
TypeDescription
ImageComponent

clear()

public ImageComponent.Builder clear()
Returns
TypeDescription
ImageComponent.Builder
Overrides

clearAltText()

public ImageComponent.Builder clearAltText()

The accessibility label for the image.

string alt_text = 2;

Returns
TypeDescription
ImageComponent.Builder

This builder for chaining.

clearBorderStyle()

public ImageComponent.Builder clearBorderStyle()

The border style to apply to the image.

.google.apps.card.v1.BorderStyle border_style = 4;

Returns
TypeDescription
ImageComponent.Builder

clearCropStyle()

public ImageComponent.Builder clearCropStyle()

The crop style to apply to the image.

.google.apps.card.v1.ImageCropStyle crop_style = 3;

Returns
TypeDescription
ImageComponent.Builder

clearField(Descriptors.FieldDescriptor field)

public ImageComponent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImageComponent.Builder
Overrides

clearImageUri()

public ImageComponent.Builder clearImageUri()

The image URL.

string image_uri = 1;

Returns
TypeDescription
ImageComponent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageComponent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImageComponent.Builder
Overrides

clone()

public ImageComponent.Builder clone()
Returns
TypeDescription
ImageComponent.Builder
Overrides

getAltText()

public String getAltText()

The accessibility label for the image.

string alt_text = 2;

Returns
TypeDescription
String

The altText.

getAltTextBytes()

public ByteString getAltTextBytes()

The accessibility label for the image.

string alt_text = 2;

Returns
TypeDescription
ByteString

The bytes for altText.

getBorderStyle()

public BorderStyle getBorderStyle()

The border style to apply to the image.

.google.apps.card.v1.BorderStyle border_style = 4;

Returns
TypeDescription
BorderStyle

The borderStyle.

getBorderStyleBuilder()

public BorderStyle.Builder getBorderStyleBuilder()

The border style to apply to the image.

.google.apps.card.v1.BorderStyle border_style = 4;

Returns
TypeDescription
BorderStyle.Builder

getBorderStyleOrBuilder()

public BorderStyleOrBuilder getBorderStyleOrBuilder()

The border style to apply to the image.

.google.apps.card.v1.BorderStyle border_style = 4;

Returns
TypeDescription
BorderStyleOrBuilder

getCropStyle()

public ImageCropStyle getCropStyle()

The crop style to apply to the image.

.google.apps.card.v1.ImageCropStyle crop_style = 3;

Returns
TypeDescription
ImageCropStyle

The cropStyle.

getCropStyleBuilder()

public ImageCropStyle.Builder getCropStyleBuilder()

The crop style to apply to the image.

.google.apps.card.v1.ImageCropStyle crop_style = 3;

Returns
TypeDescription
ImageCropStyle.Builder

getCropStyleOrBuilder()

public ImageCropStyleOrBuilder getCropStyleOrBuilder()

The crop style to apply to the image.

.google.apps.card.v1.ImageCropStyle crop_style = 3;

Returns
TypeDescription
ImageCropStyleOrBuilder

getDefaultInstanceForType()

public ImageComponent getDefaultInstanceForType()
Returns
TypeDescription
ImageComponent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImageUri()

public String getImageUri()

The image URL.

string image_uri = 1;

Returns
TypeDescription
String

The imageUri.

getImageUriBytes()

public ByteString getImageUriBytes()

The image URL.

string image_uri = 1;

Returns
TypeDescription
ByteString

The bytes for imageUri.

hasBorderStyle()

public boolean hasBorderStyle()

The border style to apply to the image.

.google.apps.card.v1.BorderStyle border_style = 4;

Returns
TypeDescription
boolean

Whether the borderStyle field is set.

hasCropStyle()

public boolean hasCropStyle()

The crop style to apply to the image.

.google.apps.card.v1.ImageCropStyle crop_style = 3;

Returns
TypeDescription
boolean

Whether the cropStyle field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBorderStyle(BorderStyle value)

public ImageComponent.Builder mergeBorderStyle(BorderStyle value)

The border style to apply to the image.

.google.apps.card.v1.BorderStyle border_style = 4;

Parameter
NameDescription
valueBorderStyle
Returns
TypeDescription
ImageComponent.Builder

mergeCropStyle(ImageCropStyle value)

public ImageComponent.Builder mergeCropStyle(ImageCropStyle value)

The crop style to apply to the image.

.google.apps.card.v1.ImageCropStyle crop_style = 3;

Parameter
NameDescription
valueImageCropStyle
Returns
TypeDescription
ImageComponent.Builder

mergeFrom(ImageComponent other)

public ImageComponent.Builder mergeFrom(ImageComponent other)
Parameter
NameDescription
otherImageComponent
Returns
TypeDescription
ImageComponent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageComponent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageComponent.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImageComponent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImageComponent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageComponent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageComponent.Builder
Overrides

setAltText(String value)

public ImageComponent.Builder setAltText(String value)

The accessibility label for the image.

string alt_text = 2;

Parameter
NameDescription
valueString

The altText to set.

Returns
TypeDescription
ImageComponent.Builder

This builder for chaining.

setAltTextBytes(ByteString value)

public ImageComponent.Builder setAltTextBytes(ByteString value)

The accessibility label for the image.

string alt_text = 2;

Parameter
NameDescription
valueByteString

The bytes for altText to set.

Returns
TypeDescription
ImageComponent.Builder

This builder for chaining.

setBorderStyle(BorderStyle value)

public ImageComponent.Builder setBorderStyle(BorderStyle value)

The border style to apply to the image.

.google.apps.card.v1.BorderStyle border_style = 4;

Parameter
NameDescription
valueBorderStyle
Returns
TypeDescription
ImageComponent.Builder

setBorderStyle(BorderStyle.Builder builderForValue)

public ImageComponent.Builder setBorderStyle(BorderStyle.Builder builderForValue)

The border style to apply to the image.

.google.apps.card.v1.BorderStyle border_style = 4;

Parameter
NameDescription
builderForValueBorderStyle.Builder
Returns
TypeDescription
ImageComponent.Builder

setCropStyle(ImageCropStyle value)

public ImageComponent.Builder setCropStyle(ImageCropStyle value)

The crop style to apply to the image.

.google.apps.card.v1.ImageCropStyle crop_style = 3;

Parameter
NameDescription
valueImageCropStyle
Returns
TypeDescription
ImageComponent.Builder

setCropStyle(ImageCropStyle.Builder builderForValue)

public ImageComponent.Builder setCropStyle(ImageCropStyle.Builder builderForValue)

The crop style to apply to the image.

.google.apps.card.v1.ImageCropStyle crop_style = 3;

Parameter
NameDescription
builderForValueImageCropStyle.Builder
Returns
TypeDescription
ImageComponent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImageComponent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageComponent.Builder
Overrides

setImageUri(String value)

public ImageComponent.Builder setImageUri(String value)

The image URL.

string image_uri = 1;

Parameter
NameDescription
valueString

The imageUri to set.

Returns
TypeDescription
ImageComponent.Builder

This builder for chaining.

setImageUriBytes(ByteString value)

public ImageComponent.Builder setImageUriBytes(ByteString value)

The image URL.

string image_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for imageUri to set.

Returns
TypeDescription
ImageComponent.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImageComponent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImageComponent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageComponent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageComponent.Builder
Overrides