Class AddOnWidgetSet.Builder (2.42.0)

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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllUsedWidgets(Iterable<? extends AddOnWidgetSet.WidgetType> values)

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
Type Description
AddOnWidgetSet.Builder

This builder for chaining.

addAllUsedWidgetsValue(Iterable<Integer> values)

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
Type Description
AddOnWidgetSet.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AddOnWidgetSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

addUsedWidgets(AddOnWidgetSet.WidgetType value)

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
Name Description
value AddOnWidgetSet.WidgetType

The usedWidgets to add.

Returns
Type Description
AddOnWidgetSet.Builder

This builder for chaining.

addUsedWidgetsValue(int value)

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
Type Description
AddOnWidgetSet.Builder

This builder for chaining.

build()

public AddOnWidgetSet build()
Returns
Type Description
AddOnWidgetSet

buildPartial()

public AddOnWidgetSet buildPartial()
Returns
Type Description
AddOnWidgetSet

clear()

public AddOnWidgetSet.Builder clear()
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AddOnWidgetSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AddOnWidgetSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

clearUsedWidgets()

public AddOnWidgetSet.Builder clearUsedWidgets()

The list of widgets used in an add-on.

repeated .google.apps.script.type.AddOnWidgetSet.WidgetType used_widgets = 1;

Returns
Type Description
AddOnWidgetSet.Builder

This builder for chaining.

clone()

public AddOnWidgetSet.Builder clone()
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

getDefaultInstanceForType()

public AddOnWidgetSet getDefaultInstanceForType()
Returns
Type Description
AddOnWidgetSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUsedWidgets(int index)

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
Type Description
AddOnWidgetSet.WidgetType

The usedWidgets at the given index.

getUsedWidgetsCount()

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.

getUsedWidgetsList()

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.

getUsedWidgetsValue(int index)

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.

getUsedWidgetsValueList()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AddOnWidgetSet other)

public AddOnWidgetSet.Builder mergeFrom(AddOnWidgetSet other)
Parameter
Name Description
other AddOnWidgetSet
Returns
Type Description
AddOnWidgetSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AddOnWidgetSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AddOnWidgetSet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AddOnWidgetSet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AddOnWidgetSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AddOnWidgetSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AddOnWidgetSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AddOnWidgetSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AddOnWidgetSet.Builder
Overrides

setUsedWidgets(int index, AddOnWidgetSet.WidgetType value)

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
Name Description
index int

The index to set the value at.

value AddOnWidgetSet.WidgetType

The usedWidgets to set.

Returns
Type Description
AddOnWidgetSet.Builder

This builder for chaining.

setUsedWidgetsValue(int index, int value)

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
Type Description
AddOnWidgetSet.Builder

This builder for chaining.