Class GmailAddOnManifest (2.5.0)

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

COMPOSE_TRIGGER_FIELD_NUMBER

public static final int COMPOSE_TRIGGER_FIELD_NUMBER
Field Value
TypeDescription
int

CONTEXTUAL_TRIGGERS_FIELD_NUMBER

public static final int CONTEXTUAL_TRIGGERS_FIELD_NUMBER
Field Value
TypeDescription
int

HOMEPAGE_TRIGGER_FIELD_NUMBER

public static final int HOMEPAGE_TRIGGER_FIELD_NUMBER
Field Value
TypeDescription
int

UNIVERSAL_ACTIONS_FIELD_NUMBER

public static final int UNIVERSAL_ACTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GmailAddOnManifest getDefaultInstance()
Returns
TypeDescription
GmailAddOnManifest

getDescriptor()

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

newBuilder()

public static GmailAddOnManifest.Builder newBuilder()
Returns
TypeDescription
GmailAddOnManifest.Builder

newBuilder(GmailAddOnManifest prototype)

public static GmailAddOnManifest.Builder newBuilder(GmailAddOnManifest prototype)
Parameter
NameDescription
prototypeGmailAddOnManifest
Returns
TypeDescription
GmailAddOnManifest.Builder

parseDelimitedFrom(InputStream input)

public static GmailAddOnManifest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GmailAddOnManifest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GmailAddOnManifest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GmailAddOnManifest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GmailAddOnManifest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GmailAddOnManifest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GmailAddOnManifest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GmailAddOnManifest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GmailAddOnManifest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GmailAddOnManifest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GmailAddOnManifest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GmailAddOnManifest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GmailAddOnManifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GmailAddOnManifest> parser()
Returns
TypeDescription
Parser<GmailAddOnManifest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
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
TypeDescription
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
TypeDescription
ComposeTrigger

The composeTrigger.

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

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
NameDescription
indexint
Returns
TypeDescription
ContextualTrigger

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

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
TypeDescription
List<ContextualTrigger>

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
NameDescription
indexint
Returns
TypeDescription
ContextualTriggerOrBuilder

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
TypeDescription
List<? extends com.google.apps.script.type.gmail.ContextualTriggerOrBuilder>

getDefaultInstanceForType()

public GmailAddOnManifest getDefaultInstanceForType()
Returns
TypeDescription
GmailAddOnManifest

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

The homepageTrigger.

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

getParserForType()

public Parser<GmailAddOnManifest> getParserForType()
Returns
TypeDescription
Parser<GmailAddOnManifest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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
NameDescription
indexint
Returns
TypeDescription
UniversalAction

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

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
TypeDescription
List<UniversalAction>

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
NameDescription
indexint
Returns
TypeDescription
UniversalActionOrBuilder

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
TypeDescription
List<? extends com.google.apps.script.type.gmail.UniversalActionOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
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
TypeDescription
boolean

Whether the homepageTrigger field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GmailAddOnManifest.Builder newBuilderForType()
Returns
TypeDescription
GmailAddOnManifest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GmailAddOnManifest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GmailAddOnManifest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GmailAddOnManifest.Builder toBuilder()
Returns
TypeDescription
GmailAddOnManifest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException