Class DocsAddOnManifest.Builder (2.23.0)

public static final class DocsAddOnManifest.Builder extends GeneratedMessageV3.Builder<DocsAddOnManifest.Builder> implements DocsAddOnManifestOrBuilder

Docs add-on manifest.

Protobuf type google.apps.script.type.docs.DocsAddOnManifest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocsAddOnManifest build()
Returns
TypeDescription
DocsAddOnManifest

buildPartial()

public DocsAddOnManifest buildPartial()
Returns
TypeDescription
DocsAddOnManifest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DocsAddOnManifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DocsAddOnManifest.Builder
Overrides

clearHomepageTrigger()

public DocsAddOnManifest.Builder clearHomepageTrigger()

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

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

Returns
TypeDescription
DocsAddOnManifest.Builder

clearOnFileScopeGrantedTrigger()

public DocsAddOnManifest.Builder clearOnFileScopeGrantedTrigger()

Endpoint to execute when file scope authorization is granted for this document/user pair.

.google.apps.script.type.docs.DocsExtensionPoint on_file_scope_granted_trigger = 2;

Returns
TypeDescription
DocsAddOnManifest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DocsAddOnManifest getDefaultInstanceForType()
Returns
TypeDescription
DocsAddOnManifest

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

getOnFileScopeGrantedTrigger()

public DocsExtensionPoint getOnFileScopeGrantedTrigger()

Endpoint to execute when file scope authorization is granted for this document/user pair.

.google.apps.script.type.docs.DocsExtensionPoint on_file_scope_granted_trigger = 2;

Returns
TypeDescription
DocsExtensionPoint

The onFileScopeGrantedTrigger.

getOnFileScopeGrantedTriggerBuilder()

public DocsExtensionPoint.Builder getOnFileScopeGrantedTriggerBuilder()

Endpoint to execute when file scope authorization is granted for this document/user pair.

.google.apps.script.type.docs.DocsExtensionPoint on_file_scope_granted_trigger = 2;

Returns
TypeDescription
DocsExtensionPoint.Builder

getOnFileScopeGrantedTriggerOrBuilder()

public DocsExtensionPointOrBuilder getOnFileScopeGrantedTriggerOrBuilder()

Endpoint to execute when file scope authorization is granted for this document/user pair.

.google.apps.script.type.docs.DocsExtensionPoint on_file_scope_granted_trigger = 2;

Returns
TypeDescription
DocsExtensionPointOrBuilder

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.

hasOnFileScopeGrantedTrigger()

public boolean hasOnFileScopeGrantedTrigger()

Endpoint to execute when file scope authorization is granted for this document/user pair.

.google.apps.script.type.docs.DocsExtensionPoint on_file_scope_granted_trigger = 2;

Returns
TypeDescription
boolean

Whether the onFileScopeGrantedTrigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocsAddOnManifest other)

public DocsAddOnManifest.Builder mergeFrom(DocsAddOnManifest other)
Parameter
NameDescription
otherDocsAddOnManifest
Returns
TypeDescription
DocsAddOnManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DocsAddOnManifest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DocsAddOnManifest.Builder
Overrides

mergeHomepageTrigger(HomepageExtensionPoint value)

public DocsAddOnManifest.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
DocsAddOnManifest.Builder

mergeOnFileScopeGrantedTrigger(DocsExtensionPoint value)

public DocsAddOnManifest.Builder mergeOnFileScopeGrantedTrigger(DocsExtensionPoint value)

Endpoint to execute when file scope authorization is granted for this document/user pair.

.google.apps.script.type.docs.DocsExtensionPoint on_file_scope_granted_trigger = 2;

Parameter
NameDescription
valueDocsExtensionPoint
Returns
TypeDescription
DocsAddOnManifest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHomepageTrigger(HomepageExtensionPoint value)

public DocsAddOnManifest.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
DocsAddOnManifest.Builder

setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

public DocsAddOnManifest.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
DocsAddOnManifest.Builder

setOnFileScopeGrantedTrigger(DocsExtensionPoint value)

public DocsAddOnManifest.Builder setOnFileScopeGrantedTrigger(DocsExtensionPoint value)

Endpoint to execute when file scope authorization is granted for this document/user pair.

.google.apps.script.type.docs.DocsExtensionPoint on_file_scope_granted_trigger = 2;

Parameter
NameDescription
valueDocsExtensionPoint
Returns
TypeDescription
DocsAddOnManifest.Builder

setOnFileScopeGrantedTrigger(DocsExtensionPoint.Builder builderForValue)

public DocsAddOnManifest.Builder setOnFileScopeGrantedTrigger(DocsExtensionPoint.Builder builderForValue)

Endpoint to execute when file scope authorization is granted for this document/user pair.

.google.apps.script.type.docs.DocsExtensionPoint on_file_scope_granted_trigger = 2;

Parameter
NameDescription
builderForValueDocsExtensionPoint.Builder
Returns
TypeDescription
DocsAddOnManifest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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