public final class CommonAddOnManifest extends GeneratedMessageV3 implements CommonAddOnManifestOrBuilder
Add-on configuration that is shared across all add-on host applications.
Protobuf type google.apps.script.type.CommonAddOnManifest
Static Fields
public static final int ADD_ON_WIDGET_SET_FIELD_NUMBER
Field Value
HOMEPAGE_TRIGGER_FIELD_NUMBER
public static final int HOMEPAGE_TRIGGER_FIELD_NUMBER
Field Value
LAYOUT_PROPERTIES_FIELD_NUMBER
public static final int LAYOUT_PROPERTIES_FIELD_NUMBER
Field Value
LOGO_URL_FIELD_NUMBER
public static final int LOGO_URL_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
OPEN_LINK_URL_PREFIXES_FIELD_NUMBER
public static final int OPEN_LINK_URL_PREFIXES_FIELD_NUMBER
Field Value
UNIVERSAL_ACTIONS_FIELD_NUMBER
public static final int UNIVERSAL_ACTIONS_FIELD_NUMBER
Field Value
USE_LOCALE_FROM_APP_FIELD_NUMBER
public static final int USE_LOCALE_FROM_APP_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CommonAddOnManifest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CommonAddOnManifest.Builder newBuilder()
Returns
newBuilder(CommonAddOnManifest prototype)
public static CommonAddOnManifest.Builder newBuilder(CommonAddOnManifest prototype)
Parameter
Returns
public static CommonAddOnManifest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CommonAddOnManifest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CommonAddOnManifest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CommonAddOnManifest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CommonAddOnManifest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CommonAddOnManifest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommonAddOnManifest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CommonAddOnManifest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommonAddOnManifest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CommonAddOnManifest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CommonAddOnManifest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CommonAddOnManifest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CommonAddOnManifest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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
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
getDefaultInstanceForType()
public CommonAddOnManifest getDefaultInstanceForType()
Returns
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
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
getLayoutProperties()
public LayoutProperties getLayoutProperties()
Common layout properties for the add-on cards.
.google.apps.script.type.LayoutProperties layout_properties = 3;
Returns
getLayoutPropertiesOrBuilder()
public LayoutPropertiesOrBuilder getLayoutPropertiesOrBuilder()
Common layout properties for the add-on cards.
.google.apps.script.type.LayoutProperties layout_properties = 3;
Returns
getLogoUrl()
public String getLogoUrl()
Required. The URL for the logo image shown in the add-on toolbar.
string logo_url = 2;
Returns
Type | Description |
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
getName()
Required. The display name of the add-on.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The display name of the add-on.
string name = 1;
Returns
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
Type | Description |
ListValue | The openLinkUrlPrefixes.
|
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
getParserForType()
public Parser<CommonAddOnManifest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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
Returns
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
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
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
Returns
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
Type | Description |
List<? extends com.google.apps.script.type.UniversalActionExtensionPointOrBuilder> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUseLocaleFromApp()
public boolean getUseLocaleFromApp()
Whether to pass locale information from host app.
bool use_locale_from_app = 5;
Returns
Type | Description |
boolean | The useLocaleFromApp.
|
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
Type | Description |
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
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the openLinkUrlPrefixes field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CommonAddOnManifest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CommonAddOnManifest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CommonAddOnManifest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions