Class MenuItemExtensionPoint.Builder (2.16.0)

public static final class MenuItemExtensionPoint.Builder extends GeneratedMessageV3.Builder<MenuItemExtensionPoint.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MenuItemExtensionPoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

build()

public MenuItemExtensionPoint build()
Returns
TypeDescription
MenuItemExtensionPoint

buildPartial()

public MenuItemExtensionPoint buildPartial()
Returns
TypeDescription
MenuItemExtensionPoint

clear()

public MenuItemExtensionPoint.Builder clear()
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MenuItemExtensionPoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

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
TypeDescription
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
TypeDescription
MenuItemExtensionPoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MenuItemExtensionPoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

clearRunFunction()

public MenuItemExtensionPoint.Builder clearRunFunction()

Required. The endpoint to execute when this extension point is activated.

string run_function = 1;

Returns
TypeDescription
MenuItemExtensionPoint.Builder

This builder for chaining.

clone()

public MenuItemExtensionPoint.Builder clone()
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

getDefaultInstanceForType()

public MenuItemExtensionPoint getDefaultInstanceForType()
Returns
TypeDescription
MenuItemExtensionPoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The runFunction.

getRunFunctionBytes()

public ByteString getRunFunctionBytes()

Required. The endpoint to execute when this extension point is activated.

string run_function = 1;

Returns
TypeDescription
ByteString

The bytes for runFunction.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MenuItemExtensionPoint other)

public MenuItemExtensionPoint.Builder mergeFrom(MenuItemExtensionPoint other)
Parameter
NameDescription
otherMenuItemExtensionPoint
Returns
TypeDescription
MenuItemExtensionPoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MenuItemExtensionPoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MenuItemExtensionPoint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MenuItemExtensionPoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MenuItemExtensionPoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

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
NameDescription
valueString

The label to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for label to set.

Returns
TypeDescription
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
NameDescription
valueString

The logoUrl to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for logoUrl to set.

Returns
TypeDescription
MenuItemExtensionPoint.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MenuItemExtensionPoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides

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
NameDescription
valueString

The runFunction to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for runFunction to set.

Returns
TypeDescription
MenuItemExtensionPoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MenuItemExtensionPoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MenuItemExtensionPoint.Builder
Overrides