Package com.google.apps.card.v1
Class DecoratedText.SwitchControl.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
com.google.apps.card.v1.DecoratedText.SwitchControl.Builder
- All Implemented Interfaces:
DecoratedText.SwitchControlOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DecoratedText.SwitchControl
public static final class DecoratedText.SwitchControl.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
implements DecoratedText.SwitchControlOrBuilder
Either a toggle-style switch or a checkbox inside a `decoratedText` widget. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend): Only supported in the `decoratedText` widget.Protobuf type
google.apps.card.v1.DecoratedText.SwitchControl-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()How the switch appears in the user interface.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The name by which the switch widget is identified in a form input event.The action to perform when the switch state is changed, such as what function to run.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) When `true`, the switch is selected.The value entered by a user, returned as part of a form input event.clone()How the switch appears in the user interface.intHow the switch appears in the user interface.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The name by which the switch widget is identified in a form input event.com.google.protobuf.ByteStringThe name by which the switch widget is identified in a form input event.The action to perform when the switch state is changed, such as what function to run.The action to perform when the switch state is changed, such as what function to run.The action to perform when the switch state is changed, such as what function to run.booleanWhen `true`, the switch is selected.getValue()The value entered by a user, returned as part of a form input event.com.google.protobuf.ByteStringThe value entered by a user, returned as part of a form input event.booleanThe action to perform when the switch state is changed, such as what function to run.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOnChangeAction(Action value) The action to perform when the switch state is changed, such as what function to run.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) How the switch appears in the user interface.setControlTypeValue(int value) How the switch appears in the user interface.The name by which the switch widget is identified in a form input event.setNameBytes(com.google.protobuf.ByteString value) The name by which the switch widget is identified in a form input event.setOnChangeAction(Action value) The action to perform when the switch state is changed, such as what function to run.setOnChangeAction(Action.Builder builderForValue) The action to perform when the switch state is changed, such as what function to run.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSelected(boolean value) When `true`, the switch is selected.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The value entered by a user, returned as part of a form input event.setValueBytes(com.google.protobuf.ByteString value) The value entered by a user, returned as part of a form input event.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.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<DecoratedText.SwitchControl.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.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
setField
public DecoratedText.SwitchControl.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
clearField
public DecoratedText.SwitchControl.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
clearOneof
public DecoratedText.SwitchControl.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
setRepeatedField
public DecoratedText.SwitchControl.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
addRepeatedField
public DecoratedText.SwitchControl.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DecoratedText.SwitchControl.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
mergeFrom
public DecoratedText.SwitchControl.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<DecoratedText.SwitchControl.Builder>- Throws:
IOException
-
getName
The name by which the switch widget is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Specified by:
getNamein interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name by which the switch widget is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Specified by:
getNameBytesin interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- The bytes for name.
-
setName
The name by which the switch widget is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name by which the switch widget is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name by which the switch widget is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getValue
The value entered by a user, returned as part of a form input event. 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 interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()The value entered by a user, returned as part of a form input event. 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 interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- The bytes for value.
-
setValue
The value entered by a user, returned as part of a form input event. 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 entered by a user, returned as part of a form input event. 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 entered by a user, returned as part of a form input event. 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()When `true`, the switch is selected.
bool selected = 3;- Specified by:
getSelectedin interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- The selected.
-
setSelected
When `true`, the switch is selected.
bool selected = 3;- Parameters:
value- The selected to set.- Returns:
- This builder for chaining.
-
clearSelected
When `true`, the switch is selected.
bool selected = 3;- Returns:
- This builder for chaining.
-
hasOnChangeAction
public boolean hasOnChangeAction()The action to perform when the switch state is changed, such as what function to run.
.google.apps.card.v1.Action on_change_action = 4;- Specified by:
hasOnChangeActionin interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- Whether the onChangeAction field is set.
-
getOnChangeAction
The action to perform when the switch state is changed, such as what function to run.
.google.apps.card.v1.Action on_change_action = 4;- Specified by:
getOnChangeActionin interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- The onChangeAction.
-
setOnChangeAction
The action to perform when the switch state is changed, such as what function to run.
.google.apps.card.v1.Action on_change_action = 4; -
setOnChangeAction
The action to perform when the switch state is changed, such as what function to run.
.google.apps.card.v1.Action on_change_action = 4; -
mergeOnChangeAction
The action to perform when the switch state is changed, such as what function to run.
.google.apps.card.v1.Action on_change_action = 4; -
clearOnChangeAction
The action to perform when the switch state is changed, such as what function to run.
.google.apps.card.v1.Action on_change_action = 4; -
getOnChangeActionBuilder
The action to perform when the switch state is changed, such as what function to run.
.google.apps.card.v1.Action on_change_action = 4; -
getOnChangeActionOrBuilder
The action to perform when the switch state is changed, such as what function to run.
.google.apps.card.v1.Action on_change_action = 4;- Specified by:
getOnChangeActionOrBuilderin interfaceDecoratedText.SwitchControlOrBuilder
-
getControlTypeValue
public int getControlTypeValue()How the switch appears in the user interface. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;- Specified by:
getControlTypeValuein interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- The enum numeric value on the wire for controlType.
-
setControlTypeValue
How the switch appears in the user interface. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;- Parameters:
value- The enum numeric value on the wire for controlType to set.- Returns:
- This builder for chaining.
-
getControlType
How the switch appears in the user interface. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;- Specified by:
getControlTypein interfaceDecoratedText.SwitchControlOrBuilder- Returns:
- The controlType.
-
setControlType
public DecoratedText.SwitchControl.Builder setControlType(DecoratedText.SwitchControl.ControlType value) How the switch appears in the user interface. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;- Parameters:
value- The controlType to set.- Returns:
- This builder for chaining.
-
clearControlType
How the switch appears in the user interface. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final DecoratedText.SwitchControl.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
mergeUnknownFields
public final DecoratedText.SwitchControl.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-