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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int LABEL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LOGO_URL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int RUN_FUNCTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static MenuItemExtensionPoint getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static MenuItemExtensionPoint.Builder newBuilder()
public static MenuItemExtensionPoint.Builder newBuilder(MenuItemExtensionPoint prototype)
public static MenuItemExtensionPoint parseDelimitedFrom(InputStream input)
public static MenuItemExtensionPoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MenuItemExtensionPoint parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static MenuItemExtensionPoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MenuItemExtensionPoint parseFrom(ByteString data)
public static MenuItemExtensionPoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MenuItemExtensionPoint parseFrom(CodedInputStream input)
public static MenuItemExtensionPoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MenuItemExtensionPoint parseFrom(InputStream input)
public static MenuItemExtensionPoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MenuItemExtensionPoint parseFrom(ByteBuffer data)
public static MenuItemExtensionPoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<MenuItemExtensionPoint> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public MenuItemExtensionPoint getDefaultInstanceForType()
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 |
---|
Type | Description |
ByteString | The bytes for label.
|
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 |
---|
Type | Description |
ByteString | The bytes for logoUrl.
|
public Parser<MenuItemExtensionPoint> getParserForType()
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 |
---|
Type | Description |
int | |
Overrides
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public MenuItemExtensionPoint.Builder newBuilderForType()
protected MenuItemExtensionPoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public MenuItemExtensionPoint.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides