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.
|