Class AddOns.Builder (2.43.0)

public static final class AddOns.Builder extends GeneratedMessageV3.Builder<AddOns.Builder> implements AddOnsOrBuilder

A Google Workspace Add-on configuration.

Protobuf type google.cloud.gsuiteaddons.v1.AddOns

Implements

AddOnsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AddOns build()
Returns
Type Description
AddOns

buildPartial()

public AddOns buildPartial()
Returns
Type Description
AddOns

clear()

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

clearCalendar()

public AddOns.Builder clearCalendar()

Calendar add-on configuration.

.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;

Returns
Type Description
AddOns.Builder

clearCommon()

public AddOns.Builder clearCommon()

Configuration that is common across all Google Workspace Add-ons.

.google.apps.script.type.CommonAddOnManifest common = 1;

Returns
Type Description
AddOns.Builder

clearDocs()

public AddOns.Builder clearDocs()

Docs add-on configuration.

.google.apps.script.type.docs.DocsAddOnManifest docs = 7;

Returns
Type Description
AddOns.Builder

clearDrive()

public AddOns.Builder clearDrive()

Drive add-on configuration.

.google.apps.script.type.drive.DriveAddOnManifest drive = 5;

Returns
Type Description
AddOns.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGmail()

public AddOns.Builder clearGmail()

Gmail add-on configuration.

.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;

Returns
Type Description
AddOns.Builder

clearHttpOptions()

public AddOns.Builder clearHttpOptions()

Options for sending requests to add-on HTTP endpoints

.google.apps.script.type.HttpOptions http_options = 15;

Returns
Type Description
AddOns.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSheets()

public AddOns.Builder clearSheets()

Sheets add-on configuration.

.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;

Returns
Type Description
AddOns.Builder

clearSlides()

public AddOns.Builder clearSlides()

Slides add-on configuration.

.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;

Returns
Type Description
AddOns.Builder

clone()

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

getCalendar()

public CalendarAddOnManifest getCalendar()

Calendar add-on configuration.

.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;

Returns
Type Description
CalendarAddOnManifest

The calendar.

getCalendarBuilder()

public CalendarAddOnManifest.Builder getCalendarBuilder()

Calendar add-on configuration.

.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;

Returns
Type Description
CalendarAddOnManifest.Builder

getCalendarOrBuilder()

public CalendarAddOnManifestOrBuilder getCalendarOrBuilder()

Calendar add-on configuration.

.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;

Returns
Type Description
CalendarAddOnManifestOrBuilder

getCommon()

public CommonAddOnManifest getCommon()

Configuration that is common across all Google Workspace Add-ons.

.google.apps.script.type.CommonAddOnManifest common = 1;

Returns
Type Description
CommonAddOnManifest

The common.

getCommonBuilder()

public CommonAddOnManifest.Builder getCommonBuilder()

Configuration that is common across all Google Workspace Add-ons.

.google.apps.script.type.CommonAddOnManifest common = 1;

Returns
Type Description
CommonAddOnManifest.Builder

getCommonOrBuilder()

public CommonAddOnManifestOrBuilder getCommonOrBuilder()

Configuration that is common across all Google Workspace Add-ons.

.google.apps.script.type.CommonAddOnManifest common = 1;

Returns
Type Description
CommonAddOnManifestOrBuilder

getDefaultInstanceForType()

public AddOns getDefaultInstanceForType()
Returns
Type Description
AddOns

getDescriptorForType()

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

getDocs()

public DocsAddOnManifest getDocs()

Docs add-on configuration.

.google.apps.script.type.docs.DocsAddOnManifest docs = 7;

Returns
Type Description
DocsAddOnManifest

The docs.

getDocsBuilder()

public DocsAddOnManifest.Builder getDocsBuilder()

Docs add-on configuration.

.google.apps.script.type.docs.DocsAddOnManifest docs = 7;

Returns
Type Description
DocsAddOnManifest.Builder

getDocsOrBuilder()

public DocsAddOnManifestOrBuilder getDocsOrBuilder()

Docs add-on configuration.

.google.apps.script.type.docs.DocsAddOnManifest docs = 7;

Returns
Type Description
DocsAddOnManifestOrBuilder

getDrive()

public DriveAddOnManifest getDrive()

Drive add-on configuration.

.google.apps.script.type.drive.DriveAddOnManifest drive = 5;

Returns
Type Description
DriveAddOnManifest

The drive.

getDriveBuilder()

public DriveAddOnManifest.Builder getDriveBuilder()

Drive add-on configuration.

.google.apps.script.type.drive.DriveAddOnManifest drive = 5;

Returns
Type Description
DriveAddOnManifest.Builder

getDriveOrBuilder()

public DriveAddOnManifestOrBuilder getDriveOrBuilder()

Drive add-on configuration.

.google.apps.script.type.drive.DriveAddOnManifest drive = 5;

Returns
Type Description
DriveAddOnManifestOrBuilder

getGmail()

public GmailAddOnManifest getGmail()

Gmail add-on configuration.

.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;

Returns
Type Description
GmailAddOnManifest

The gmail.

getGmailBuilder()

public GmailAddOnManifest.Builder getGmailBuilder()

Gmail add-on configuration.

.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;

Returns
Type Description
GmailAddOnManifest.Builder

getGmailOrBuilder()

public GmailAddOnManifestOrBuilder getGmailOrBuilder()

Gmail add-on configuration.

.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;

Returns
Type Description
GmailAddOnManifestOrBuilder

getHttpOptions()

public HttpOptions getHttpOptions()

Options for sending requests to add-on HTTP endpoints

.google.apps.script.type.HttpOptions http_options = 15;

Returns
Type Description
HttpOptions

The httpOptions.

getHttpOptionsBuilder()

public HttpOptions.Builder getHttpOptionsBuilder()

Options for sending requests to add-on HTTP endpoints

.google.apps.script.type.HttpOptions http_options = 15;

Returns
Type Description
HttpOptions.Builder

getHttpOptionsOrBuilder()

public HttpOptionsOrBuilder getHttpOptionsOrBuilder()

Options for sending requests to add-on HTTP endpoints

.google.apps.script.type.HttpOptions http_options = 15;

Returns
Type Description
HttpOptionsOrBuilder

getSheets()

public SheetsAddOnManifest getSheets()

Sheets add-on configuration.

.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;

Returns
Type Description
SheetsAddOnManifest

The sheets.

getSheetsBuilder()

public SheetsAddOnManifest.Builder getSheetsBuilder()

Sheets add-on configuration.

.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;

Returns
Type Description
SheetsAddOnManifest.Builder

getSheetsOrBuilder()

public SheetsAddOnManifestOrBuilder getSheetsOrBuilder()

Sheets add-on configuration.

.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;

Returns
Type Description
SheetsAddOnManifestOrBuilder

getSlides()

public SlidesAddOnManifest getSlides()

Slides add-on configuration.

.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;

Returns
Type Description
SlidesAddOnManifest

The slides.

getSlidesBuilder()

public SlidesAddOnManifest.Builder getSlidesBuilder()

Slides add-on configuration.

.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;

Returns
Type Description
SlidesAddOnManifest.Builder

getSlidesOrBuilder()

public SlidesAddOnManifestOrBuilder getSlidesOrBuilder()

Slides add-on configuration.

.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;

Returns
Type Description
SlidesAddOnManifestOrBuilder

hasCalendar()

public boolean hasCalendar()

Calendar add-on configuration.

.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;

Returns
Type Description
boolean

Whether the calendar field is set.

hasCommon()

public boolean hasCommon()

Configuration that is common across all Google Workspace Add-ons.

.google.apps.script.type.CommonAddOnManifest common = 1;

Returns
Type Description
boolean

Whether the common field is set.

hasDocs()

public boolean hasDocs()

Docs add-on configuration.

.google.apps.script.type.docs.DocsAddOnManifest docs = 7;

Returns
Type Description
boolean

Whether the docs field is set.

hasDrive()

public boolean hasDrive()

Drive add-on configuration.

.google.apps.script.type.drive.DriveAddOnManifest drive = 5;

Returns
Type Description
boolean

Whether the drive field is set.

hasGmail()

public boolean hasGmail()

Gmail add-on configuration.

.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;

Returns
Type Description
boolean

Whether the gmail field is set.

hasHttpOptions()

public boolean hasHttpOptions()

Options for sending requests to add-on HTTP endpoints

.google.apps.script.type.HttpOptions http_options = 15;

Returns
Type Description
boolean

Whether the httpOptions field is set.

hasSheets()

public boolean hasSheets()

Sheets add-on configuration.

.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;

Returns
Type Description
boolean

Whether the sheets field is set.

hasSlides()

public boolean hasSlides()

Slides add-on configuration.

.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;

Returns
Type Description
boolean

Whether the slides field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCalendar(CalendarAddOnManifest value)

public AddOns.Builder mergeCalendar(CalendarAddOnManifest value)

Calendar add-on configuration.

.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;

Parameter
Name Description
value CalendarAddOnManifest
Returns
Type Description
AddOns.Builder

mergeCommon(CommonAddOnManifest value)

public AddOns.Builder mergeCommon(CommonAddOnManifest value)

Configuration that is common across all Google Workspace Add-ons.

.google.apps.script.type.CommonAddOnManifest common = 1;

Parameter
Name Description
value CommonAddOnManifest
Returns
Type Description
AddOns.Builder

mergeDocs(DocsAddOnManifest value)

public AddOns.Builder mergeDocs(DocsAddOnManifest value)

Docs add-on configuration.

.google.apps.script.type.docs.DocsAddOnManifest docs = 7;

Parameter
Name Description
value DocsAddOnManifest
Returns
Type Description
AddOns.Builder

mergeDrive(DriveAddOnManifest value)

public AddOns.Builder mergeDrive(DriveAddOnManifest value)

Drive add-on configuration.

.google.apps.script.type.drive.DriveAddOnManifest drive = 5;

Parameter
Name Description
value DriveAddOnManifest
Returns
Type Description
AddOns.Builder

mergeFrom(AddOns other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGmail(GmailAddOnManifest value)

public AddOns.Builder mergeGmail(GmailAddOnManifest value)

Gmail add-on configuration.

.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;

Parameter
Name Description
value GmailAddOnManifest
Returns
Type Description
AddOns.Builder

mergeHttpOptions(HttpOptions value)

public AddOns.Builder mergeHttpOptions(HttpOptions value)

Options for sending requests to add-on HTTP endpoints

.google.apps.script.type.HttpOptions http_options = 15;

Parameter
Name Description
value HttpOptions
Returns
Type Description
AddOns.Builder

mergeSheets(SheetsAddOnManifest value)

public AddOns.Builder mergeSheets(SheetsAddOnManifest value)

Sheets add-on configuration.

.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;

Parameter
Name Description
value SheetsAddOnManifest
Returns
Type Description
AddOns.Builder

mergeSlides(SlidesAddOnManifest value)

public AddOns.Builder mergeSlides(SlidesAddOnManifest value)

Slides add-on configuration.

.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;

Parameter
Name Description
value SlidesAddOnManifest
Returns
Type Description
AddOns.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCalendar(CalendarAddOnManifest value)

public AddOns.Builder setCalendar(CalendarAddOnManifest value)

Calendar add-on configuration.

.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;

Parameter
Name Description
value CalendarAddOnManifest
Returns
Type Description
AddOns.Builder

setCalendar(CalendarAddOnManifest.Builder builderForValue)

public AddOns.Builder setCalendar(CalendarAddOnManifest.Builder builderForValue)

Calendar add-on configuration.

.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;

Parameter
Name Description
builderForValue CalendarAddOnManifest.Builder
Returns
Type Description
AddOns.Builder

setCommon(CommonAddOnManifest value)

public AddOns.Builder setCommon(CommonAddOnManifest value)

Configuration that is common across all Google Workspace Add-ons.

.google.apps.script.type.CommonAddOnManifest common = 1;

Parameter
Name Description
value CommonAddOnManifest
Returns
Type Description
AddOns.Builder

setCommon(CommonAddOnManifest.Builder builderForValue)

public AddOns.Builder setCommon(CommonAddOnManifest.Builder builderForValue)

Configuration that is common across all Google Workspace Add-ons.

.google.apps.script.type.CommonAddOnManifest common = 1;

Parameter
Name Description
builderForValue CommonAddOnManifest.Builder
Returns
Type Description
AddOns.Builder

setDocs(DocsAddOnManifest value)

public AddOns.Builder setDocs(DocsAddOnManifest value)

Docs add-on configuration.

.google.apps.script.type.docs.DocsAddOnManifest docs = 7;

Parameter
Name Description
value DocsAddOnManifest
Returns
Type Description
AddOns.Builder

setDocs(DocsAddOnManifest.Builder builderForValue)

public AddOns.Builder setDocs(DocsAddOnManifest.Builder builderForValue)

Docs add-on configuration.

.google.apps.script.type.docs.DocsAddOnManifest docs = 7;

Parameter
Name Description
builderForValue DocsAddOnManifest.Builder
Returns
Type Description
AddOns.Builder

setDrive(DriveAddOnManifest value)

public AddOns.Builder setDrive(DriveAddOnManifest value)

Drive add-on configuration.

.google.apps.script.type.drive.DriveAddOnManifest drive = 5;

Parameter
Name Description
value DriveAddOnManifest
Returns
Type Description
AddOns.Builder

setDrive(DriveAddOnManifest.Builder builderForValue)

public AddOns.Builder setDrive(DriveAddOnManifest.Builder builderForValue)

Drive add-on configuration.

.google.apps.script.type.drive.DriveAddOnManifest drive = 5;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGmail(GmailAddOnManifest value)

public AddOns.Builder setGmail(GmailAddOnManifest value)

Gmail add-on configuration.

.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;

Parameter
Name Description
value GmailAddOnManifest
Returns
Type Description
AddOns.Builder

setGmail(GmailAddOnManifest.Builder builderForValue)

public AddOns.Builder setGmail(GmailAddOnManifest.Builder builderForValue)

Gmail add-on configuration.

.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;

Parameter
Name Description
builderForValue GmailAddOnManifest.Builder
Returns
Type Description
AddOns.Builder

setHttpOptions(HttpOptions value)

public AddOns.Builder setHttpOptions(HttpOptions value)

Options for sending requests to add-on HTTP endpoints

.google.apps.script.type.HttpOptions http_options = 15;

Parameter
Name Description
value HttpOptions
Returns
Type Description
AddOns.Builder

setHttpOptions(HttpOptions.Builder builderForValue)

public AddOns.Builder setHttpOptions(HttpOptions.Builder builderForValue)

Options for sending requests to add-on HTTP endpoints

.google.apps.script.type.HttpOptions http_options = 15;

Parameter
Name Description
builderForValue HttpOptions.Builder
Returns
Type Description
AddOns.Builder

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

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

setSheets(SheetsAddOnManifest value)

public AddOns.Builder setSheets(SheetsAddOnManifest value)

Sheets add-on configuration.

.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;

Parameter
Name Description
value SheetsAddOnManifest
Returns
Type Description
AddOns.Builder

setSheets(SheetsAddOnManifest.Builder builderForValue)

public AddOns.Builder setSheets(SheetsAddOnManifest.Builder builderForValue)

Sheets add-on configuration.

.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;

Parameter
Name Description
builderForValue SheetsAddOnManifest.Builder
Returns
Type Description
AddOns.Builder

setSlides(SlidesAddOnManifest value)

public AddOns.Builder setSlides(SlidesAddOnManifest value)

Slides add-on configuration.

.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;

Parameter
Name Description
value SlidesAddOnManifest
Returns
Type Description
AddOns.Builder

setSlides(SlidesAddOnManifest.Builder builderForValue)

public AddOns.Builder setSlides(SlidesAddOnManifest.Builder builderForValue)

Slides add-on configuration.

.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;

Parameter
Name Description
builderForValue SlidesAddOnManifest.Builder
Returns
Type Description
AddOns.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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