Interface DecoratedText.SwitchControlOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
DecoratedText.SwitchControl, DecoratedText.SwitchControl.Builder
Enclosing class:
DecoratedText

public static interface DecoratedText.SwitchControlOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    How the switch appears in the user interface.
    int
    How the switch appears in the user interface.
    The name by which the switch widget is identified in a form input event.
    com.google.protobuf.ByteString
    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.
    The action to perform when the switch state is changed, such as what function to run.
    boolean
    When `true`, the switch is selected.
    The value entered by a user, returned as part of a form input event.
    com.google.protobuf.ByteString
    The value entered by a user, returned as part of a form input event.
    boolean
    The action to perform when the switch state is changed, such as what function to run.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getName

      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;
      Returns:
      The name.
    • getNameBytes

      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;
      Returns:
      The bytes for name.
    • getValue

      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;
      Returns:
      The value.
    • getValueBytes

      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;
      Returns:
      The bytes for value.
    • getSelected

      boolean getSelected()
       When `true`, the switch is selected.
       
      bool selected = 3;
      Returns:
      The selected.
    • hasOnChangeAction

      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:
      Whether the onChangeAction field is set.
    • getOnChangeAction

      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:
      The onChangeAction.
    • getOnChangeActionOrBuilder

      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;
    • getControlTypeValue

      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;
      Returns:
      The enum numeric value on the wire for 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;
      Returns:
      The controlType.