public static final class WidgetMarkup.Image.Builder extends GeneratedMessageV3.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
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WidgetMarkup.Image.BuilderImplements
WidgetMarkup.ImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WidgetMarkup.Image.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WidgetMarkup.Image.Builder |
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. |
clearField(Descriptors.FieldDescriptor field)
public WidgetMarkup.Image.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
WidgetMarkup.Image.Builder |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public WidgetMarkup.Image.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
WidgetMarkup.Image.Builder |
clone()
public WidgetMarkup.Image.Builder clone()
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WidgetMarkup.Image.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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 |
double The aspectRatio to set. |
Returns | |
---|---|
Type | Description |
WidgetMarkup.Image.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public WidgetMarkup.Image.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WidgetMarkup.Image.Builder |
setImageUrl(String value)
public WidgetMarkup.Image.Builder setImageUrl(String value)
The URL of the image.
string image_url = 1;
Parameter | |
---|---|
Name | Description |
value |
String The 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 |
ByteString The 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 |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WidgetMarkup.Image.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
WidgetMarkup.Image.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final WidgetMarkup.Image.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WidgetMarkup.Image.Builder |