public final class MenuItemExtensionPoint extends GeneratedMessageV3 implements MenuItemExtensionPointOrBuilder
Common format for declaring a menu item, or button, that appears within a
host app.
Protobuf type google.apps.script.type.MenuItemExtensionPoint
Static Fields
public static final int LABEL_FIELD_NUMBER
Field Value
public static final int LOGO_URL_FIELD_NUMBER
Field Value
public static final int RUN_FUNCTION_FIELD_NUMBER
Field Value
Static Methods
public static MenuItemExtensionPoint getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static MenuItemExtensionPoint.Builder newBuilder()
Returns
public static MenuItemExtensionPoint.Builder newBuilder(MenuItemExtensionPoint prototype)
Parameter
Returns
public static MenuItemExtensionPoint parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MenuItemExtensionPoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static MenuItemExtensionPoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<MenuItemExtensionPoint> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public MenuItemExtensionPoint getDefaultInstanceForType()
Returns
Required. User-visible text describing the action taken by activating this
extension point. For example, "Insert invoice".
string label = 2;
Returns
Type | Description |
String | The label.
|
public ByteString getLabelBytes()
Required. User-visible text describing the action taken by activating this
extension point. For example, "Insert invoice".
string label = 2;
Returns
public String getLogoUrl()
The URL for the logo image shown in the add-on toolbar.
If not set, defaults to the add-on's primary logo URL.
string logo_url = 3;
Returns
Type | Description |
String | The logoUrl.
|
public ByteString getLogoUrlBytes()
The URL for the logo image shown in the add-on toolbar.
If not set, defaults to the add-on's primary logo URL.
string logo_url = 3;
Returns
public Parser<MenuItemExtensionPoint> getParserForType()
Returns
Overrides
public String getRunFunction()
Required. The endpoint to execute when this extension point is
activated.
string run_function = 1;
Returns
Type | Description |
String | The runFunction.
|
public ByteString getRunFunctionBytes()
Required. The endpoint to execute when this extension point is
activated.
string run_function = 1;
Returns
Type | Description |
ByteString | The bytes for runFunction.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public MenuItemExtensionPoint.Builder newBuilderForType()
Returns
protected MenuItemExtensionPoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public MenuItemExtensionPoint.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions