public
final
class
Image
extends
GeneratedMessageV3
implements
ImageOrBuilder
An image that is specified by a URL and can have an onClick
action. For an
example, see Image
.
Google Workspace Add-ons and Chat apps :
Protobuf type google.apps.card.v1.Image
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ImageImplements
ImageOrBuilderStatic Fields
ALT_TEXT_FIELD_NUMBER
public
static
final
int
ALT_TEXT_FIELD_NUMBER
IMAGE_URL_FIELD_NUMBER
public
static
final
int
IMAGE_URL_FIELD_NUMBER
ON_CLICK_FIELD_NUMBER
public
static
final
int
ON_CLICK_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Image
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Image
.
Builder
newBuilder
()
newBuilder(Image prototype)
public
static
Image
.
Builder
newBuilder
(
Image
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Image
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Image
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Image
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Image
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Image
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Image
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Image
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Image
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Image
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Image
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Image
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Image
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Image>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getAltText()
public
String
getAltText
()
The alternative text of this image that's used for accessibility.
string alt_text = 3;
getAltTextBytes()
public
ByteString
getAltTextBytes
()
The alternative text of this image that's used for accessibility.
string alt_text = 3;
getDefaultInstanceForType()
public
Image
getDefaultInstanceForType
()
getImageUrl()
public
String
getImageUrl
()
The HTTPS URL that hosts the image.
For example:
<code><code>
https://developers.google.com/chat/images/quickstart-app-avatar.png
</code></code>
string image_url = 1;
getImageUrlBytes()
public
ByteString
getImageUrlBytes
()
The HTTPS URL that hosts the image.
For example:
<code><code>
https://developers.google.com/chat/images/quickstart-app-avatar.png
</code></code>
string image_url = 1;
getOnClick()
public
OnClick
getOnClick
()
When a user clicks the image, the click triggers this action.
.google.apps.card.v1.OnClick on_click = 2;
getOnClickOrBuilder()
public
OnClickOrBuilder
getOnClickOrBuilder
()
When a user clicks the image, the click triggers this action.
.google.apps.card.v1.OnClick on_click = 2;
getParserForType()
public
Parser<Image>
getParserForType
()
getSerializedSize()
public
int
getSerializedSize
()
hasOnClick()
public
boolean
hasOnClick
()
When a user clicks the image, the click triggers this action.
.google.apps.card.v1.OnClick on_click = 2;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Image
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Image
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
Image
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)