Package com.google.apps.card.v1
Class SelectionInput.SelectionItem.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SelectionInput.SelectionItem.Builder>
com.google.protobuf.GeneratedMessage.Builder<SelectionInput.SelectionItem.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,SelectionInput.SelectionItem.Builder>
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
,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 type
google.apps.card.v1.SelectionInput.SelectionItem
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
For multiselect menus, a text description or label that's displayed below the item's `text` field.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Whether the item is selected by default.For multiselect menus, the URL for the icon displayed next to the item's `text` field.The text that identifies or describes the item to users.The value associated with this item.clone()
For multiselect menus, a text description or label that's displayed below the item's `text` field.com.google.protobuf.ByteString
For multiselect menus, a text description or label that's displayed below the item's `text` field.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
Whether the item is selected by default.For multiselect menus, the URL for the icon displayed next to the item's `text` field.com.google.protobuf.ByteString
For multiselect menus, the URL for the icon displayed next to the item's `text` field.getText()
The text that identifies or describes the item to users.com.google.protobuf.ByteString
The text that identifies or describes the item to users.getValue()
The value associated with this item.com.google.protobuf.ByteString
The value associated with this item.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setBottomText
(String value) For multiselect menus, a text description or label that's displayed below the item's `text` field.setBottomTextBytes
(com.google.protobuf.ByteString value) For multiselect menus, a text description or label that's displayed below the item's `text` field.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSelected
(boolean value) Whether the item is selected by default.setStartIconUri
(String value) For multiselect menus, the URL for the icon displayed next to the item's `text` field.setStartIconUriBytes
(com.google.protobuf.ByteString value) For multiselect menus, the URL for the icon displayed next to the item's `text` field.The text that identifies or describes the item to users.setTextBytes
(com.google.protobuf.ByteString value) The text that identifies or describes the item to users.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) The value associated with this item.setValueBytes
(com.google.protobuf.ByteString value) The value associated with this item.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getParentForChildren
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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<SelectionInput.SelectionItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
setField
public SelectionInput.SelectionItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
clearField
public SelectionInput.SelectionItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
clearOneof
public SelectionInput.SelectionItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
setRepeatedField
public SelectionInput.SelectionItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
addRepeatedField
public SelectionInput.SelectionItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SelectionInput.SelectionItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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 IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SelectionInput.SelectionItem.Builder>
- Throws:
IOException
-
getText
The text that identifies or describes the item to users.
string text = 1;
- Specified by:
getText
in 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:
getTextBytes
in interfaceSelectionInput.SelectionItemOrBuilder
- Returns:
- The bytes for text.
-
setText
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
The text that identifies or describes the item to users.
string text = 1;
- Returns:
- This builder for chaining.
-
setTextBytes
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
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:
getValue
in 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:
getValueBytes
in interfaceSelectionInput.SelectionItemOrBuilder
- Returns:
- The bytes for value.
-
setValue
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
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
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:
getSelected
in interfaceSelectionInput.SelectionItemOrBuilder
- Returns:
- The selected.
-
setSelected
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
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
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:
getStartIconUri
in 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:
getStartIconUriBytes
in interfaceSelectionInput.SelectionItemOrBuilder
- Returns:
- The bytes for startIconUri.
-
setStartIconUri
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
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
For multiselect menus, a text description or label that's displayed below the item's `text` field.
string bottom_text = 5;
- Specified by:
getBottomText
in 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:
getBottomTextBytes
in interfaceSelectionInput.SelectionItemOrBuilder
- Returns:
- The bytes for bottomText.
-
setBottomText
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
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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-
mergeUnknownFields
public final SelectionInput.SelectionItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.SelectionItem.Builder>
-