Class CollapseControl.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CollapseControl.Builder>
com.google.apps.card.v1.CollapseControl.Builder
All Implemented Interfaces:
CollapseControlOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CollapseControl

public static final class CollapseControl.Builder extends com.google.protobuf.GeneratedMessage.Builder<CollapseControl.Builder> implements CollapseControlOrBuilder
 Represent an expand and collapse control.

 [Google Workspace add-ons and Chat
 apps](https://developers.google.com/workspace/extend):
 
Protobuf type google.apps.card.v1.CollapseControl
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CollapseControl.Builder>
    • clear

      public CollapseControl.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CollapseControl.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CollapseControl.Builder>
    • getDefaultInstanceForType

      public CollapseControl getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CollapseControl build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CollapseControl buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CollapseControl.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CollapseControl.Builder>
    • mergeFrom

      public CollapseControl.Builder mergeFrom(CollapseControl other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CollapseControl.Builder>
    • mergeFrom

      public CollapseControl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CollapseControl.Builder>
      Throws:
      IOException
    • getHorizontalAlignmentValue

      public int getHorizontalAlignmentValue()
       The horizontal alignment of the expand and collapse button.
       
      .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;
      Specified by:
      getHorizontalAlignmentValue in interface CollapseControlOrBuilder
      Returns:
      The enum numeric value on the wire for horizontalAlignment.
    • setHorizontalAlignmentValue

      public CollapseControl.Builder setHorizontalAlignmentValue(int value)
       The horizontal alignment of the expand and collapse button.
       
      .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;
      Parameters:
      value - The enum numeric value on the wire for horizontalAlignment to set.
      Returns:
      This builder for chaining.
    • getHorizontalAlignment

      public Widget.HorizontalAlignment getHorizontalAlignment()
       The horizontal alignment of the expand and collapse button.
       
      .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;
      Specified by:
      getHorizontalAlignment in interface CollapseControlOrBuilder
      Returns:
      The horizontalAlignment.
    • setHorizontalAlignment

      public CollapseControl.Builder setHorizontalAlignment(Widget.HorizontalAlignment value)
       The horizontal alignment of the expand and collapse button.
       
      .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;
      Parameters:
      value - The horizontalAlignment to set.
      Returns:
      This builder for chaining.
    • clearHorizontalAlignment

      public CollapseControl.Builder clearHorizontalAlignment()
       The horizontal alignment of the expand and collapse button.
       
      .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 1;
      Returns:
      This builder for chaining.
    • hasExpandButton

      public boolean hasExpandButton()
       Optional. Define a customizable button to expand the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button expand_button = 2;
      Specified by:
      hasExpandButton in interface CollapseControlOrBuilder
      Returns:
      Whether the expandButton field is set.
    • getExpandButton

      public Button getExpandButton()
       Optional. Define a customizable button to expand the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button expand_button = 2;
      Specified by:
      getExpandButton in interface CollapseControlOrBuilder
      Returns:
      The expandButton.
    • setExpandButton

      public CollapseControl.Builder setExpandButton(Button value)
       Optional. Define a customizable button to expand the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button expand_button = 2;
    • setExpandButton

      public CollapseControl.Builder setExpandButton(Button.Builder builderForValue)
       Optional. Define a customizable button to expand the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button expand_button = 2;
    • mergeExpandButton

      public CollapseControl.Builder mergeExpandButton(Button value)
       Optional. Define a customizable button to expand the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button expand_button = 2;
    • clearExpandButton

      public CollapseControl.Builder clearExpandButton()
       Optional. Define a customizable button to expand the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button expand_button = 2;
    • getExpandButtonBuilder

      public Button.Builder getExpandButtonBuilder()
       Optional. Define a customizable button to expand the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button expand_button = 2;
    • getExpandButtonOrBuilder

      public ButtonOrBuilder getExpandButtonOrBuilder()
       Optional. Define a customizable button to expand the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button expand_button = 2;
      Specified by:
      getExpandButtonOrBuilder in interface CollapseControlOrBuilder
    • hasCollapseButton

      public boolean hasCollapseButton()
       Optional. Define a customizable button to collapse the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button collapse_button = 3;
      Specified by:
      hasCollapseButton in interface CollapseControlOrBuilder
      Returns:
      Whether the collapseButton field is set.
    • getCollapseButton

      public Button getCollapseButton()
       Optional. Define a customizable button to collapse the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button collapse_button = 3;
      Specified by:
      getCollapseButton in interface CollapseControlOrBuilder
      Returns:
      The collapseButton.
    • setCollapseButton

      public CollapseControl.Builder setCollapseButton(Button value)
       Optional. Define a customizable button to collapse the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button collapse_button = 3;
    • setCollapseButton

      public CollapseControl.Builder setCollapseButton(Button.Builder builderForValue)
       Optional. Define a customizable button to collapse the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button collapse_button = 3;
    • mergeCollapseButton

      public CollapseControl.Builder mergeCollapseButton(Button value)
       Optional. Define a customizable button to collapse the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button collapse_button = 3;
    • clearCollapseButton

      public CollapseControl.Builder clearCollapseButton()
       Optional. Define a customizable button to collapse the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button collapse_button = 3;
    • getCollapseButtonBuilder

      public Button.Builder getCollapseButtonBuilder()
       Optional. Define a customizable button to collapse the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button collapse_button = 3;
    • getCollapseButtonOrBuilder

      public ButtonOrBuilder getCollapseButtonOrBuilder()
       Optional. Define a customizable button to collapse the section.
       Both expand_button and collapse_button field must be set. Only one
       field set will not take into effect.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.Button collapse_button = 3;
      Specified by:
      getCollapseButtonOrBuilder in interface CollapseControlOrBuilder