Package com.google.apps.card.v1
Class SelectionInput.SelectionItem.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
- com.google.apps.card.v1.SelectionInput.SelectionItem.Builder
-
- All Implemented Interfaces:
SelectionInput.SelectionItemOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- SelectionInput.SelectionItem
public static final class SelectionInput.SelectionItem.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder> implements SelectionInput.SelectionItemOrBuilder
An item that users can select in a selection input, such as a checkbox or switch. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
Protobuf typegoogle.apps.card.v1.SelectionInput.SelectionItem
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectionInput.SelectionItem.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SelectionInput.SelectionItembuild()SelectionInput.SelectionItembuildPartial()SelectionInput.SelectionItem.Builderclear()SelectionInput.SelectionItem.BuilderclearBottomText()For multiselect menus, a text description or label that's displayed below the item's `text` field.SelectionInput.SelectionItem.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SelectionInput.SelectionItem.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SelectionInput.SelectionItem.BuilderclearSelected()Whether the item is selected by default.SelectionInput.SelectionItem.BuilderclearStartIconUri()For multiselect menus, the URL for the icon displayed next to the item's `text` field.SelectionInput.SelectionItem.BuilderclearText()The text that identifies or describes the item to users.SelectionInput.SelectionItem.BuilderclearValue()The value associated with this item.SelectionInput.SelectionItem.Builderclone()java.lang.StringgetBottomText()For multiselect menus, a text description or label that's displayed below the item's `text` field.com.google.protobuf.ByteStringgetBottomTextBytes()For multiselect menus, a text description or label that's displayed below the item's `text` field.SelectionInput.SelectionItemgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetSelected()Whether the item is selected by default.java.lang.StringgetStartIconUri()For multiselect menus, the URL for the icon displayed next to the item's `text` field.com.google.protobuf.ByteStringgetStartIconUriBytes()For multiselect menus, the URL for the icon displayed next to the item's `text` field.java.lang.StringgetText()The text that identifies or describes the item to users.com.google.protobuf.ByteStringgetTextBytes()The text that identifies or describes the item to users.java.lang.StringgetValue()The value associated with this item.com.google.protobuf.ByteStringgetValueBytes()The value associated with this item.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SelectionInput.SelectionItem.BuildermergeFrom(SelectionInput.SelectionItem other)SelectionInput.SelectionItem.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SelectionInput.SelectionItem.BuildermergeFrom(com.google.protobuf.Message other)SelectionInput.SelectionItem.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SelectionInput.SelectionItem.BuildersetBottomText(java.lang.String value)For multiselect menus, a text description or label that's displayed below the item's `text` field.SelectionInput.SelectionItem.BuildersetBottomTextBytes(com.google.protobuf.ByteString value)For multiselect menus, a text description or label that's displayed below the item's `text` field.SelectionInput.SelectionItem.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SelectionInput.SelectionItem.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)SelectionInput.SelectionItem.BuildersetSelected(boolean value)Whether the item is selected by default.SelectionInput.SelectionItem.BuildersetStartIconUri(java.lang.String value)For multiselect menus, the URL for the icon displayed next to the item's `text` field.SelectionInput.SelectionItem.BuildersetStartIconUriBytes(com.google.protobuf.ByteString value)For multiselect menus, the URL for the icon displayed next to the item's `text` field.SelectionInput.SelectionItem.BuildersetText(java.lang.String value)The text that identifies or describes the item to users.SelectionInput.SelectionItem.BuildersetTextBytes(com.google.protobuf.ByteString value)The text that identifies or describes the item to users.SelectionInput.SelectionItem.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SelectionInput.SelectionItem.BuildersetValue(java.lang.String value)The value associated with this item.SelectionInput.SelectionItem.BuildersetValueBytes(com.google.protobuf.ByteString value)The value associated with this item.-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
clear
public SelectionInput.SelectionItem.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.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<SelectionInput.SelectionItem.Builder>
-
getDefaultInstanceForType
public SelectionInput.SelectionItem getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SelectionInput.SelectionItem build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SelectionInput.SelectionItem buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SelectionInput.SelectionItem.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
setField
public SelectionInput.SelectionItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
clearField
public SelectionInput.SelectionItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
clearOneof
public SelectionInput.SelectionItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
setRepeatedField
public SelectionInput.SelectionItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
addRepeatedField
public SelectionInput.SelectionItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
mergeFrom
public SelectionInput.SelectionItem.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SelectionInput.SelectionItem.Builder>
-
mergeFrom
public SelectionInput.SelectionItem.Builder mergeFrom(SelectionInput.SelectionItem other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,SelectionInput.SelectionItem.Builder>
-
mergeFrom
public SelectionInput.SelectionItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SelectionInput.SelectionItem.Builder>- Throws:
java.io.IOException
-
getText
public java.lang.String getText()
The text that identifies or describes the item to users.
string text = 1;- Specified by:
getTextin interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()
The text that identifies or describes the item to users.
string text = 1;- Specified by:
getTextBytesin interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The bytes for text.
-
setText
public SelectionInput.SelectionItem.Builder setText(java.lang.String value)
The text that identifies or describes the item to users.
string text = 1;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
public SelectionInput.SelectionItem.Builder clearText()
The text that identifies or describes the item to users.
string text = 1;- Returns:
- This builder for chaining.
-
setTextBytes
public SelectionInput.SelectionItem.Builder setTextBytes(com.google.protobuf.ByteString value)
The text that identifies or describes the item to users.
string text = 1;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getValue
public java.lang.String getValue()
The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 2;- Specified by:
getValuein interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()
The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 2;- Specified by:
getValueBytesin interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The bytes for value.
-
setValue
public SelectionInput.SelectionItem.Builder setValue(java.lang.String value)
The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 2;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public SelectionInput.SelectionItem.Builder clearValue()
The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 2;- Returns:
- This builder for chaining.
-
setValueBytes
public SelectionInput.SelectionItem.Builder setValueBytes(com.google.protobuf.ByteString value)
The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 2;- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
getSelected
public boolean getSelected()
Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.
bool selected = 3;- Specified by:
getSelectedin interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The selected.
-
setSelected
public SelectionInput.SelectionItem.Builder setSelected(boolean value)
Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.
bool selected = 3;- Parameters:
value- The selected to set.- Returns:
- This builder for chaining.
-
clearSelected
public SelectionInput.SelectionItem.Builder clearSelected()
Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.
bool selected = 3;- Returns:
- This builder for chaining.
-
getStartIconUri
public java.lang.String getStartIconUri()
For multiselect menus, the URL for the icon displayed next to the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` URL. For example, `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`.
string start_icon_uri = 4;- Specified by:
getStartIconUriin interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The startIconUri.
-
getStartIconUriBytes
public com.google.protobuf.ByteString getStartIconUriBytes()
For multiselect menus, the URL for the icon displayed next to the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` URL. For example, `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`.
string start_icon_uri = 4;- Specified by:
getStartIconUriBytesin interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The bytes for startIconUri.
-
setStartIconUri
public SelectionInput.SelectionItem.Builder setStartIconUri(java.lang.String value)
For multiselect menus, the URL for the icon displayed next to the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` URL. For example, `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`.
string start_icon_uri = 4;- Parameters:
value- The startIconUri to set.- Returns:
- This builder for chaining.
-
clearStartIconUri
public SelectionInput.SelectionItem.Builder clearStartIconUri()
For multiselect menus, the URL for the icon displayed next to the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` URL. For example, `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`.
string start_icon_uri = 4;- Returns:
- This builder for chaining.
-
setStartIconUriBytes
public SelectionInput.SelectionItem.Builder setStartIconUriBytes(com.google.protobuf.ByteString value)
For multiselect menus, the URL for the icon displayed next to the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` URL. For example, `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`.
string start_icon_uri = 4;- Parameters:
value- The bytes for startIconUri to set.- Returns:
- This builder for chaining.
-
getBottomText
public java.lang.String getBottomText()
For multiselect menus, a text description or label that's displayed below the item's `text` field.
string bottom_text = 5;- Specified by:
getBottomTextin interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The bottomText.
-
getBottomTextBytes
public com.google.protobuf.ByteString getBottomTextBytes()
For multiselect menus, a text description or label that's displayed below the item's `text` field.
string bottom_text = 5;- Specified by:
getBottomTextBytesin interfaceSelectionInput.SelectionItemOrBuilder- Returns:
- The bytes for bottomText.
-
setBottomText
public SelectionInput.SelectionItem.Builder setBottomText(java.lang.String value)
For multiselect menus, a text description or label that's displayed below the item's `text` field.
string bottom_text = 5;- Parameters:
value- The bottomText to set.- Returns:
- This builder for chaining.
-
clearBottomText
public SelectionInput.SelectionItem.Builder clearBottomText()
For multiselect menus, a text description or label that's displayed below the item's `text` field.
string bottom_text = 5;- Returns:
- This builder for chaining.
-
setBottomTextBytes
public SelectionInput.SelectionItem.Builder setBottomTextBytes(com.google.protobuf.ByteString value)
For multiselect menus, a text description or label that's displayed below the item's `text` field.
string bottom_text = 5;- Parameters:
value- The bytes for bottomText to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SelectionInput.SelectionItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
mergeUnknownFields
public final SelectionInput.SelectionItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
-