Class CommonAddOnManifest.Builder (2.32.0)

public static final class CommonAddOnManifest.Builder extends GeneratedMessageV3.Builder<CommonAddOnManifest.Builder> implements CommonAddOnManifestOrBuilder

Add-on configuration that is shared across all add-on host applications.

Protobuf type google.apps.script.type.CommonAddOnManifest

Static Methods

getDescriptor()

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

Methods

addAllUniversalActions(Iterable<? extends UniversalActionExtensionPoint> values)

public CommonAddOnManifest.Builder addAllUniversalActions(Iterable<? extends UniversalActionExtensionPoint> values)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameter
NameDescription
valuesIterable<? extends com.google.apps.script.type.UniversalActionExtensionPoint>
Returns
TypeDescription
CommonAddOnManifest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUniversalActions(UniversalActionExtensionPoint value)

public CommonAddOnManifest.Builder addUniversalActions(UniversalActionExtensionPoint value)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameter
NameDescription
valueUniversalActionExtensionPoint
Returns
TypeDescription
CommonAddOnManifest.Builder

addUniversalActions(UniversalActionExtensionPoint.Builder builderForValue)

public CommonAddOnManifest.Builder addUniversalActions(UniversalActionExtensionPoint.Builder builderForValue)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameter
NameDescription
builderForValueUniversalActionExtensionPoint.Builder
Returns
TypeDescription
CommonAddOnManifest.Builder

addUniversalActions(int index, UniversalActionExtensionPoint value)

public CommonAddOnManifest.Builder addUniversalActions(int index, UniversalActionExtensionPoint value)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameters
NameDescription
indexint
valueUniversalActionExtensionPoint
Returns
TypeDescription
CommonAddOnManifest.Builder

addUniversalActions(int index, UniversalActionExtensionPoint.Builder builderForValue)

public CommonAddOnManifest.Builder addUniversalActions(int index, UniversalActionExtensionPoint.Builder builderForValue)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameters
NameDescription
indexint
builderForValueUniversalActionExtensionPoint.Builder
Returns
TypeDescription
CommonAddOnManifest.Builder

addUniversalActionsBuilder()

public UniversalActionExtensionPoint.Builder addUniversalActionsBuilder()

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Returns
TypeDescription
UniversalActionExtensionPoint.Builder

addUniversalActionsBuilder(int index)

public UniversalActionExtensionPoint.Builder addUniversalActionsBuilder(int index)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
UniversalActionExtensionPoint.Builder

build()

public CommonAddOnManifest build()
Returns
TypeDescription
CommonAddOnManifest

buildPartial()

public CommonAddOnManifest buildPartial()
Returns
TypeDescription
CommonAddOnManifest

clear()

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

clearAddOnWidgetSet()

public CommonAddOnManifest.Builder clearAddOnWidgetSet()

The widgets used in the add-on. If this field is not specified, it indicates that default set is used.

.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;

Returns
TypeDescription
CommonAddOnManifest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHomepageTrigger()

public CommonAddOnManifest.Builder clearHomepageTrigger()

Defines an endpoint that will be executed in any context, in any host. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;

Returns
TypeDescription
CommonAddOnManifest.Builder

clearLayoutProperties()

public CommonAddOnManifest.Builder clearLayoutProperties()

Common layout properties for the add-on cards.

.google.apps.script.type.LayoutProperties layout_properties = 3;

Returns
TypeDescription
CommonAddOnManifest.Builder

clearLogoUrl()

public CommonAddOnManifest.Builder clearLogoUrl()

Required. The URL for the logo image shown in the add-on toolbar.

string logo_url = 2;

Returns
TypeDescription
CommonAddOnManifest.Builder

This builder for chaining.

clearName()

public CommonAddOnManifest.Builder clearName()

Required. The display name of the add-on.

string name = 1;

Returns
TypeDescription
CommonAddOnManifest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOpenLinkUrlPrefixes()

public CommonAddOnManifest.Builder clearOpenLinkUrlPrefixes()

An OpenLink action can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, the URL must also match one of the prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS is assumed. Notice that HTTP links are automatically rewritten to HTTPS links.

.google.protobuf.ListValue open_link_url_prefixes = 8;

Returns
TypeDescription
CommonAddOnManifest.Builder

clearUniversalActions()

public CommonAddOnManifest.Builder clearUniversalActions()

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Returns
TypeDescription
CommonAddOnManifest.Builder

clearUseLocaleFromApp()

public CommonAddOnManifest.Builder clearUseLocaleFromApp()

Whether to pass locale information from host app.

bool use_locale_from_app = 5;

Returns
TypeDescription
CommonAddOnManifest.Builder

This builder for chaining.

