Class DriveAddOnManifest.Builder (2.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DriveAddOnManifest build()
Returns
TypeDescription
DriveAddOnManifest

buildPartial()

public DriveAddOnManifest buildPartial()
Returns
TypeDescription
DriveAddOnManifest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DriveAddOnManifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DriveAddOnManifest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DriveAddOnManifest getDefaultInstanceForType()
Returns
TypeDescription
DriveAddOnManifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DriveExtensionPointOrBuilder

hasHomepageTrigger()

public boolean hasHomepageTrigger()

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

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the onItemsSelectedTrigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DriveAddOnManifest other)

public DriveAddOnManifest.Builder mergeFrom(DriveAddOnManifest other)
Parameter
NameDescription
otherDriveAddOnManifest
Returns
TypeDescription
DriveAddOnManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DriveAddOnManifest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueHomepageExtensionPoint
Returns
TypeDescription
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
NameDescription
valueDriveExtensionPoint
Returns
TypeDescription
DriveAddOnManifest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DriveAddOnManifest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueHomepageExtensionPoint
Returns
TypeDescription
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
NameDescription
builderForValueHomepageExtensionPoint.Builder
Returns
TypeDescription
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
NameDescription
valueDriveExtensionPoint
Returns
TypeDescription
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
NameDescription
builderForValueDriveExtensionPoint.Builder
Returns
TypeDescription
DriveAddOnManifest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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