Send feedback
Class AddOnWidgetSet.Builder (2.49.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.49.0 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
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.
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.
public AddOnWidgetSet . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
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;
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.
public AddOnWidgetSet build ()
public AddOnWidgetSet buildPartial ()
public AddOnWidgetSet . Builder clear ()
Overrides
public AddOnWidgetSet . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public AddOnWidgetSet . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public AddOnWidgetSet . Builder clearUsedWidgets ()
The list of widgets used in an add-on.
repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;
public AddOnWidgetSet . Builder clone ()
Overrides
public AddOnWidgetSet getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
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.
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
Type
Description
List <WidgetType >
A list containing the usedWidgets.
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 ()
Overrides
public final boolean isInitialized ()
Overrides
public AddOnWidgetSet . Builder mergeFrom ( AddOnWidgetSet other )
public AddOnWidgetSet . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public AddOnWidgetSet . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public final AddOnWidgetSet . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public AddOnWidgetSet . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public AddOnWidgetSet . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public final AddOnWidgetSet . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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;
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 to set the value at.
value
int
The enum numeric value on the wire for usedWidgets to set.
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."],[],[]]