Package com.google.apps.card.v1
Class Grid.GridItem.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Grid.GridItem.Builder>
com.google.apps.card.v1.Grid.GridItem.Builder
- All Implemented Interfaces:
Grid.GridItemOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Grid.GridItem
public static final class Grid.GridItem.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Grid.GridItem.Builder>
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](https://developers.google.com/workspace/extend):Protobuf type
google.apps.card.v1.Grid.GridItem-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearId()A user-specified identifier for this grid item.The image that displays in the grid item.The layout to use for the grid item.The grid item's subtitle.The grid item's title.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()A user-specified identifier for this grid item.com.google.protobuf.ByteStringA 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 image that displays in the grid item.The layout to use for the grid item.intThe layout to use for the grid item.The grid item's subtitle.com.google.protobuf.ByteStringThe grid item's subtitle.getTitle()The grid item's title.com.google.protobuf.ByteStringThe grid item's title.booleanhasImage()The image that displays in the grid item.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Grid.GridItem other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeImage(ImageComponent value) The image that displays in the grid item.A user-specified identifier for this grid item.setIdBytes(com.google.protobuf.ByteString value) A user-specified identifier for this grid item.setImage(ImageComponent value) The image that displays in the grid item.setImage(ImageComponent.Builder builderForValue) The image that displays in the grid item.The layout to use for the grid item.setLayoutValue(int value) The layout to use for the grid item.setSubtitle(String value) The grid item's subtitle.setSubtitleBytes(com.google.protobuf.ByteString value) The grid item's subtitle.The grid item's title.setTitleBytes(com.google.protobuf.ByteString value) The grid item's title.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Grid.GridItem.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Grid.GridItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Grid.GridItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Grid.GridItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Grid.GridItem.Builder>
-
mergeFrom
public Grid.GridItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Grid.GridItem.Builder>- Throws:
IOException
-
getId
A user-specified identifier for this grid item. This identifier is returned in the parent grid's `onClick` callback parameters.
string id = 1;- Specified by:
getIdin interfaceGrid.GridItemOrBuilder- Returns:
- The id.
-
getIdBytes
public 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;- Specified by:
getIdBytesin interfaceGrid.GridItemOrBuilder- Returns:
- The bytes for id.
-
setId
A user-specified identifier for this grid item. This identifier is returned in the parent grid's `onClick` callback parameters.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
A user-specified identifier for this grid item. This identifier is returned in the parent grid's `onClick` callback parameters.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
A user-specified identifier for this grid item. This identifier is returned in the parent grid's `onClick` callback parameters.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasImage
public boolean hasImage()The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;- Specified by:
hasImagein interfaceGrid.GridItemOrBuilder- Returns:
- Whether the image field is set.
-
getImage
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;- Specified by:
getImagein interfaceGrid.GridItemOrBuilder- Returns:
- The image.
-
setImage
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2; -
setImage
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2; -
mergeImage
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2; -
clearImage
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2; -
getImageBuilder
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2; -
getImageOrBuilder
The image that displays in the grid item.
.google.apps.card.v1.ImageComponent image = 2;- Specified by:
getImageOrBuilderin interfaceGrid.GridItemOrBuilder
-
getTitle
The grid item's title.
string title = 3;- Specified by:
getTitlein interfaceGrid.GridItemOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()The grid item's title.
string title = 3;- Specified by:
getTitleBytesin interfaceGrid.GridItemOrBuilder- Returns:
- The bytes for title.
-
setTitle
The grid item's title.
string title = 3;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
The grid item's title.
string title = 3;- Returns:
- This builder for chaining.
-
setTitleBytes
The grid item's title.
string title = 3;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getSubtitle
The grid item's subtitle.
string subtitle = 4;- Specified by:
getSubtitlein interfaceGrid.GridItemOrBuilder- Returns:
- The subtitle.
-
getSubtitleBytes
public com.google.protobuf.ByteString getSubtitleBytes()The grid item's subtitle.
string subtitle = 4;- Specified by:
getSubtitleBytesin interfaceGrid.GridItemOrBuilder- Returns:
- The bytes for subtitle.
-
setSubtitle
The grid item's subtitle.
string subtitle = 4;- Parameters:
value- The subtitle to set.- Returns:
- This builder for chaining.
-
clearSubtitle
The grid item's subtitle.
string subtitle = 4;- Returns:
- This builder for chaining.
-
setSubtitleBytes
The grid item's subtitle.
string subtitle = 4;- Parameters:
value- The bytes for subtitle to set.- Returns:
- This builder for chaining.
-
getLayoutValue
public int getLayoutValue()The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;- Specified by:
getLayoutValuein interfaceGrid.GridItemOrBuilder- Returns:
- The enum numeric value on the wire for layout.
-
setLayoutValue
The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;- Parameters:
value- The enum numeric value on the wire for layout to set.- Returns:
- This builder for chaining.
-
getLayout
The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;- Specified by:
getLayoutin interfaceGrid.GridItemOrBuilder- Returns:
- The layout.
-
setLayout
The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;- Parameters:
value- The layout to set.- Returns:
- This builder for chaining.
-
clearLayout
The layout to use for the grid item.
.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;- Returns:
- This builder for chaining.
-