Send feedback
Class AddOnWidgetSet.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.11 keyboard_arrow_down
public static final class AddOnWidgetSet . Builder extends GeneratedMessageV3 . Builder<AddOnWidgetSet . Builder > implements AddOnWidgetSetOrBuilder
The widget subset used by an add-on.
Protobuf type google.apps.script.type.AddOnWidgetSet
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
public AddOnWidgetSet . Builder addAllUsedWidgets ( Iterable <? extends AddOnWidgetSet . WidgetType > values )
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Parameter
Name Description values Iterable <? extends com.google.apps.script.type.AddOnWidgetSet.WidgetType >
The usedWidgets to add.
Returns
public AddOnWidgetSet . Builder addAllUsedWidgetsValue ( Iterable<Integer> values )
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Parameter
Name Description values Iterable <Integer >
The enum numeric values on the wire for usedWidgets to add.
Returns
public AddOnWidgetSet . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public AddOnWidgetSet . Builder addUsedWidgets ( AddOnWidgetSet . WidgetType value )
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Parameter
Returns
public AddOnWidgetSet . Builder addUsedWidgetsValue ( int value )
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Parameter
Name Description value int
The enum numeric value on the wire for usedWidgets to add.
Returns
public AddOnWidgetSet build ()
Returns
public AddOnWidgetSet buildPartial ()
Returns
public AddOnWidgetSet . Builder clear ()
Returns
Overrides
public AddOnWidgetSet . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public AddOnWidgetSet . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public AddOnWidgetSet . Builder clearUsedWidgets ()
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Returns
public AddOnWidgetSet . Builder clone ()
Returns
Overrides
public AddOnWidgetSet getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
public AddOnWidgetSet . WidgetType getUsedWidgets ( int index )
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Parameter
Name Description index int
The index of the element to return.
Returns
public int getUsedWidgetsCount ()
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Returns
Type Description int The count of usedWidgets.
public List<AddOnWidgetSet . WidgetType > getUsedWidgetsList ()
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Returns
public int getUsedWidgetsValue ( int index )
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Parameter
Name Description index int
The index of the value to return.
Returns
Type Description int The enum numeric value on the wire of usedWidgets at the given index.
public List<Integer> getUsedWidgetsValueList ()
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Returns
Type Description List <Integer >A list containing the enum numeric values on the wire for usedWidgets.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public AddOnWidgetSet . Builder mergeFrom ( AddOnWidgetSet other )
Parameter
Returns
public AddOnWidgetSet . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public AddOnWidgetSet . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public final AddOnWidgetSet . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public AddOnWidgetSet . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public AddOnWidgetSet . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public final AddOnWidgetSet . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public AddOnWidgetSet . Builder setUsedWidgets ( int index , AddOnWidgetSet . WidgetType value )
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Parameters
Returns
public AddOnWidgetSet . Builder setUsedWidgetsValue ( int index , int value )
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
Parameters
Name Description index int
The index of the value to return.
value int
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]