clone()

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

getAddOnWidgetSet()

public AddOnWidgetSet getAddOnWidgetSet()

The widgets used in the add-on. If this field is not specified, it indicates that default set is used.

.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;

Returns
TypeDescription
AddOnWidgetSet

The addOnWidgetSet.

getAddOnWidgetSetBuilder()

public AddOnWidgetSet.Builder getAddOnWidgetSetBuilder()

The widgets used in the add-on. If this field is not specified, it indicates that default set is used.

.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;

Returns
TypeDescription
AddOnWidgetSet.Builder

getAddOnWidgetSetOrBuilder()

public AddOnWidgetSetOrBuilder getAddOnWidgetSetOrBuilder()

The widgets used in the add-on. If this field is not specified, it indicates that default set is used.

.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;

Returns
TypeDescription
AddOnWidgetSetOrBuilder

getDefaultInstanceForType()

public CommonAddOnManifest getDefaultInstanceForType()
Returns
TypeDescription
CommonAddOnManifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHomepageTrigger()

public HomepageExtensionPoint getHomepageTrigger()

Defines an endpoint that will be executed in any context, in any host. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;

Returns
TypeDescription
HomepageExtensionPoint

The homepageTrigger.

getHomepageTriggerBuilder()

public HomepageExtensionPoint.Builder getHomepageTriggerBuilder()

Defines an endpoint that will be executed in any context, in any host. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;

Returns
TypeDescription
HomepageExtensionPoint.Builder

getHomepageTriggerOrBuilder()

public HomepageExtensionPointOrBuilder getHomepageTriggerOrBuilder()

Defines an endpoint that will be executed in any context, in any host. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;

Returns
TypeDescription
HomepageExtensionPointOrBuilder

getLayoutProperties()

public LayoutProperties getLayoutProperties()

Common layout properties for the add-on cards.

.google.apps.script.type.LayoutProperties layout_properties = 3;

Returns
TypeDescription
LayoutProperties

The layoutProperties.

getLayoutPropertiesBuilder()

public LayoutProperties.Builder getLayoutPropertiesBuilder()

Common layout properties for the add-on cards.

.google.apps.script.type.LayoutProperties layout_properties = 3;

Returns
TypeDescription
LayoutProperties.Builder

getLayoutPropertiesOrBuilder()

public LayoutPropertiesOrBuilder getLayoutPropertiesOrBuilder()

Common layout properties for the add-on cards.

.google.apps.script.type.LayoutProperties layout_properties = 3;

Returns
TypeDescription
LayoutPropertiesOrBuilder

getLogoUrl()

public String getLogoUrl()

Required. The URL for the logo image shown in the add-on toolbar.

string logo_url = 2;

Returns
TypeDescription
String

The logoUrl.

getLogoUrlBytes()

public ByteString getLogoUrlBytes()

Required. The URL for the logo image shown in the add-on toolbar.

string logo_url = 2;

Returns
TypeDescription
ByteString

The bytes for logoUrl.

getName()

public String getName()

Required. The display name of the add-on.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The display name of the add-on.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOpenLinkUrlPrefixes()

public ListValue getOpenLinkUrlPrefixes()

An OpenLink action can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, the URL must also match one of the prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS is assumed. Notice that HTTP links are automatically rewritten to HTTPS links.

.google.protobuf.ListValue open_link_url_prefixes = 8;

Returns
TypeDescription
ListValue

The openLinkUrlPrefixes.

getOpenLinkUrlPrefixesBuilder()

public ListValue.Builder getOpenLinkUrlPrefixesBuilder()

An OpenLink action can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, the URL must also match one of the prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS is assumed. Notice that HTTP links are automatically rewritten to HTTPS links.

.google.protobuf.ListValue open_link_url_prefixes = 8;

Returns
TypeDescription
Builder

getOpenLinkUrlPrefixesOrBuilder()

public ListValueOrBuilder getOpenLinkUrlPrefixesOrBuilder()

An OpenLink action can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, the URL must also match one of the prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS is assumed. Notice that HTTP links are automatically rewritten to HTTPS links.

.google.protobuf.ListValue open_link_url_prefixes = 8;

Returns
TypeDescription
ListValueOrBuilder

getUniversalActions(int index)

public UniversalActionExtensionPoint getUniversalActions(int index)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
UniversalActionExtensionPoint

getUniversalActionsBuilder(int index)

public UniversalActionExtensionPoint.Builder getUniversalActionsBuilder(int index)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
UniversalActionExtensionPoint.Builder

getUniversalActionsBuilderList()

public List<UniversalActionExtensionPoint.Builder> getUniversalActionsBuilderList()

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Returns
TypeDescription
List<Builder>

