- 2.61.3 (latest)
- 2.61.2
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class ImageComponent.Builder extends GeneratedMessageV3.Builder<ImageComponent.Builder> implements ImageComponentOrBuilderRepresents an image.
Google Workspace Add-ons and Chat apps:
Protobuf type google.apps.card.v1.ImageComponent
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ImageComponent.BuilderImplements
ImageComponentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageComponent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
build()
public ImageComponent build()| Returns | |
|---|---|
| Type | Description |
ImageComponent |
|
buildPartial()
public ImageComponent buildPartial()| Returns | |
|---|---|
| Type | Description |
ImageComponent |
|
clear()
public ImageComponent.Builder clear()| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
clearAltText()
public ImageComponent.Builder clearAltText()The accessibility label for the image.
string alt_text = 2;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
clearCropStyle()
public ImageComponent.Builder clearCropStyle()The crop style to apply to the image.
.google.apps.card.v1.ImageCropStyle crop_style = 3;
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public ImageComponent.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
clearImageUri()
public ImageComponent.Builder clearImageUri()The image URL.
string image_uri = 1;
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageComponent.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
clone()
public ImageComponent.Builder clone()| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
getAltText()
public String getAltText()The accessibility label for the image.
string alt_text = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The altText. |
getAltTextBytes()
public ByteString getAltTextBytes()The accessibility label for the image.
string alt_text = 2;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
BorderStyle.Builder |
|
getBorderStyleOrBuilder()
public BorderStyleOrBuilder getBorderStyleOrBuilder()The border style to apply to the image.
.google.apps.card.v1.BorderStyle border_style = 4;
| Returns | |
|---|---|
| Type | Description |
BorderStyleOrBuilder |
|
getCropStyle()
public ImageCropStyle getCropStyle()The crop style to apply to the image.
.google.apps.card.v1.ImageCropStyle crop_style = 3;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ImageCropStyle.Builder |
|
getCropStyleOrBuilder()
public ImageCropStyleOrBuilder getCropStyleOrBuilder()The crop style to apply to the image.
.google.apps.card.v1.ImageCropStyle crop_style = 3;
| Returns | |
|---|---|
| Type | Description |
ImageCropStyleOrBuilder |
|
getDefaultInstanceForType()
public ImageComponent getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ImageComponent |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getImageUri()
public String getImageUri()The image URL.
string image_uri = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The imageUri. |
getImageUriBytes()
public ByteString getImageUriBytes()The image URL.
string image_uri = 1;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
boolean |
Whether the cropStyle field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 | |
|---|---|
| Name | Description |
value |
BorderStyle |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ImageCropStyle |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
mergeFrom(ImageComponent other)
public ImageComponent.Builder mergeFrom(ImageComponent other)| Parameter | |
|---|---|
| Name | Description |
other |
ImageComponent |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImageComponent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ImageComponent.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageComponent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
setAltText(String value)
public ImageComponent.Builder setAltText(String value)The accessibility label for the image.
string alt_text = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe altText to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for altText to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
BorderStyle |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
BorderStyle.Builder |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ImageCropStyle |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
ImageCropStyle.Builder |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public ImageComponent.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
setImageUri(String value)
public ImageComponent.Builder setImageUri(String value)The image URL.
string image_uri = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe imageUri to set. |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
This builder for chaining. |
setImageUriBytes(ByteString value)
public ImageComponent.Builder setImageUriBytes(ByteString value)The image URL.
string image_uri = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for imageUri to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageComponent.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ImageComponent.Builder |
|