public static final class WidgetMarkup.Image.Builder extends GeneratedMessage.Builder<WidgetMarkup.Image.Builder> implements WidgetMarkup.ImageOrBuilder An image that's specified by a URL and can have an onclick action.
Protobuf type google.chat.v1.WidgetMarkup.Image
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WidgetMarkup.Image.BuilderImplements
WidgetMarkup.ImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public WidgetMarkup.Image build()| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image |
|
buildPartial()
public WidgetMarkup.Image buildPartial()| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image |
|
clear()
public WidgetMarkup.Image.Builder clear()| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
|
clearAspectRatio()
public WidgetMarkup.Image.Builder clearAspectRatio()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 |
WidgetMarkup.Image.Builder |
This builder for chaining. |
clearImageUrl()
public WidgetMarkup.Image.Builder clearImageUrl()The URL of the image.
string image_url = 1;
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
This builder for chaining. |
clearOnClick()
public WidgetMarkup.Image.Builder clearOnClick() The onclick action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
|
getAspectRatio()
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. |
getDefaultInstanceForType()
public WidgetMarkup.Image getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getImageUrl()
public String getImageUrl()The URL of the image.
string image_url = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The imageUrl. |
getImageUrlBytes()
public ByteString getImageUrlBytes()The URL of the image.
string image_url = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for imageUrl. |
getOnClick()
public WidgetMarkup.OnClick getOnClick() The onclick action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.OnClick |
The onClick. |
getOnClickBuilder()
public WidgetMarkup.OnClick.Builder getOnClickBuilder() The onclick action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.OnClick.Builder |
|
getOnClickOrBuilder()
public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder() The onclick action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.OnClickOrBuilder |
|
hasOnClick()
public boolean hasOnClick() The onclick action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the onClick field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(WidgetMarkup.Image other)
public WidgetMarkup.Image.Builder mergeFrom(WidgetMarkup.Image other)| Parameter | |
|---|---|
| Name | Description |
other |
WidgetMarkup.Image |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WidgetMarkup.Image.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WidgetMarkup.Image.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
|
mergeOnClick(WidgetMarkup.OnClick value)
public WidgetMarkup.Image.Builder mergeOnClick(WidgetMarkup.OnClick value) The onclick action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
WidgetMarkup.OnClick |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
|
setAspectRatio(double value)
public WidgetMarkup.Image.Builder setAspectRatio(double value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe aspectRatio to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
This builder for chaining. |
setImageUrl(String value)
public WidgetMarkup.Image.Builder setImageUrl(String value)The URL of the image.
string image_url = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe imageUrl to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
This builder for chaining. |
setImageUrlBytes(ByteString value)
public WidgetMarkup.Image.Builder setImageUrlBytes(ByteString value)The URL of the image.
string image_url = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for imageUrl to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
This builder for chaining. |
setOnClick(WidgetMarkup.OnClick value)
public WidgetMarkup.Image.Builder setOnClick(WidgetMarkup.OnClick value) The onclick action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
WidgetMarkup.OnClick |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
|
setOnClick(WidgetMarkup.OnClick.Builder builderForValue)
public WidgetMarkup.Image.Builder setOnClick(WidgetMarkup.OnClick.Builder builderForValue) The onclick action.
.google.chat.v1.WidgetMarkup.OnClick on_click = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
WidgetMarkup.OnClick.Builder |
| Returns | |
|---|---|
| Type | Description |
WidgetMarkup.Image.Builder |
|