Class SheetsAddOnManifest.Builder (2.31.0)

public static final class SheetsAddOnManifest.Builder extends GeneratedMessageV3.Builder<SheetsAddOnManifest.Builder> implements SheetsAddOnManifestOrBuilder

Sheets add-on manifest.

Protobuf type google.apps.script.type.sheets.SheetsAddOnManifest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SheetsAddOnManifest build()
Returns
TypeDescription
SheetsAddOnManifest

buildPartial()

public SheetsAddOnManifest buildPartial()
Returns
TypeDescription
SheetsAddOnManifest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHomepageTrigger()

public SheetsAddOnManifest.Builder clearHomepageTrigger()

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

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

Returns
TypeDescription
SheetsAddOnManifest.Builder

clearOnFileScopeGrantedTrigger()

public SheetsAddOnManifest.Builder clearOnFileScopeGrantedTrigger()

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

.google.apps.script.type.sheets.SheetsExtensionPoint on_file_scope_granted_trigger = 5;

Returns
TypeDescription
SheetsAddOnManifest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SheetsAddOnManifest getDefaultInstanceForType()
Returns
TypeDescription
SheetsAddOnManifest

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 = 3;

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 = 3;

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 = 3;

Returns
TypeDescription
HomepageExtensionPointOrBuilder

getOnFileScopeGrantedTrigger()

public SheetsExtensionPoint getOnFileScopeGrantedTrigger()

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

.google.apps.script.type.sheets.SheetsExtensionPoint on_file_scope_granted_trigger = 5;

Returns
TypeDescription
SheetsExtensionPoint

The onFileScopeGrantedTrigger.

getOnFileScopeGrantedTriggerBuilder()

public SheetsExtensionPoint.Builder getOnFileScopeGrantedTriggerBuilder()

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

.google.apps.script.type.sheets.SheetsExtensionPoint on_file_scope_granted_trigger = 5;

Returns
TypeDescription
SheetsExtensionPoint.Builder

getOnFileScopeGrantedTriggerOrBuilder()

public SheetsExtensionPointOrBuilder getOnFileScopeGrantedTriggerOrBuilder()

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

.google.apps.script.type.sheets.SheetsExtensionPoint on_file_scope_granted_trigger = 5;

Returns
TypeDescription
SheetsExtensionPointOrBuilder

hasHomepageTrigger()

public boolean hasHomepageTrigger()

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

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

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.sheets.SheetsExtensionPoint on_file_scope_granted_trigger = 5;

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(SheetsAddOnManifest other)

public SheetsAddOnManifest.Builder mergeFrom(SheetsAddOnManifest other)
Parameter
NameDescription
otherSheetsAddOnManifest
Returns
TypeDescription
SheetsAddOnManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHomepageTrigger(HomepageExtensionPoint value)

public SheetsAddOnManifest.Builder mergeHomepageTrigger(HomepageExtensionPoint value)

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

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

Parameter
NameDescription
valueHomepageExtensionPoint
Returns
TypeDescription
SheetsAddOnManifest.Builder

mergeOnFileScopeGrantedTrigger(SheetsExtensionPoint value)

public SheetsAddOnManifest.Builder mergeOnFileScopeGrantedTrigger(SheetsExtensionPoint value)

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

.google.apps.script.type.sheets.SheetsExtensionPoint on_file_scope_granted_trigger = 5;

Parameter
NameDescription
valueSheetsExtensionPoint
Returns
TypeDescription
SheetsAddOnManifest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHomepageTrigger(HomepageExtensionPoint value)

public SheetsAddOnManifest.Builder setHomepageTrigger(HomepageExtensionPoint value)

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

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

Parameter
NameDescription
valueHomepageExtensionPoint
Returns
TypeDescription
SheetsAddOnManifest.Builder

setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

public SheetsAddOnManifest.Builder setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueHomepageExtensionPoint.Builder
Returns
TypeDescription
SheetsAddOnManifest.Builder

setOnFileScopeGrantedTrigger(SheetsExtensionPoint value)

public SheetsAddOnManifest.Builder setOnFileScopeGrantedTrigger(SheetsExtensionPoint value)

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

.google.apps.script.type.sheets.SheetsExtensionPoint on_file_scope_granted_trigger = 5;

Parameter
NameDescription
valueSheetsExtensionPoint
Returns
TypeDescription
SheetsAddOnManifest.Builder

setOnFileScopeGrantedTrigger(SheetsExtensionPoint.Builder builderForValue)

public SheetsAddOnManifest.Builder setOnFileScopeGrantedTrigger(SheetsExtensionPoint.Builder builderForValue)

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

.google.apps.script.type.sheets.SheetsExtensionPoint on_file_scope_granted_trigger = 5;

Parameter
NameDescription
builderForValueSheetsExtensionPoint.Builder
Returns
TypeDescription
SheetsAddOnManifest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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