Package com.google.apps.card.v1
Interface Grid.GridItemOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Grid.GridItem
,Grid.GridItem.Builder
- Enclosing class:
Grid
public static interface Grid.GridItemOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
A user-specified identifier for this grid item.com.google.protobuf.ByteString
A user-specified identifier for this grid item.getImage()
The image that displays in the grid item.The image that displays in the grid item.The layout to use for the grid item.int
The layout to use for the grid item.The grid item's subtitle.com.google.protobuf.ByteString
The grid item's subtitle.getTitle()
The grid item's title.com.google.protobuf.ByteString
The grid item's title.boolean
hasImage()
The image that displays in the grid item.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getId
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:
- The id.
-
getIdBytes
com.google.protobuf.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:
- The bytes for id.
-
hasImage
boolean hasImage()The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;
- Returns:
- Whether the image field is set.
-
getImage
ImageComponent getImage()The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;
- Returns:
- The image.
-
getImageOrBuilder
ImageComponentOrBuilder getImageOrBuilder()The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;
-
getTitle
String getTitle()The grid item's title.
string title = 3;
- Returns:
- The title.
-
getTitleBytes
com.google.protobuf.ByteString getTitleBytes()The grid item's title.
string title = 3;
- Returns:
- The bytes for title.
-
getSubtitle
String getSubtitle()The grid item's subtitle.
string subtitle = 4;
- Returns:
- The subtitle.
-
getSubtitleBytes
com.google.protobuf.ByteString getSubtitleBytes()The grid item's subtitle.
string subtitle = 4;
- Returns:
- The bytes for subtitle.
-
getLayoutValue
int getLayoutValue()The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;
- Returns:
- The enum numeric value on the wire for layout.
-
getLayout
Grid.GridItem.GridItemLayout getLayout()The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;
- Returns:
- The layout.
-