public static final class MenuItemExtensionPoint.Builder extends GeneratedMessage.Builder<MenuItemExtensionPoint.Builder> implements MenuItemExtensionPointOrBuilderCommon format for declaring a menu item, or button, that appears within a host app.
Protobuf type google.apps.script.type.MenuItemExtensionPoint
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MenuItemExtensionPoint.BuilderImplements
MenuItemExtensionPointOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public MenuItemExtensionPoint build()| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint |
|
buildPartial()
public MenuItemExtensionPoint buildPartial()| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint |
|
clear()
public MenuItemExtensionPoint.Builder clear()| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
|
clearLabel()
public MenuItemExtensionPoint.Builder clearLabel()Required. User-visible text describing the action taken by activating this extension point. For example, "Insert invoice".
string label = 2;
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
This builder for chaining. |
clearLogoUrl()
public MenuItemExtensionPoint.Builder clearLogoUrl()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 |
MenuItemExtensionPoint.Builder |
This builder for chaining. |
clearRunFunction()
public MenuItemExtensionPoint.Builder clearRunFunction()Required. The endpoint to execute when this extension point is activated.
string run_function = 1;
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public MenuItemExtensionPoint getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLabel()
public String getLabel()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. |
getLabelBytes()
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. |
getLogoUrl()
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. |
getLogoUrlBytes()
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. |
getRunFunction()
public String getRunFunction()Required. The endpoint to execute when this extension point is activated.
string run_function = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The runFunction. |
getRunFunctionBytes()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(MenuItemExtensionPoint other)
public MenuItemExtensionPoint.Builder mergeFrom(MenuItemExtensionPoint other)| Parameter | |
|---|---|
| Name | Description |
other |
MenuItemExtensionPoint |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MenuItemExtensionPoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MenuItemExtensionPoint.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
|
setLabel(String value)
public MenuItemExtensionPoint.Builder setLabel(String value)Required. User-visible text describing the action taken by activating this extension point. For example, "Insert invoice".
string label = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe label to set. |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
This builder for chaining. |
setLabelBytes(ByteString value)
public MenuItemExtensionPoint.Builder setLabelBytes(ByteString value)Required. User-visible text describing the action taken by activating this extension point. For example, "Insert invoice".
string label = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for label to set. |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
This builder for chaining. |
setLogoUrl(String value)
public MenuItemExtensionPoint.Builder setLogoUrl(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe logoUrl to set. |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
This builder for chaining. |
setLogoUrlBytes(ByteString value)
public MenuItemExtensionPoint.Builder setLogoUrlBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for logoUrl to set. |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
This builder for chaining. |
setRunFunction(String value)
public MenuItemExtensionPoint.Builder setRunFunction(String value)Required. The endpoint to execute when this extension point is activated.
string run_function = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe runFunction to set. |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
This builder for chaining. |
setRunFunctionBytes(ByteString value)
public MenuItemExtensionPoint.Builder setRunFunctionBytes(ByteString value)Required. The endpoint to execute when this extension point is activated.
string run_function = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for runFunction to set. |
| Returns | |
|---|---|
| Type | Description |
MenuItemExtensionPoint.Builder |
This builder for chaining. |