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.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,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.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:
- 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 typegoogle.apps.card.v1.DecoratedText.SwitchControl
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DecoratedText.SwitchControl.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DecoratedText.SwitchControl
build()
DecoratedText.SwitchControl
buildPartial()
DecoratedText.SwitchControl.Builder
clear()
DecoratedText.SwitchControl.Builder
clearControlType()
How the switch appears in the user interface.DecoratedText.SwitchControl.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DecoratedText.SwitchControl.Builder
clearName()
The name by which the switch widget is identified in a form input event.DecoratedText.SwitchControl.Builder
clearOnChangeAction()
The action to perform when the switch state is changed, such as what function to run.DecoratedText.SwitchControl.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DecoratedText.SwitchControl.Builder
clearSelected()
When `true`, the switch is selected.DecoratedText.SwitchControl.Builder
clearValue()
The value entered by a user, returned as part of a form input event.DecoratedText.SwitchControl.Builder
clone()
DecoratedText.SwitchControl.ControlType
getControlType()
How the switch appears in the user interface.int
getControlTypeValue()
How the switch appears in the user interface.DecoratedText.SwitchControl
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getName()
The name by which the switch widget is identified in a form input event.com.google.protobuf.ByteString
getNameBytes()
The name by which the switch widget is identified in a form input event.Action
getOnChangeAction()
The action to perform when the switch state is changed, such as what function to run.Action.Builder
getOnChangeActionBuilder()
The action to perform when the switch state is changed, such as what function to run.ActionOrBuilder
getOnChangeActionOrBuilder()
The action to perform when the switch state is changed, such as what function to run.boolean
getSelected()
When `true`, the switch is selected.java.lang.String
getValue()
The value entered by a user, returned as part of a form input event.com.google.protobuf.ByteString
getValueBytes()
The value entered by a user, returned as part of a form input event.boolean
hasOnChangeAction()
The action to perform when the switch state is changed, such as what function to run.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DecoratedText.SwitchControl.Builder
mergeFrom(DecoratedText.SwitchControl other)
DecoratedText.SwitchControl.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DecoratedText.SwitchControl.Builder
mergeFrom(com.google.protobuf.Message other)
DecoratedText.SwitchControl.Builder
mergeOnChangeAction(Action value)
The action to perform when the switch state is changed, such as what function to run.DecoratedText.SwitchControl.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DecoratedText.SwitchControl.Builder
setControlType(DecoratedText.SwitchControl.ControlType value)
How the switch appears in the user interface.DecoratedText.SwitchControl.Builder
setControlTypeValue(int value)
How the switch appears in the user interface.DecoratedText.SwitchControl.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DecoratedText.SwitchControl.Builder
setName(java.lang.String value)
The name by which the switch widget is identified in a form input event.DecoratedText.SwitchControl.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name by which the switch widget is identified in a form input event.DecoratedText.SwitchControl.Builder
setOnChangeAction(Action value)
The action to perform when the switch state is changed, such as what function to run.DecoratedText.SwitchControl.Builder
setOnChangeAction(Action.Builder builderForValue)
The action to perform when the switch state is changed, such as what function to run.DecoratedText.SwitchControl.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
DecoratedText.SwitchControl.Builder
setSelected(boolean value)
When `true`, the switch is selected.DecoratedText.SwitchControl.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DecoratedText.SwitchControl.Builder
setValue(java.lang.String value)
The value entered by a user, returned as part of a form input event.DecoratedText.SwitchControl.Builder
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.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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
clear
public DecoratedText.SwitchControl.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<DecoratedText.SwitchControl.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<DecoratedText.SwitchControl.Builder>
-
getDefaultInstanceForType
public DecoratedText.SwitchControl 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
public DecoratedText.SwitchControl build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DecoratedText.SwitchControl buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DecoratedText.SwitchControl.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<DecoratedText.SwitchControl.Builder>
-
setField
public DecoratedText.SwitchControl.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
clearField
public DecoratedText.SwitchControl.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<DecoratedText.SwitchControl.Builder>
-
clearOneof
public DecoratedText.SwitchControl.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<DecoratedText.SwitchControl.Builder>
-
setRepeatedField
public DecoratedText.SwitchControl.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
addRepeatedField
public DecoratedText.SwitchControl.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
mergeFrom
public DecoratedText.SwitchControl.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DecoratedText.SwitchControl.Builder>
-
mergeFrom
public DecoratedText.SwitchControl.Builder mergeFrom(DecoratedText.SwitchControl other)
-
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,DecoratedText.SwitchControl.Builder>
-
mergeFrom
public DecoratedText.SwitchControl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<DecoratedText.SwitchControl.Builder>
- Throws:
java.io.IOException
-
getName
public java.lang.String 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:
getName
in 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:
getNameBytes
in interfaceDecoratedText.SwitchControlOrBuilder
- Returns:
- The bytes for name.
-
setName
public DecoratedText.SwitchControl.Builder setName(java.lang.String value)
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
public DecoratedText.SwitchControl.Builder 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
public DecoratedText.SwitchControl.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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:
getValue
in 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:
getValueBytes
in interfaceDecoratedText.SwitchControlOrBuilder
- Returns:
- The bytes for value.
-
setValue
public DecoratedText.SwitchControl.Builder setValue(java.lang.String value)
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
public DecoratedText.SwitchControl.Builder 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
public DecoratedText.SwitchControl.Builder setValueBytes(com.google.protobuf.ByteString value)
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:
getSelected
in interfaceDecoratedText.SwitchControlOrBuilder
- Returns:
- The selected.
-
setSelected
public DecoratedText.SwitchControl.Builder setSelected(boolean value)
When `true`, the switch is selected.
bool selected = 3;
- Parameters:
value
- The selected to set.- Returns:
- This builder for chaining.
-
clearSelected
public DecoratedText.SwitchControl.Builder 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:
hasOnChangeAction
in interfaceDecoratedText.SwitchControlOrBuilder
- Returns:
- Whether the onChangeAction field is set.
-
getOnChangeAction
public Action 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:
getOnChangeAction
in interfaceDecoratedText.SwitchControlOrBuilder
- Returns:
- The onChangeAction.
-
setOnChangeAction
public DecoratedText.SwitchControl.Builder setOnChangeAction(Action value)
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
public DecoratedText.SwitchControl.Builder setOnChangeAction(Action.Builder builderForValue)
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
public DecoratedText.SwitchControl.Builder mergeOnChangeAction(Action value)
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
public DecoratedText.SwitchControl.Builder 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
public Action.Builder 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
public ActionOrBuilder 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:
getOnChangeActionOrBuilder
in 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:
getControlTypeValue
in interfaceDecoratedText.SwitchControlOrBuilder
- Returns:
- The enum numeric value on the wire for controlType.
-
setControlTypeValue
public DecoratedText.SwitchControl.Builder setControlTypeValue(int 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 enum numeric value on the wire for controlType to set.- Returns:
- This builder for chaining.
-
getControlType
public DecoratedText.SwitchControl.ControlType 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:
getControlType
in 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
public DecoratedText.SwitchControl.Builder 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
mergeUnknownFields
public final DecoratedText.SwitchControl.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DecoratedText.SwitchControl.Builder>
-
-