Class AddOnWidgetSet (2.3.6)

public final class AddOnWidgetSet extends GeneratedMessageV3 implements AddOnWidgetSetOrBuilder

The widget subset used by an add-on.

Protobuf type google.apps.script.type.AddOnWidgetSet

Static Fields

USED_WIDGETS_FIELD_NUMBER

public static final int USED_WIDGETS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AddOnWidgetSet getDefaultInstance()
Returns
TypeDescription
AddOnWidgetSet

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AddOnWidgetSet.Builder newBuilder()
Returns
TypeDescription
AddOnWidgetSet.Builder

newBuilder(AddOnWidgetSet prototype)

public static AddOnWidgetSet.Builder newBuilder(AddOnWidgetSet prototype)
Parameter
NameDescription
prototypeAddOnWidgetSet
Returns
TypeDescription
AddOnWidgetSet.Builder

parseDelimitedFrom(InputStream input)

public static AddOnWidgetSet parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AddOnWidgetSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AddOnWidgetSet parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AddOnWidgetSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AddOnWidgetSet parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AddOnWidgetSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AddOnWidgetSet parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AddOnWidgetSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AddOnWidgetSet parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AddOnWidgetSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AddOnWidgetSet parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AddOnWidgetSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddOnWidgetSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AddOnWidgetSet> parser()
Returns
TypeDescription
Parser<AddOnWidgetSet>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AddOnWidgetSet getDefaultInstanceForType()
Returns
TypeDescription
AddOnWidgetSet

getParserForType()

public Parser<AddOnWidgetSet> getParserForType()
Returns
TypeDescription
Parser<AddOnWidgetSet>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AddOnWidgetSet.Builder newBuilderForType()
Returns
TypeDescription
AddOnWidgetSet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AddOnWidgetSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AddOnWidgetSet.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AddOnWidgetSet.Builder toBuilder()
Returns
TypeDescription
AddOnWidgetSet.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException