Interface DecoratedText.SwitchControlOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DecoratedText.SwitchControl.ControlType getControlType()
      How the switch appears in the user interface.
      int getControlTypeValue()
      How the switch appears in the user interface.
      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.
      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.
      • 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 Detail

      • getName

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

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

        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;
        Returns:
        The controlType.