getUniversalActionsCount()

public int getUniversalActionsCount()

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Returns
TypeDescription
int

getUniversalActionsList()

public List<UniversalActionExtensionPoint> getUniversalActionsList()

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Returns
TypeDescription
List<UniversalActionExtensionPoint>

getUniversalActionsOrBuilder(int index)

public UniversalActionExtensionPointOrBuilder getUniversalActionsOrBuilder(int index)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
UniversalActionExtensionPointOrBuilder

getUniversalActionsOrBuilderList()

public List<? extends UniversalActionExtensionPointOrBuilder> getUniversalActionsOrBuilderList()

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Returns
TypeDescription
List<? extends com.google.apps.script.type.UniversalActionExtensionPointOrBuilder>

getUseLocaleFromApp()

public boolean getUseLocaleFromApp()

Whether to pass locale information from host app.

bool use_locale_from_app = 5;

Returns
TypeDescription
boolean

The useLocaleFromApp.

hasAddOnWidgetSet()

public boolean hasAddOnWidgetSet()

The widgets used in the add-on. If this field is not specified, it indicates that default set is used.

.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;

Returns
TypeDescription
boolean

Whether the addOnWidgetSet field is set.

hasHomepageTrigger()

public boolean hasHomepageTrigger()

Defines an endpoint that will be executed in any context, in any host. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;

Returns
TypeDescription
boolean

Whether the homepageTrigger field is set.

hasLayoutProperties()

public boolean hasLayoutProperties()

Common layout properties for the add-on cards.

.google.apps.script.type.LayoutProperties layout_properties = 3;

Returns
TypeDescription
boolean

Whether the layoutProperties field is set.

hasOpenLinkUrlPrefixes()

public boolean hasOpenLinkUrlPrefixes()

An OpenLink action can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, the URL must also match one of the prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS is assumed. Notice that HTTP links are automatically rewritten to HTTPS links.

.google.protobuf.ListValue open_link_url_prefixes = 8;

Returns
TypeDescription
boolean

Whether the openLinkUrlPrefixes field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAddOnWidgetSet(AddOnWidgetSet value)

public CommonAddOnManifest.Builder mergeAddOnWidgetSet(AddOnWidgetSet value)

The widgets used in the add-on. If this field is not specified, it indicates that default set is used.

.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;

Parameter
NameDescription
valueAddOnWidgetSet
Returns
TypeDescription
CommonAddOnManifest.Builder

mergeFrom(CommonAddOnManifest other)

public CommonAddOnManifest.Builder mergeFrom(CommonAddOnManifest other)
Parameter
NameDescription
otherCommonAddOnManifest
Returns
TypeDescription
CommonAddOnManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHomepageTrigger(HomepageExtensionPoint value)

public CommonAddOnManifest.Builder mergeHomepageTrigger(HomepageExtensionPoint value)

Defines an endpoint that will be executed in any context, in any host. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;

Parameter
NameDescription
valueHomepageExtensionPoint
Returns
TypeDescription
CommonAddOnManifest.Builder

mergeLayoutProperties(LayoutProperties value)

public CommonAddOnManifest.Builder mergeLayoutProperties(LayoutProperties value)

Common layout properties for the add-on cards.

.google.apps.script.type.LayoutProperties layout_properties = 3;

Parameter
NameDescription
valueLayoutProperties
Returns
TypeDescription
CommonAddOnManifest.Builder

mergeOpenLinkUrlPrefixes(ListValue value)

public CommonAddOnManifest.Builder mergeOpenLinkUrlPrefixes(ListValue value)

An OpenLink action can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, the URL must also match one of the prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS is assumed. Notice that HTTP links are automatically rewritten to HTTPS links.

.google.protobuf.ListValue open_link_url_prefixes = 8;

Parameter
NameDescription
valueListValue
Returns
TypeDescription
CommonAddOnManifest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUniversalActions(int index)

public CommonAddOnManifest.Builder removeUniversalActions(int index)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
CommonAddOnManifest.Builder

setAddOnWidgetSet(AddOnWidgetSet value)

public CommonAddOnManifest.Builder setAddOnWidgetSet(AddOnWidgetSet value)

The widgets used in the add-on. If this field is not specified, it indicates that default set is used.

.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;

Parameter
NameDescription
valueAddOnWidgetSet
Returns
TypeDescription
CommonAddOnManifest.Builder

setAddOnWidgetSet(AddOnWidgetSet.Builder builderForValue)

public CommonAddOnManifest.Builder setAddOnWidgetSet(AddOnWidgetSet.Builder builderForValue)

The widgets used in the add-on. If this field is not specified, it indicates that default set is used.

.google.apps.script.type.AddOnWidgetSet add_on_widget_set = 4;

Parameter
NameDescription
builderForValueAddOnWidgetSet.Builder
Returns
TypeDescription
CommonAddOnManifest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHomepageTrigger(HomepageExtensionPoint value)

public CommonAddOnManifest.Builder setHomepageTrigger(HomepageExtensionPoint value)

Defines an endpoint that will be executed in any context, in any host. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;

Parameter
NameDescription
valueHomepageExtensionPoint
Returns
TypeDescription
CommonAddOnManifest.Builder

setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

public CommonAddOnManifest.Builder setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

Defines an endpoint that will be executed in any context, in any host. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;

Parameter
NameDescription
builderForValueHomepageExtensionPoint.Builder
Returns
TypeDescription
CommonAddOnManifest.Builder

setLayoutProperties(LayoutProperties value)

public CommonAddOnManifest.Builder setLayoutProperties(LayoutProperties value)

Common layout properties for the add-on cards.

.google.apps.script.type.LayoutProperties layout_properties = 3;

Parameter
NameDescription
valueLayoutProperties
Returns
TypeDescription
CommonAddOnManifest.Builder

setLayoutProperties(LayoutProperties.Builder builderForValue)

public CommonAddOnManifest.Builder setLayoutProperties(LayoutProperties.Builder builderForValue)

Common layout properties for the add-on cards.

.google.apps.script.type.LayoutProperties layout_properties = 3;

Parameter
NameDescription
builderForValueLayoutProperties.Builder
Returns
TypeDescription
CommonAddOnManifest.Builder

setLogoUrl(String value)

public CommonAddOnManifest.Builder setLogoUrl(String value)

Required. The URL for the logo image shown in the add-on toolbar.

string logo_url = 2;

Parameter
NameDescription
valueString

The logoUrl to set.

Returns
TypeDescription
CommonAddOnManifest.Builder

This builder for chaining.

setLogoUrlBytes(ByteString value)

public CommonAddOnManifest.Builder setLogoUrlBytes(ByteString value)

Required. The URL for the logo image shown in the add-on toolbar.

string logo_url = 2;

Parameter
NameDescription
valueByteString

The bytes for logoUrl to set.

Returns
TypeDescription
CommonAddOnManifest.Builder

This builder for chaining.

setName(String value)

public CommonAddOnManifest.Builder setName(String value)

Required. The display name of the add-on.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
CommonAddOnManifest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CommonAddOnManifest.Builder setNameBytes(ByteString value)

Required. The display name of the add-on.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
CommonAddOnManifest.Builder

This builder for chaining.

setOpenLinkUrlPrefixes(ListValue value)

public CommonAddOnManifest.Builder setOpenLinkUrlPrefixes(ListValue value)

An OpenLink action can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, the URL must also match one of the prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS is assumed. Notice that HTTP links are automatically rewritten to HTTPS links.

.google.protobuf.ListValue open_link_url_prefixes = 8;

Parameter
NameDescription
valueListValue
Returns
TypeDescription
CommonAddOnManifest.Builder

setOpenLinkUrlPrefixes(ListValue.Builder builderForValue)

public CommonAddOnManifest.Builder setOpenLinkUrlPrefixes(ListValue.Builder builderForValue)

An OpenLink action can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, the URL must also match one of the prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS is assumed. Notice that HTTP links are automatically rewritten to HTTPS links.

.google.protobuf.ListValue open_link_url_prefixes = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommonAddOnManifest.Builder

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

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

setUniversalActions(int index, UniversalActionExtensionPoint value)

public CommonAddOnManifest.Builder setUniversalActions(int index, UniversalActionExtensionPoint value)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameters
NameDescription
indexint
valueUniversalActionExtensionPoint
Returns
TypeDescription
CommonAddOnManifest.Builder

setUniversalActions(int index, UniversalActionExtensionPoint.Builder builderForValue)

public CommonAddOnManifest.Builder setUniversalActions(int index, UniversalActionExtensionPoint.Builder builderForValue)

Defines a list of extension points in the universal action menu which serves as a setting menu for the add-on. The extension point can be link URL to open or an endpoint to execute as a form submission.

repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;

Parameters
NameDescription
indexint
builderForValueUniversalActionExtensionPoint.Builder
Returns
TypeDescription
CommonAddOnManifest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseLocaleFromApp(boolean value)

public CommonAddOnManifest.Builder setUseLocaleFromApp(boolean value)

Whether to pass locale information from host app.

bool use_locale_from_app = 5;

Parameter
NameDescription
valueboolean

The useLocaleFromApp to set.

Returns
TypeDescription
CommonAddOnManifest.Builder

This builder for chaining.