Class WidgetMarkup.Image (0.5.0)

public static final class WidgetMarkup.Image extends GeneratedMessageV3 implements WidgetMarkup.ImageOrBuilder

An image that's specified by a URL and can have an onclick action.

Protobuf type google.chat.v1.WidgetMarkup.Image

Static Fields

ASPECT_RATIO_FIELD_NUMBER

public static final int ASPECT_RATIO_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_URL_FIELD_NUMBER

public static final int IMAGE_URL_FIELD_NUMBER
Field Value
TypeDescription
int

ON_CLICK_FIELD_NUMBER

public static final int ON_CLICK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WidgetMarkup.Image getDefaultInstance()
Returns
TypeDescription
WidgetMarkup.Image

getDescriptor()

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

newBuilder()

public static WidgetMarkup.Image.Builder newBuilder()
Returns
TypeDescription
WidgetMarkup.Image.Builder

newBuilder(WidgetMarkup.Image prototype)

public static WidgetMarkup.Image.Builder newBuilder(WidgetMarkup.Image prototype)
Parameter
NameDescription
prototypeWidgetMarkup.Image
Returns
TypeDescription
WidgetMarkup.Image.Builder

parseDelimitedFrom(InputStream input)

public static WidgetMarkup.Image parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Image parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static WidgetMarkup.Image parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Image parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetMarkup.Image parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Image parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetMarkup.Image parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Image parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static WidgetMarkup.Image parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Image parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static WidgetMarkup.Image parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.Image parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.Image
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<WidgetMarkup.Image> parser()
Returns
TypeDescription
Parser<Image>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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
TypeDescription
double

The aspectRatio.

getDefaultInstanceForType()

public WidgetMarkup.Image getDefaultInstanceForType()
Returns
TypeDescription
WidgetMarkup.Image

getImageUrl()

public String getImageUrl()

The URL of the image.

string image_url = 1;

Returns
TypeDescription
String

The imageUrl.

getImageUrlBytes()

public ByteString getImageUrlBytes()

The URL of the image.

string image_url = 1;

Returns
TypeDescription
ByteString

The bytes for imageUrl.

getOnClick()

public WidgetMarkup.OnClick getOnClick()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
TypeDescription
WidgetMarkup.OnClick

The onClick.

getOnClickOrBuilder()

public WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
TypeDescription
WidgetMarkup.OnClickOrBuilder

getParserForType()

public Parser<WidgetMarkup.Image> getParserForType()
Returns
TypeDescription
Parser<Image>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasOnClick()

public boolean hasOnClick()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
TypeDescription
boolean

Whether the onClick field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public WidgetMarkup.Image.Builder newBuilderForType()
Returns
TypeDescription
WidgetMarkup.Image.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WidgetMarkup.Image.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
WidgetMarkup.Image.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public WidgetMarkup.Image.Builder toBuilder()
Returns
TypeDescription
WidgetMarkup.Image.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException