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.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()
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 to set the value at.
|
value | int
The enum numeric value on the wire for usedWidgets to set.
|
Returns