Class DriveAddOnManifest.Builder (2.44.0)

public static final class DriveAddOnManifest.Builder extends GeneratedMessageV3.Builder<DriveAddOnManifest.Builder> implements DriveAddOnManifestOrBuilder

Drive add-on manifest.

Protobuf type google.apps.script.type.drive.DriveAddOnManifest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DriveAddOnManifest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

build()

public DriveAddOnManifest build()
Returns
Type Description
DriveAddOnManifest

buildPartial()

public DriveAddOnManifest buildPartial()
Returns
Type Description
DriveAddOnManifest

clear()

public DriveAddOnManifest.Builder clear()
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DriveAddOnManifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

clearHomepageTrigger()

public DriveAddOnManifest.Builder clearHomepageTrigger()

If present, this overrides the configuration from addOns.common.homepageTrigger.

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

Returns
Type Description
DriveAddOnManifest.Builder

clearOnItemsSelectedTrigger()

public DriveAddOnManifest.Builder clearOnItemsSelectedTrigger()

Corresponds to behvior that should execute when items are selected in relevant Drive view (e.g. the My Drive Doclist).

.google.apps.script.type.drive.DriveExtensionPoint on_items_selected_trigger = 2;

Returns
Type Description
DriveAddOnManifest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DriveAddOnManifest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

clone()

public DriveAddOnManifest.Builder clone()
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

getDefaultInstanceForType()

public DriveAddOnManifest getDefaultInstanceForType()
Returns
Type Description
DriveAddOnManifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHomepageTrigger()

public HomepageExtensionPoint getHomepageTrigger()

If present, this overrides the configuration from addOns.common.homepageTrigger.

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

Returns
Type Description
HomepageExtensionPoint

The homepageTrigger.

getHomepageTriggerBuilder()

public HomepageExtensionPoint.Builder getHomepageTriggerBuilder()

If present, this overrides the configuration from addOns.common.homepageTrigger.

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

Returns
Type Description
HomepageExtensionPoint.Builder

getHomepageTriggerOrBuilder()

public HomepageExtensionPointOrBuilder getHomepageTriggerOrBuilder()

If present, this overrides the configuration from addOns.common.homepageTrigger.

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

Returns
Type Description
HomepageExtensionPointOrBuilder

getOnItemsSelectedTrigger()

public DriveExtensionPoint getOnItemsSelectedTrigger()

Corresponds to behvior that should execute when items are selected in relevant Drive view (e.g. the My Drive Doclist).

.google.apps.script.type.drive.DriveExtensionPoint on_items_selected_trigger = 2;

Returns
Type Description
DriveExtensionPoint

The onItemsSelectedTrigger.

getOnItemsSelectedTriggerBuilder()

public DriveExtensionPoint.Builder getOnItemsSelectedTriggerBuilder()

Corresponds to behvior that should execute when items are selected in relevant Drive view (e.g. the My Drive Doclist).

.google.apps.script.type.drive.DriveExtensionPoint on_items_selected_trigger = 2;

Returns
Type Description
DriveExtensionPoint.Builder

getOnItemsSelectedTriggerOrBuilder()

public DriveExtensionPointOrBuilder getOnItemsSelectedTriggerOrBuilder()

Corresponds to behvior that should execute when items are selected in relevant Drive view (e.g. the My Drive Doclist).

.google.apps.script.type.drive.DriveExtensionPoint on_items_selected_trigger = 2;

Returns
Type Description
DriveExtensionPointOrBuilder

hasHomepageTrigger()

public boolean hasHomepageTrigger()

If present, this overrides the configuration from addOns.common.homepageTrigger.

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

Returns
Type Description
boolean

Whether the homepageTrigger field is set.

hasOnItemsSelectedTrigger()

public boolean hasOnItemsSelectedTrigger()

Corresponds to behvior that should execute when items are selected in relevant Drive view (e.g. the My Drive Doclist).

.google.apps.script.type.drive.DriveExtensionPoint on_items_selected_trigger = 2;

Returns
Type Description
boolean

Whether the onItemsSelectedTrigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DriveAddOnManifest other)

public DriveAddOnManifest.Builder mergeFrom(DriveAddOnManifest other)
Parameter
Name Description
other DriveAddOnManifest
Returns
Type Description
DriveAddOnManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DriveAddOnManifest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DriveAddOnManifest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DriveAddOnManifest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

mergeHomepageTrigger(HomepageExtensionPoint value)

public DriveAddOnManifest.Builder mergeHomepageTrigger(HomepageExtensionPoint value)

If present, this overrides the configuration from addOns.common.homepageTrigger.

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

Parameter
Name Description
value HomepageExtensionPoint
Returns
Type Description
DriveAddOnManifest.Builder

mergeOnItemsSelectedTrigger(DriveExtensionPoint value)

public DriveAddOnManifest.Builder mergeOnItemsSelectedTrigger(DriveExtensionPoint value)

Corresponds to behvior that should execute when items are selected in relevant Drive view (e.g. the My Drive Doclist).

.google.apps.script.type.drive.DriveExtensionPoint on_items_selected_trigger = 2;

Parameter
Name Description
value DriveExtensionPoint
Returns
Type Description
DriveAddOnManifest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DriveAddOnManifest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DriveAddOnManifest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

setHomepageTrigger(HomepageExtensionPoint value)

public DriveAddOnManifest.Builder setHomepageTrigger(HomepageExtensionPoint value)

If present, this overrides the configuration from addOns.common.homepageTrigger.

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

Parameter
Name Description
value HomepageExtensionPoint
Returns
Type Description
DriveAddOnManifest.Builder

setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

public DriveAddOnManifest.Builder setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

If present, this overrides the configuration from addOns.common.homepageTrigger.

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

Parameter
Name Description
builderForValue HomepageExtensionPoint.Builder
Returns
Type Description
DriveAddOnManifest.Builder

setOnItemsSelectedTrigger(DriveExtensionPoint value)

public DriveAddOnManifest.Builder setOnItemsSelectedTrigger(DriveExtensionPoint value)

Corresponds to behvior that should execute when items are selected in relevant Drive view (e.g. the My Drive Doclist).

.google.apps.script.type.drive.DriveExtensionPoint on_items_selected_trigger = 2;

Parameter
Name Description
value DriveExtensionPoint
Returns
Type Description
DriveAddOnManifest.Builder

setOnItemsSelectedTrigger(DriveExtensionPoint.Builder builderForValue)

public DriveAddOnManifest.Builder setOnItemsSelectedTrigger(DriveExtensionPoint.Builder builderForValue)

Corresponds to behvior that should execute when items are selected in relevant Drive view (e.g. the My Drive Doclist).

.google.apps.script.type.drive.DriveExtensionPoint on_items_selected_trigger = 2;

Parameter
Name Description
builderForValue DriveExtensionPoint.Builder
Returns
Type Description
DriveAddOnManifest.Builder

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

public DriveAddOnManifest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DriveAddOnManifest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DriveAddOnManifest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DriveAddOnManifest.Builder
Overrides