public final class GmailAddOnManifest extends GeneratedMessageV3 implements GmailAddOnManifestOrBuilder
Properties customizing the appearance and execution of a Gmail add-on.
Protobuf type google.apps.script.type.gmail.GmailAddOnManifest
Static Fields
AUTHORIZATION_CHECK_FUNCTION_FIELD_NUMBER
public static final int AUTHORIZATION_CHECK_FUNCTION_FIELD_NUMBER
Field Value
COMPOSE_TRIGGER_FIELD_NUMBER
public static final int COMPOSE_TRIGGER_FIELD_NUMBER
Field Value
CONTEXTUAL_TRIGGERS_FIELD_NUMBER
public static final int CONTEXTUAL_TRIGGERS_FIELD_NUMBER
Field Value
HOMEPAGE_TRIGGER_FIELD_NUMBER
public static final int HOMEPAGE_TRIGGER_FIELD_NUMBER
Field Value
UNIVERSAL_ACTIONS_FIELD_NUMBER
public static final int UNIVERSAL_ACTIONS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static GmailAddOnManifest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static GmailAddOnManifest.Builder newBuilder()
Returns
newBuilder(GmailAddOnManifest prototype)
public static GmailAddOnManifest.Builder newBuilder(GmailAddOnManifest prototype)
Parameter
Returns
public static GmailAddOnManifest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static GmailAddOnManifest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static GmailAddOnManifest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GmailAddOnManifest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static GmailAddOnManifest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GmailAddOnManifest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GmailAddOnManifest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static GmailAddOnManifest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GmailAddOnManifest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static GmailAddOnManifest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static GmailAddOnManifest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GmailAddOnManifest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<GmailAddOnManifest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAuthorizationCheckFunction()
public String getAuthorizationCheckFunction()
The name of an endpoint that verifies that the add-on has
all the required third-party authorizations, by probing the third-party
APIs. If the probe fails, the function should throw an exception to
initiate the authorization flow. This function is called before each
invocation of the add-on, in order to ensure a smooth user experience.
string authorization_check_function = 7;
Returns
Type | Description |
String | The authorizationCheckFunction.
|
getAuthorizationCheckFunctionBytes()
public ByteString getAuthorizationCheckFunctionBytes()
The name of an endpoint that verifies that the add-on has
all the required third-party authorizations, by probing the third-party
APIs. If the probe fails, the function should throw an exception to
initiate the authorization flow. This function is called before each
invocation of the add-on, in order to ensure a smooth user experience.
string authorization_check_function = 7;
Returns
Type | Description |
ByteString | The bytes for authorizationCheckFunction.
|
getComposeTrigger()
public ComposeTrigger getComposeTrigger()
Defines the compose time trigger for a compose time add-on. This is the
trigger that causes an add-on to take action when the user is composing an
email.
All compose time addons are required to have the
gmail.addons.current.action.compose scope even though it might not edit the
draft.
.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;
Returns
getComposeTriggerOrBuilder()
public ComposeTriggerOrBuilder getComposeTriggerOrBuilder()
Defines the compose time trigger for a compose time add-on. This is the
trigger that causes an add-on to take action when the user is composing an
email.
All compose time addons are required to have the
gmail.addons.current.action.compose scope even though it might not edit the
draft.
.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;
Returns
getContextualTriggers(int index)
public ContextualTrigger getContextualTriggers(int index)
Defines the set of conditions that trigger the add-on.
repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;
Parameter
Returns
getContextualTriggersCount()
public int getContextualTriggersCount()
Defines the set of conditions that trigger the add-on.
repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;
Returns
getContextualTriggersList()
public List<ContextualTrigger> getContextualTriggersList()
Defines the set of conditions that trigger the add-on.
repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;
Returns
getContextualTriggersOrBuilder(int index)
public ContextualTriggerOrBuilder getContextualTriggersOrBuilder(int index)
Defines the set of conditions that trigger the add-on.
repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;
Parameter
Returns
getContextualTriggersOrBuilderList()
public List<? extends ContextualTriggerOrBuilder> getContextualTriggersOrBuilderList()
Defines the set of conditions that trigger the add-on.
repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;
Returns
Type | Description |
List<? extends com.google.apps.script.type.gmail.ContextualTriggerOrBuilder> | |
getDefaultInstanceForType()
public GmailAddOnManifest getDefaultInstanceForType()
Returns
getHomepageTrigger()
public HomepageExtensionPoint getHomepageTrigger()
Defines an endpoint that will be executed in contexts that don't
match a declared contextual trigger. 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.
If present, this overrides the configuration from
addOns.common.homepageTrigger
.
.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;
Returns
getHomepageTriggerOrBuilder()
public HomepageExtensionPointOrBuilder getHomepageTriggerOrBuilder()
Defines an endpoint that will be executed in contexts that don't
match a declared contextual trigger. 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.
If present, this overrides the configuration from
addOns.common.homepageTrigger
.
.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;
Returns
getParserForType()
public Parser<GmailAddOnManifest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUniversalActions(int index)
public UniversalAction getUniversalActions(int index)
Defines set of universal
actions for the add-on. The user
triggers universal actions from the add-on toolbar menu.
repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;
Parameter
Returns
getUniversalActionsCount()
public int getUniversalActionsCount()
Defines set of universal
actions for the add-on. The user
triggers universal actions from the add-on toolbar menu.
repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;
Returns
getUniversalActionsList()
public List<UniversalAction> getUniversalActionsList()
Defines set of universal
actions for the add-on. The user
triggers universal actions from the add-on toolbar menu.
repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;
Returns
getUniversalActionsOrBuilder(int index)
public UniversalActionOrBuilder getUniversalActionsOrBuilder(int index)
Defines set of universal
actions for the add-on. The user
triggers universal actions from the add-on toolbar menu.
repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;
Parameter
Returns
getUniversalActionsOrBuilderList()
public List<? extends UniversalActionOrBuilder> getUniversalActionsOrBuilderList()
Defines set of universal
actions for the add-on. The user
triggers universal actions from the add-on toolbar menu.
repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;
Returns
Type | Description |
List<? extends com.google.apps.script.type.gmail.UniversalActionOrBuilder> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasComposeTrigger()
public boolean hasComposeTrigger()
Defines the compose time trigger for a compose time add-on. This is the
trigger that causes an add-on to take action when the user is composing an
email.
All compose time addons are required to have the
gmail.addons.current.action.compose scope even though it might not edit the
draft.
.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;
Returns
Type | Description |
boolean | Whether the composeTrigger field is set.
|
hasHomepageTrigger()
public boolean hasHomepageTrigger()
Defines an endpoint that will be executed in contexts that don't
match a declared contextual trigger. 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.
If present, this overrides the configuration from
addOns.common.homepageTrigger
.
.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;
Returns
Type | Description |
boolean | Whether the homepageTrigger field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public GmailAddOnManifest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GmailAddOnManifest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public GmailAddOnManifest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions