Class AddOnWidgetSet.Builder (2.15.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.apps.script.type.AddOnWidgetSet.WidgetType>

The usedWidgets to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for usedWidgets to add.

Returns
TypeDescription
AddOnWidgetSet.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AddOnWidgetSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueAddOnWidgetSet.WidgetType

The usedWidgets to add.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for usedWidgets to add.

Returns
TypeDescription
AddOnWidgetSet.Builder

This builder for chaining.

build()

public AddOnWidgetSet build()
Returns
TypeDescription
AddOnWidgetSet

buildPartial()

public AddOnWidgetSet buildPartial()
Returns
TypeDescription
AddOnWidgetSet

clear()

public AddOnWidgetSet.Builder clear()
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AddOnWidgetSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AddOnWidgetSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AddOnWidgetSet.Builder

This builder for chaining.

clone()

public AddOnWidgetSet.Builder clone()
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides

getDefaultInstanceForType()

public AddOnWidgetSet getDefaultInstanceForType()
Returns
TypeDescription
AddOnWidgetSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for usedWidgets.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AddOnWidgetSet other)

public AddOnWidgetSet.Builder mergeFrom(AddOnWidgetSet other)
Parameter
NameDescription
otherAddOnWidgetSet
Returns
TypeDescription
AddOnWidgetSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AddOnWidgetSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AddOnWidgetSet.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AddOnWidgetSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AddOnWidgetSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides

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

public AddOnWidgetSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AddOnWidgetSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueAddOnWidgetSet.WidgetType

The usedWidgets to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for usedWidgets to set.

Returns
TypeDescription
AddOnWidgetSet.Builder

This builder for chaining.