public static final class Grid.GridItem extends GeneratedMessageV3 implements Grid.GridItemOrBuilder
Represents an item in a grid layout. Items can contain text, an image, or both text and an image.
Google Workspace Add-ons and Chat apps:
Protobuf type google.apps.card.v1.Grid.GridItem
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Grid.GridItemImplements
Grid.GridItemOrBuilderStatic Fields
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
IMAGE_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
LAYOUT_FIELD_NUMBER
public static final int LAYOUT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SUBTITLE_FIELD_NUMBER
public static final int SUBTITLE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Grid.GridItem getDefaultInstance()
Returns | |
---|---|
Type | Description |
Grid.GridItem |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static Grid.GridItem.Builder newBuilder()
Returns | |
---|---|
Type | Description |
Grid.GridItem.Builder |
newBuilder(Grid.GridItem prototype)
public static Grid.GridItem.Builder newBuilder(Grid.GridItem prototype)
Parameter | |
---|---|
Name | Description |
prototype |
Grid.GridItem |
Returns | |
---|---|
Type | Description |
Grid.GridItem.Builder |
parseDelimitedFrom(InputStream input)
public static Grid.GridItem parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Grid.GridItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static Grid.GridItem parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Grid.GridItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Grid.GridItem parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Grid.GridItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Grid.GridItem parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Grid.GridItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static Grid.GridItem parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Grid.GridItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Grid.GridItem parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Grid.GridItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Grid.GridItem |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Grid.GridItem> parser()
Returns | |
---|---|
Type | Description |
Parser<GridItem> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public Grid.GridItem getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Grid.GridItem |
getId()
public String getId()
A user-specified identifier for this grid item. This identifier is
returned in the parent grid's onClick
callback parameters.
string id = 1;
Returns | |
---|---|
Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()
A user-specified identifier for this grid item. This identifier is
returned in the parent grid's onClick
callback parameters.
string id = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for id. |
getImage()
public ImageComponent getImage()
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;
Returns | |
---|---|
Type | Description |
ImageComponent |
The image. |
getImageOrBuilder()
public ImageComponentOrBuilder getImageOrBuilder()
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;
Returns | |
---|---|
Type | Description |
ImageComponentOrBuilder |
getLayout()
public Grid.GridItem.GridItemLayout getLayout()
The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;
Returns | |
---|---|
Type | Description |
Grid.GridItem.GridItemLayout |
The layout. |
getLayoutValue()
public int getLayoutValue()
The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for layout. |
getParserForType()
public Parser<Grid.GridItem> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<GridItem> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getSubtitle()
public String getSubtitle()
The grid item's subtitle.
string subtitle = 4;
Returns | |
---|---|
Type | Description |
String |
The subtitle. |
getSubtitleBytes()
public ByteString getSubtitleBytes()
The grid item's subtitle.
string subtitle = 4;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for subtitle. |
getTitle()
public String getTitle()
The grid item's title.
string title = 3;
Returns | |
---|---|
Type | Description |
String |
The title. |
getTitleBytes()
public ByteString getTitleBytes()
The grid item's title.
string title = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for title. |
hasImage()
public boolean hasImage()
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the image field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public Grid.GridItem.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
Grid.GridItem.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Grid.GridItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
Grid.GridItem.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public Grid.GridItem.Builder toBuilder()
Returns | |
---|---|
Type | Description |
Grid.GridItem.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |