public static final class DecoratedText.SwitchControl extends GeneratedMessageV3 implements DecoratedText.SwitchControlOrBuilder
Either a toggle-style switch or a checkbox inside a decoratedText
widget.
Google Workspace Add-ons and Chat
apps:
Only supported in the decoratedText
widget.
Protobuf type google.apps.card.v1.DecoratedText.SwitchControl
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONTROL_TYPE_FIELD_NUMBER
public static final int CONTROL_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ON_CHANGE_ACTION_FIELD_NUMBER
public static final int ON_CHANGE_ACTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SELECTED_FIELD_NUMBER
public static final int SELECTED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DecoratedText.SwitchControl getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DecoratedText.SwitchControl.Builder newBuilder()
newBuilder(DecoratedText.SwitchControl prototype)
public static DecoratedText.SwitchControl.Builder newBuilder(DecoratedText.SwitchControl prototype)
parseDelimitedFrom(InputStream input)
public static DecoratedText.SwitchControl parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DecoratedText.SwitchControl parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DecoratedText.SwitchControl parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DecoratedText.SwitchControl parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DecoratedText.SwitchControl parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DecoratedText.SwitchControl parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static DecoratedText.SwitchControl parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DecoratedText.SwitchControl parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static DecoratedText.SwitchControl parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DecoratedText.SwitchControl parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DecoratedText.SwitchControl parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DecoratedText.SwitchControl parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DecoratedText.SwitchControl> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getControlType()
public DecoratedText.SwitchControl.ControlType getControlType()
getControlTypeValue()
public int getControlTypeValue()
Returns |
Type |
Description |
int |
The enum numeric value on the wire for controlType.
|
getDefaultInstanceForType()
public DecoratedText.SwitchControl getDefaultInstanceForType()
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.
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public 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.
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
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;
Returns |
Type |
Description |
Action |
The onChangeAction.
|
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;
getParserForType()
public Parser<DecoratedText.SwitchControl> getParserForType()
Overrides
getSelected()
public boolean getSelected()
When true
, the switch is selected.
bool selected = 3;
Returns |
Type |
Description |
boolean |
The selected.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
string value = 2;
Returns |
Type |
Description |
String |
The value.
|
getValueBytes()
public 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.
string value = 2;
Returns |
Type |
Description |
ByteString |
The bytes for value.
|
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;
Returns |
Type |
Description |
boolean |
Whether the onChangeAction field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DecoratedText.SwitchControl.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DecoratedText.SwitchControl.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public DecoratedText.SwitchControl.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides