/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/gsuiteaddons/v1/gsuiteaddons.proto

package com.google.cloud.gsuiteaddons.v1;

/**
 *
 *
 * <pre>
 * A Google Workspace Add-on configuration.
 * </pre>
 *
 * Protobuf type {@code google.cloud.gsuiteaddons.v1.AddOns}
 */
public final class AddOns extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.AddOns)
    AddOnsOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AddOns.newBuilder() to construct.
  private AddOns(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AddOns() {}

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new AddOns();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto
        .internal_static_google_cloud_gsuiteaddons_v1_AddOns_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto
        .internal_static_google_cloud_gsuiteaddons_v1_AddOns_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.gsuiteaddons.v1.AddOns.class,
            com.google.cloud.gsuiteaddons.v1.AddOns.Builder.class);
  }

  public static final int COMMON_FIELD_NUMBER = 1;
  private com.google.apps.script.type.CommonAddOnManifest common_;
  /**
   *
   *
   * <pre>
   * Configuration that is common across all Google Workspace Add-ons.
   * </pre>
   *
   * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
   *
   * @return Whether the common field is set.
   */
  @java.lang.Override
  public boolean hasCommon() {
    return common_ != null;
  }
  /**
   *
   *
   * <pre>
   * Configuration that is common across all Google Workspace Add-ons.
   * </pre>
   *
   * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
   *
   * @return The common.
   */
  @java.lang.Override
  public com.google.apps.script.type.CommonAddOnManifest getCommon() {
    return common_ == null
        ? com.google.apps.script.type.CommonAddOnManifest.getDefaultInstance()
        : common_;
  }
  /**
   *
   *
   * <pre>
   * Configuration that is common across all Google Workspace Add-ons.
   * </pre>
   *
   * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
   */
  @java.lang.Override
  public com.google.apps.script.type.CommonAddOnManifestOrBuilder getCommonOrBuilder() {
    return common_ == null
        ? com.google.apps.script.type.CommonAddOnManifest.getDefaultInstance()
        : common_;
  }

  public static final int GMAIL_FIELD_NUMBER = 2;
  private com.google.apps.script.type.gmail.GmailAddOnManifest gmail_;
  /**
   *
   *
   * <pre>
   * Gmail add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
   *
   * @return Whether the gmail field is set.
   */
  @java.lang.Override
  public boolean hasGmail() {
    return gmail_ != null;
  }
  /**
   *
   *
   * <pre>
   * Gmail add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
   *
   * @return The gmail.
   */
  @java.lang.Override
  public com.google.apps.script.type.gmail.GmailAddOnManifest getGmail() {
    return gmail_ == null
        ? com.google.apps.script.type.gmail.GmailAddOnManifest.getDefaultInstance()
        : gmail_;
  }
  /**
   *
   *
   * <pre>
   * Gmail add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
   */
  @java.lang.Override
  public com.google.apps.script.type.gmail.GmailAddOnManifestOrBuilder getGmailOrBuilder() {
    return gmail_ == null
        ? com.google.apps.script.type.gmail.GmailAddOnManifest.getDefaultInstance()
        : gmail_;
  }

  public static final int DRIVE_FIELD_NUMBER = 5;
  private com.google.apps.script.type.drive.DriveAddOnManifest drive_;
  /**
   *
   *
   * <pre>
   * Drive add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
   *
   * @return Whether the drive field is set.
   */
  @java.lang.Override
  public boolean hasDrive() {
    return drive_ != null;
  }
  /**
   *
   *
   * <pre>
   * Drive add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
   *
   * @return The drive.
   */
  @java.lang.Override
  public com.google.apps.script.type.drive.DriveAddOnManifest getDrive() {
    return drive_ == null
        ? com.google.apps.script.type.drive.DriveAddOnManifest.getDefaultInstance()
        : drive_;
  }
  /**
   *
   *
   * <pre>
   * Drive add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
   */
  @java.lang.Override
  public com.google.apps.script.type.drive.DriveAddOnManifestOrBuilder getDriveOrBuilder() {
    return drive_ == null
        ? com.google.apps.script.type.drive.DriveAddOnManifest.getDefaultInstance()
        : drive_;
  }

  public static final int CALENDAR_FIELD_NUMBER = 6;
  private com.google.apps.script.type.calendar.CalendarAddOnManifest calendar_;
  /**
   *
   *
   * <pre>
   * Calendar add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
   *
   * @return Whether the calendar field is set.
   */
  @java.lang.Override
  public boolean hasCalendar() {
    return calendar_ != null;
  }
  /**
   *
   *
   * <pre>
   * Calendar add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
   *
   * @return The calendar.
   */
  @java.lang.Override
  public com.google.apps.script.type.calendar.CalendarAddOnManifest getCalendar() {
    return calendar_ == null
        ? com.google.apps.script.type.calendar.CalendarAddOnManifest.getDefaultInstance()
        : calendar_;
  }
  /**
   *
   *
   * <pre>
   * Calendar add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
   */
  @java.lang.Override
  public com.google.apps.script.type.calendar.CalendarAddOnManifestOrBuilder
      getCalendarOrBuilder() {
    return calendar_ == null
        ? com.google.apps.script.type.calendar.CalendarAddOnManifest.getDefaultInstance()
        : calendar_;
  }

  public static final int DOCS_FIELD_NUMBER = 7;
  private com.google.apps.script.type.docs.DocsAddOnManifest docs_;
  /**
   *
   *
   * <pre>
   * Docs add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
   *
   * @return Whether the docs field is set.
   */
  @java.lang.Override
  public boolean hasDocs() {
    return docs_ != null;
  }
  /**
   *
   *
   * <pre>
   * Docs add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
   *
   * @return The docs.
   */
  @java.lang.Override
  public com.google.apps.script.type.docs.DocsAddOnManifest getDocs() {
    return docs_ == null
        ? com.google.apps.script.type.docs.DocsAddOnManifest.getDefaultInstance()
        : docs_;
  }
  /**
   *
   *
   * <pre>
   * Docs add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
   */
  @java.lang.Override
  public com.google.apps.script.type.docs.DocsAddOnManifestOrBuilder getDocsOrBuilder() {
    return docs_ == null
        ? com.google.apps.script.type.docs.DocsAddOnManifest.getDefaultInstance()
        : docs_;
  }

  public static final int SHEETS_FIELD_NUMBER = 8;
  private com.google.apps.script.type.sheets.SheetsAddOnManifest sheets_;
  /**
   *
   *
   * <pre>
   * Sheets add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
   *
   * @return Whether the sheets field is set.
   */
  @java.lang.Override
  public boolean hasSheets() {
    return sheets_ != null;
  }
  /**
   *
   *
   * <pre>
   * Sheets add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
   *
   * @return The sheets.
   */
  @java.lang.Override
  public com.google.apps.script.type.sheets.SheetsAddOnManifest getSheets() {
    return sheets_ == null
        ? com.google.apps.script.type.sheets.SheetsAddOnManifest.getDefaultInstance()
        : sheets_;
  }
  /**
   *
   *
   * <pre>
   * Sheets add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
   */
  @java.lang.Override
  public com.google.apps.script.type.sheets.SheetsAddOnManifestOrBuilder getSheetsOrBuilder() {
    return sheets_ == null
        ? com.google.apps.script.type.sheets.SheetsAddOnManifest.getDefaultInstance()
        : sheets_;
  }

  public static final int SLIDES_FIELD_NUMBER = 10;
  private com.google.apps.script.type.slides.SlidesAddOnManifest slides_;
  /**
   *
   *
   * <pre>
   * Slides add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
   *
   * @return Whether the slides field is set.
   */
  @java.lang.Override
  public boolean hasSlides() {
    return slides_ != null;
  }
  /**
   *
   *
   * <pre>
   * Slides add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
   *
   * @return The slides.
   */
  @java.lang.Override
  public com.google.apps.script.type.slides.SlidesAddOnManifest getSlides() {
    return slides_ == null
        ? com.google.apps.script.type.slides.SlidesAddOnManifest.getDefaultInstance()
        : slides_;
  }
  /**
   *
   *
   * <pre>
   * Slides add-on configuration.
   * </pre>
   *
   * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
   */
  @java.lang.Override
  public com.google.apps.script.type.slides.SlidesAddOnManifestOrBuilder getSlidesOrBuilder() {
    return slides_ == null
        ? com.google.apps.script.type.slides.SlidesAddOnManifest.getDefaultInstance()
        : slides_;
  }

  public static final int HTTP_OPTIONS_FIELD_NUMBER = 15;
  private com.google.apps.script.type.HttpOptions httpOptions_;
  /**
   *
   *
   * <pre>
   * Options for sending requests to add-on HTTP endpoints
   * </pre>
   *
   * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
   *
   * @return Whether the httpOptions field is set.
   */
  @java.lang.Override
  public boolean hasHttpOptions() {
    return httpOptions_ != null;
  }
  /**
   *
   *
   * <pre>
   * Options for sending requests to add-on HTTP endpoints
   * </pre>
   *
   * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
   *
   * @return The httpOptions.
   */
  @java.lang.Override
  public com.google.apps.script.type.HttpOptions getHttpOptions() {
    return httpOptions_ == null
        ? com.google.apps.script.type.HttpOptions.getDefaultInstance()
        : httpOptions_;
  }
  /**
   *
   *
   * <pre>
   * Options for sending requests to add-on HTTP endpoints
   * </pre>
   *
   * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
   */
  @java.lang.Override
  public com.google.apps.script.type.HttpOptionsOrBuilder getHttpOptionsOrBuilder() {
    return httpOptions_ == null
        ? com.google.apps.script.type.HttpOptions.getDefaultInstance()
        : httpOptions_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (common_ != null) {
      output.writeMessage(1, getCommon());
    }
    if (gmail_ != null) {
      output.writeMessage(2, getGmail());
    }
    if (drive_ != null) {
      output.writeMessage(5, getDrive());
    }
    if (calendar_ != null) {
      output.writeMessage(6, getCalendar());
    }
    if (docs_ != null) {
      output.writeMessage(7, getDocs());
    }
    if (sheets_ != null) {
      output.writeMessage(8, getSheets());
    }
    if (slides_ != null) {
      output.writeMessage(10, getSlides());
    }
    if (httpOptions_ != null) {
      output.writeMessage(15, getHttpOptions());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (common_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon());
    }
    if (gmail_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGmail());
    }
    if (drive_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDrive());
    }
    if (calendar_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCalendar());
    }
    if (docs_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDocs());
    }
    if (sheets_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSheets());
    }
    if (slides_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSlides());
    }
    if (httpOptions_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getHttpOptions());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.gsuiteaddons.v1.AddOns)) {
      return super.equals(obj);
    }
    com.google.cloud.gsuiteaddons.v1.AddOns other = (com.google.cloud.gsuiteaddons.v1.AddOns) obj;

    if (hasCommon() != other.hasCommon()) return false;
    if (hasCommon()) {
      if (!getCommon().equals(other.getCommon())) return false;
    }
    if (hasGmail() != other.hasGmail()) return false;
    if (hasGmail()) {
      if (!getGmail().equals(other.getGmail())) return false;
    }
    if (hasDrive() != other.hasDrive()) return false;
    if (hasDrive()) {
      if (!getDrive().equals(other.getDrive())) return false;
    }
    if (hasCalendar() != other.hasCalendar()) return false;
    if (hasCalendar()) {
      if (!getCalendar().equals(other.getCalendar())) return false;
    }
    if (hasDocs() != other.hasDocs()) return false;
    if (hasDocs()) {
      if (!getDocs().equals(other.getDocs())) return false;
    }
    if (hasSheets() != other.hasSheets()) return false;
    if (hasSheets()) {
      if (!getSheets().equals(other.getSheets())) return false;
    }
    if (hasSlides() != other.hasSlides()) return false;
    if (hasSlides()) {
      if (!getSlides().equals(other.getSlides())) return false;
    }
    if (hasHttpOptions() != other.hasHttpOptions()) return false;
    if (hasHttpOptions()) {
      if (!getHttpOptions().equals(other.getHttpOptions())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasCommon()) {
      hash = (37 * hash) + COMMON_FIELD_NUMBER;
      hash = (53 * hash) + getCommon().hashCode();
    }
    if (hasGmail()) {
      hash = (37 * hash) + GMAIL_FIELD_NUMBER;
      hash = (53 * hash) + getGmail().hashCode();
    }
    if (hasDrive()) {
      hash = (37 * hash) + DRIVE_FIELD_NUMBER;
      hash = (53 * hash) + getDrive().hashCode();
    }
    if (hasCalendar()) {
      hash = (37 * hash) + CALENDAR_FIELD_NUMBER;
      hash = (53 * hash) + getCalendar().hashCode();
    }
    if (hasDocs()) {
      hash = (37 * hash) + DOCS_FIELD_NUMBER;
      hash = (53 * hash) + getDocs().hashCode();
    }
    if (hasSheets()) {
      hash = (37 * hash) + SHEETS_FIELD_NUMBER;
      hash = (53 * hash) + getSheets().hashCode();
    }
    if (hasSlides()) {
      hash = (37 * hash) + SLIDES_FIELD_NUMBER;
      hash = (53 * hash) + getSlides().hashCode();
    }
    if (hasHttpOptions()) {
      hash = (37 * hash) + HTTP_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getHttpOptions().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.gsuiteaddons.v1.AddOns prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * A Google Workspace Add-on configuration.
   * </pre>
   *
   * Protobuf type {@code google.cloud.gsuiteaddons.v1.AddOns}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.AddOns)
      com.google.cloud.gsuiteaddons.v1.AddOnsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto
          .internal_static_google_cloud_gsuiteaddons_v1_AddOns_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto
          .internal_static_google_cloud_gsuiteaddons_v1_AddOns_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.gsuiteaddons.v1.AddOns.class,
              com.google.cloud.gsuiteaddons.v1.AddOns.Builder.class);
    }

    // Construct using com.google.cloud.gsuiteaddons.v1.AddOns.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      gmail_ = null;
      if (gmailBuilder_ != null) {
        gmailBuilder_.dispose();
        gmailBuilder_ = null;
      }
      drive_ = null;
      if (driveBuilder_ != null) {
        driveBuilder_.dispose();
        driveBuilder_ = null;
      }
      calendar_ = null;
      if (calendarBuilder_ != null) {
        calendarBuilder_.dispose();
        calendarBuilder_ = null;
      }
      docs_ = null;
      if (docsBuilder_ != null) {
        docsBuilder_.dispose();
        docsBuilder_ = null;
      }
      sheets_ = null;
      if (sheetsBuilder_ != null) {
        sheetsBuilder_.dispose();
        sheetsBuilder_ = null;
      }
      slides_ = null;
      if (slidesBuilder_ != null) {
        slidesBuilder_.dispose();
        slidesBuilder_ = null;
      }
      httpOptions_ = null;
      if (httpOptionsBuilder_ != null) {
        httpOptionsBuilder_.dispose();
        httpOptionsBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto
          .internal_static_google_cloud_gsuiteaddons_v1_AddOns_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.gsuiteaddons.v1.AddOns getDefaultInstanceForType() {
      return com.google.cloud.gsuiteaddons.v1.AddOns.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.gsuiteaddons.v1.AddOns build() {
      com.google.cloud.gsuiteaddons.v1.AddOns result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.gsuiteaddons.v1.AddOns buildPartial() {
      com.google.cloud.gsuiteaddons.v1.AddOns result =
          new com.google.cloud.gsuiteaddons.v1.AddOns(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.gsuiteaddons.v1.AddOns result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.gmail_ = gmailBuilder_ == null ? gmail_ : gmailBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.drive_ = driveBuilder_ == null ? drive_ : driveBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.calendar_ = calendarBuilder_ == null ? calendar_ : calendarBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.docs_ = docsBuilder_ == null ? docs_ : docsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.sheets_ = sheetsBuilder_ == null ? sheets_ : sheetsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.slides_ = slidesBuilder_ == null ? slides_ : slidesBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.httpOptions_ =
            httpOptionsBuilder_ == null ? httpOptions_ : httpOptionsBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.gsuiteaddons.v1.AddOns) {
        return mergeFrom((com.google.cloud.gsuiteaddons.v1.AddOns) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.AddOns other) {
      if (other == com.google.cloud.gsuiteaddons.v1.AddOns.getDefaultInstance()) return this;
      if (other.hasCommon()) {
        mergeCommon(other.getCommon());
      }
      if (other.hasGmail()) {
        mergeGmail(other.getGmail());
      }
      if (other.hasDrive()) {
        mergeDrive(other.getDrive());
      }
      if (other.hasCalendar()) {
        mergeCalendar(other.getCalendar());
      }
      if (other.hasDocs()) {
        mergeDocs(other.getDocs());
      }
      if (other.hasSheets()) {
        mergeSheets(other.getSheets());
      }
      if (other.hasSlides()) {
        mergeSlides(other.getSlides());
      }
      if (other.hasHttpOptions()) {
        mergeHttpOptions(other.getHttpOptions());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getGmailFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 42:
              {
                input.readMessage(getDriveFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 42
            case 50:
              {
                input.readMessage(getCalendarFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 50
            case 58:
              {
                input.readMessage(getDocsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 58
            case 66:
              {
                input.readMessage(getSheetsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 66
            case 82:
              {
                input.readMessage(getSlidesFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 82
            case 122:
              {
                input.readMessage(getHttpOptionsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 122
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private com.google.apps.script.type.CommonAddOnManifest common_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.CommonAddOnManifest,
            com.google.apps.script.type.CommonAddOnManifest.Builder,
            com.google.apps.script.type.CommonAddOnManifestOrBuilder>
        commonBuilder_;
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     *
     * @return Whether the common field is set.
     */
    public boolean hasCommon() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     *
     * @return The common.
     */
    public com.google.apps.script.type.CommonAddOnManifest getCommon() {
      if (commonBuilder_ == null) {
        return common_ == null
            ? com.google.apps.script.type.CommonAddOnManifest.getDefaultInstance()
            : common_;
      } else {
        return commonBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     */
    public Builder setCommon(com.google.apps.script.type.CommonAddOnManifest value) {
      if (commonBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        common_ = value;
      } else {
        commonBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     */
    public Builder setCommon(
        com.google.apps.script.type.CommonAddOnManifest.Builder builderForValue) {
      if (commonBuilder_ == null) {
        common_ = builderForValue.build();
      } else {
        commonBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     */
    public Builder mergeCommon(com.google.apps.script.type.CommonAddOnManifest value) {
      if (commonBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && common_ != null
            && common_ != com.google.apps.script.type.CommonAddOnManifest.getDefaultInstance()) {
          getCommonBuilder().mergeFrom(value);
        } else {
          common_ = value;
        }
      } else {
        commonBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     */
    public Builder clearCommon() {
      bitField0_ = (bitField0_ & ~0x00000001);
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     */
    public com.google.apps.script.type.CommonAddOnManifest.Builder getCommonBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getCommonFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     */
    public com.google.apps.script.type.CommonAddOnManifestOrBuilder getCommonOrBuilder() {
      if (commonBuilder_ != null) {
        return commonBuilder_.getMessageOrBuilder();
      } else {
        return common_ == null
            ? com.google.apps.script.type.CommonAddOnManifest.getDefaultInstance()
            : common_;
      }
    }
    /**
     *
     *
     * <pre>
     * Configuration that is common across all Google Workspace Add-ons.
     * </pre>
     *
     * <code>.google.apps.script.type.CommonAddOnManifest common = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.CommonAddOnManifest,
            com.google.apps.script.type.CommonAddOnManifest.Builder,
            com.google.apps.script.type.CommonAddOnManifestOrBuilder>
        getCommonFieldBuilder() {
      if (commonBuilder_ == null) {
        commonBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.apps.script.type.CommonAddOnManifest,
                com.google.apps.script.type.CommonAddOnManifest.Builder,
                com.google.apps.script.type.CommonAddOnManifestOrBuilder>(
                getCommon(), getParentForChildren(), isClean());
        common_ = null;
      }
      return commonBuilder_;
    }

    private com.google.apps.script.type.gmail.GmailAddOnManifest gmail_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.gmail.GmailAddOnManifest,
            com.google.apps.script.type.gmail.GmailAddOnManifest.Builder,
            com.google.apps.script.type.gmail.GmailAddOnManifestOrBuilder>
        gmailBuilder_;
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     *
     * @return Whether the gmail field is set.
     */
    public boolean hasGmail() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     *
     * @return The gmail.
     */
    public com.google.apps.script.type.gmail.GmailAddOnManifest getGmail() {
      if (gmailBuilder_ == null) {
        return gmail_ == null
            ? com.google.apps.script.type.gmail.GmailAddOnManifest.getDefaultInstance()
            : gmail_;
      } else {
        return gmailBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     */
    public Builder setGmail(com.google.apps.script.type.gmail.GmailAddOnManifest value) {
      if (gmailBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        gmail_ = value;
      } else {
        gmailBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     */
    public Builder setGmail(
        com.google.apps.script.type.gmail.GmailAddOnManifest.Builder builderForValue) {
      if (gmailBuilder_ == null) {
        gmail_ = builderForValue.build();
      } else {
        gmailBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     */
    public Builder mergeGmail(com.google.apps.script.type.gmail.GmailAddOnManifest value) {
      if (gmailBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && gmail_ != null
            && gmail_
                != com.google.apps.script.type.gmail.GmailAddOnManifest.getDefaultInstance()) {
          getGmailBuilder().mergeFrom(value);
        } else {
          gmail_ = value;
        }
      } else {
        gmailBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     */
    public Builder clearGmail() {
      bitField0_ = (bitField0_ & ~0x00000002);
      gmail_ = null;
      if (gmailBuilder_ != null) {
        gmailBuilder_.dispose();
        gmailBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     */
    public com.google.apps.script.type.gmail.GmailAddOnManifest.Builder getGmailBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getGmailFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     */
    public com.google.apps.script.type.gmail.GmailAddOnManifestOrBuilder getGmailOrBuilder() {
      if (gmailBuilder_ != null) {
        return gmailBuilder_.getMessageOrBuilder();
      } else {
        return gmail_ == null
            ? com.google.apps.script.type.gmail.GmailAddOnManifest.getDefaultInstance()
            : gmail_;
      }
    }
    /**
     *
     *
     * <pre>
     * Gmail add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.gmail.GmailAddOnManifest,
            com.google.apps.script.type.gmail.GmailAddOnManifest.Builder,
            com.google.apps.script.type.gmail.GmailAddOnManifestOrBuilder>
        getGmailFieldBuilder() {
      if (gmailBuilder_ == null) {
        gmailBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.apps.script.type.gmail.GmailAddOnManifest,
                com.google.apps.script.type.gmail.GmailAddOnManifest.Builder,
                com.google.apps.script.type.gmail.GmailAddOnManifestOrBuilder>(
                getGmail(), getParentForChildren(), isClean());
        gmail_ = null;
      }
      return gmailBuilder_;
    }

    private com.google.apps.script.type.drive.DriveAddOnManifest drive_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.drive.DriveAddOnManifest,
            com.google.apps.script.type.drive.DriveAddOnManifest.Builder,
            com.google.apps.script.type.drive.DriveAddOnManifestOrBuilder>
        driveBuilder_;
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     *
     * @return Whether the drive field is set.
     */
    public boolean hasDrive() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     *
     * @return The drive.
     */
    public com.google.apps.script.type.drive.DriveAddOnManifest getDrive() {
      if (driveBuilder_ == null) {
        return drive_ == null
            ? com.google.apps.script.type.drive.DriveAddOnManifest.getDefaultInstance()
            : drive_;
      } else {
        return driveBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     */
    public Builder setDrive(com.google.apps.script.type.drive.DriveAddOnManifest value) {
      if (driveBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        drive_ = value;
      } else {
        driveBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     */
    public Builder setDrive(
        com.google.apps.script.type.drive.DriveAddOnManifest.Builder builderForValue) {
      if (driveBuilder_ == null) {
        drive_ = builderForValue.build();
      } else {
        driveBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     */
    public Builder mergeDrive(com.google.apps.script.type.drive.DriveAddOnManifest value) {
      if (driveBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && drive_ != null
            && drive_
                != com.google.apps.script.type.drive.DriveAddOnManifest.getDefaultInstance()) {
          getDriveBuilder().mergeFrom(value);
        } else {
          drive_ = value;
        }
      } else {
        driveBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     */
    public Builder clearDrive() {
      bitField0_ = (bitField0_ & ~0x00000004);
      drive_ = null;
      if (driveBuilder_ != null) {
        driveBuilder_.dispose();
        driveBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     */
    public com.google.apps.script.type.drive.DriveAddOnManifest.Builder getDriveBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getDriveFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     */
    public com.google.apps.script.type.drive.DriveAddOnManifestOrBuilder getDriveOrBuilder() {
      if (driveBuilder_ != null) {
        return driveBuilder_.getMessageOrBuilder();
      } else {
        return drive_ == null
            ? com.google.apps.script.type.drive.DriveAddOnManifest.getDefaultInstance()
            : drive_;
      }
    }
    /**
     *
     *
     * <pre>
     * Drive add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.drive.DriveAddOnManifest drive = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.drive.DriveAddOnManifest,
            com.google.apps.script.type.drive.DriveAddOnManifest.Builder,
            com.google.apps.script.type.drive.DriveAddOnManifestOrBuilder>
        getDriveFieldBuilder() {
      if (driveBuilder_ == null) {
        driveBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.apps.script.type.drive.DriveAddOnManifest,
                com.google.apps.script.type.drive.DriveAddOnManifest.Builder,
                com.google.apps.script.type.drive.DriveAddOnManifestOrBuilder>(
                getDrive(), getParentForChildren(), isClean());
        drive_ = null;
      }
      return driveBuilder_;
    }

    private com.google.apps.script.type.calendar.CalendarAddOnManifest calendar_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.calendar.CalendarAddOnManifest,
            com.google.apps.script.type.calendar.CalendarAddOnManifest.Builder,
            com.google.apps.script.type.calendar.CalendarAddOnManifestOrBuilder>
        calendarBuilder_;
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     *
     * @return Whether the calendar field is set.
     */
    public boolean hasCalendar() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     *
     * @return The calendar.
     */
    public com.google.apps.script.type.calendar.CalendarAddOnManifest getCalendar() {
      if (calendarBuilder_ == null) {
        return calendar_ == null
            ? com.google.apps.script.type.calendar.CalendarAddOnManifest.getDefaultInstance()
            : calendar_;
      } else {
        return calendarBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     */
    public Builder setCalendar(com.google.apps.script.type.calendar.CalendarAddOnManifest value) {
      if (calendarBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        calendar_ = value;
      } else {
        calendarBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     */
    public Builder setCalendar(
        com.google.apps.script.type.calendar.CalendarAddOnManifest.Builder builderForValue) {
      if (calendarBuilder_ == null) {
        calendar_ = builderForValue.build();
      } else {
        calendarBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     */
    public Builder mergeCalendar(com.google.apps.script.type.calendar.CalendarAddOnManifest value) {
      if (calendarBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && calendar_ != null
            && calendar_
                != com.google.apps.script.type.calendar.CalendarAddOnManifest
                    .getDefaultInstance()) {
          getCalendarBuilder().mergeFrom(value);
        } else {
          calendar_ = value;
        }
      } else {
        calendarBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     */
    public Builder clearCalendar() {
      bitField0_ = (bitField0_ & ~0x00000008);
      calendar_ = null;
      if (calendarBuilder_ != null) {
        calendarBuilder_.dispose();
        calendarBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     */
    public com.google.apps.script.type.calendar.CalendarAddOnManifest.Builder getCalendarBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getCalendarFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     */
    public com.google.apps.script.type.calendar.CalendarAddOnManifestOrBuilder
        getCalendarOrBuilder() {
      if (calendarBuilder_ != null) {
        return calendarBuilder_.getMessageOrBuilder();
      } else {
        return calendar_ == null
            ? com.google.apps.script.type.calendar.CalendarAddOnManifest.getDefaultInstance()
            : calendar_;
      }
    }
    /**
     *
     *
     * <pre>
     * Calendar add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.calendar.CalendarAddOnManifest,
            com.google.apps.script.type.calendar.CalendarAddOnManifest.Builder,
            com.google.apps.script.type.calendar.CalendarAddOnManifestOrBuilder>
        getCalendarFieldBuilder() {
      if (calendarBuilder_ == null) {
        calendarBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.apps.script.type.calendar.CalendarAddOnManifest,
                com.google.apps.script.type.calendar.CalendarAddOnManifest.Builder,
                com.google.apps.script.type.calendar.CalendarAddOnManifestOrBuilder>(
                getCalendar(), getParentForChildren(), isClean());
        calendar_ = null;
      }
      return calendarBuilder_;
    }

    private com.google.apps.script.type.docs.DocsAddOnManifest docs_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.docs.DocsAddOnManifest,
            com.google.apps.script.type.docs.DocsAddOnManifest.Builder,
            com.google.apps.script.type.docs.DocsAddOnManifestOrBuilder>
        docsBuilder_;
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     *
     * @return Whether the docs field is set.
     */
    public boolean hasDocs() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     *
     * @return The docs.
     */
    public com.google.apps.script.type.docs.DocsAddOnManifest getDocs() {
      if (docsBuilder_ == null) {
        return docs_ == null
            ? com.google.apps.script.type.docs.DocsAddOnManifest.getDefaultInstance()
            : docs_;
      } else {
        return docsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     */
    public Builder setDocs(com.google.apps.script.type.docs.DocsAddOnManifest value) {
      if (docsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        docs_ = value;
      } else {
        docsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     */
    public Builder setDocs(
        com.google.apps.script.type.docs.DocsAddOnManifest.Builder builderForValue) {
      if (docsBuilder_ == null) {
        docs_ = builderForValue.build();
      } else {
        docsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     */
    public Builder mergeDocs(com.google.apps.script.type.docs.DocsAddOnManifest value) {
      if (docsBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)
            && docs_ != null
            && docs_ != com.google.apps.script.type.docs.DocsAddOnManifest.getDefaultInstance()) {
          getDocsBuilder().mergeFrom(value);
        } else {
          docs_ = value;
        }
      } else {
        docsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     */
    public Builder clearDocs() {
      bitField0_ = (bitField0_ & ~0x00000010);
      docs_ = null;
      if (docsBuilder_ != null) {
        docsBuilder_.dispose();
        docsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     */
    public com.google.apps.script.type.docs.DocsAddOnManifest.Builder getDocsBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getDocsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     */
    public com.google.apps.script.type.docs.DocsAddOnManifestOrBuilder getDocsOrBuilder() {
      if (docsBuilder_ != null) {
        return docsBuilder_.getMessageOrBuilder();
      } else {
        return docs_ == null
            ? com.google.apps.script.type.docs.DocsAddOnManifest.getDefaultInstance()
            : docs_;
      }
    }
    /**
     *
     *
     * <pre>
     * Docs add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.docs.DocsAddOnManifest docs = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.docs.DocsAddOnManifest,
            com.google.apps.script.type.docs.DocsAddOnManifest.Builder,
            com.google.apps.script.type.docs.DocsAddOnManifestOrBuilder>
        getDocsFieldBuilder() {
      if (docsBuilder_ == null) {
        docsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.apps.script.type.docs.DocsAddOnManifest,
                com.google.apps.script.type.docs.DocsAddOnManifest.Builder,
                com.google.apps.script.type.docs.DocsAddOnManifestOrBuilder>(
                getDocs(), getParentForChildren(), isClean());
        docs_ = null;
      }
      return docsBuilder_;
    }

    private com.google.apps.script.type.sheets.SheetsAddOnManifest sheets_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.sheets.SheetsAddOnManifest,
            com.google.apps.script.type.sheets.SheetsAddOnManifest.Builder,
            com.google.apps.script.type.sheets.SheetsAddOnManifestOrBuilder>
        sheetsBuilder_;
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     *
     * @return Whether the sheets field is set.
     */
    public boolean hasSheets() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     *
     * @return The sheets.
     */
    public com.google.apps.script.type.sheets.SheetsAddOnManifest getSheets() {
      if (sheetsBuilder_ == null) {
        return sheets_ == null
            ? com.google.apps.script.type.sheets.SheetsAddOnManifest.getDefaultInstance()
            : sheets_;
      } else {
        return sheetsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     */
    public Builder setSheets(com.google.apps.script.type.sheets.SheetsAddOnManifest value) {
      if (sheetsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sheets_ = value;
      } else {
        sheetsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     */
    public Builder setSheets(
        com.google.apps.script.type.sheets.SheetsAddOnManifest.Builder builderForValue) {
      if (sheetsBuilder_ == null) {
        sheets_ = builderForValue.build();
      } else {
        sheetsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     */
    public Builder mergeSheets(com.google.apps.script.type.sheets.SheetsAddOnManifest value) {
      if (sheetsBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0)
            && sheets_ != null
            && sheets_
                != com.google.apps.script.type.sheets.SheetsAddOnManifest.getDefaultInstance()) {
          getSheetsBuilder().mergeFrom(value);
        } else {
          sheets_ = value;
        }
      } else {
        sheetsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     */
    public Builder clearSheets() {
      bitField0_ = (bitField0_ & ~0x00000020);
      sheets_ = null;
      if (sheetsBuilder_ != null) {
        sheetsBuilder_.dispose();
        sheetsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     */
    public com.google.apps.script.type.sheets.SheetsAddOnManifest.Builder getSheetsBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getSheetsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     */
    public com.google.apps.script.type.sheets.SheetsAddOnManifestOrBuilder getSheetsOrBuilder() {
      if (sheetsBuilder_ != null) {
        return sheetsBuilder_.getMessageOrBuilder();
      } else {
        return sheets_ == null
            ? com.google.apps.script.type.sheets.SheetsAddOnManifest.getDefaultInstance()
            : sheets_;
      }
    }
    /**
     *
     *
     * <pre>
     * Sheets add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.sheets.SheetsAddOnManifest,
            com.google.apps.script.type.sheets.SheetsAddOnManifest.Builder,
            com.google.apps.script.type.sheets.SheetsAddOnManifestOrBuilder>
        getSheetsFieldBuilder() {
      if (sheetsBuilder_ == null) {
        sheetsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.apps.script.type.sheets.SheetsAddOnManifest,
                com.google.apps.script.type.sheets.SheetsAddOnManifest.Builder,
                com.google.apps.script.type.sheets.SheetsAddOnManifestOrBuilder>(
                getSheets(), getParentForChildren(), isClean());
        sheets_ = null;
      }
      return sheetsBuilder_;
    }

    private com.google.apps.script.type.slides.SlidesAddOnManifest slides_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.slides.SlidesAddOnManifest,
            com.google.apps.script.type.slides.SlidesAddOnManifest.Builder,
            com.google.apps.script.type.slides.SlidesAddOnManifestOrBuilder>
        slidesBuilder_;
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     *
     * @return Whether the slides field is set.
     */
    public boolean hasSlides() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     *
     * @return The slides.
     */
    public com.google.apps.script.type.slides.SlidesAddOnManifest getSlides() {
      if (slidesBuilder_ == null) {
        return slides_ == null
            ? com.google.apps.script.type.slides.SlidesAddOnManifest.getDefaultInstance()
            : slides_;
      } else {
        return slidesBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     */
    public Builder setSlides(com.google.apps.script.type.slides.SlidesAddOnManifest value) {
      if (slidesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        slides_ = value;
      } else {
        slidesBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     */
    public Builder setSlides(
        com.google.apps.script.type.slides.SlidesAddOnManifest.Builder builderForValue) {
      if (slidesBuilder_ == null) {
        slides_ = builderForValue.build();
      } else {
        slidesBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     */
    public Builder mergeSlides(com.google.apps.script.type.slides.SlidesAddOnManifest value) {
      if (slidesBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && slides_ != null
            && slides_
                != com.google.apps.script.type.slides.SlidesAddOnManifest.getDefaultInstance()) {
          getSlidesBuilder().mergeFrom(value);
        } else {
          slides_ = value;
        }
      } else {
        slidesBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     */
    public Builder clearSlides() {
      bitField0_ = (bitField0_ & ~0x00000040);
      slides_ = null;
      if (slidesBuilder_ != null) {
        slidesBuilder_.dispose();
        slidesBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     */
    public com.google.apps.script.type.slides.SlidesAddOnManifest.Builder getSlidesBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getSlidesFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     */
    public com.google.apps.script.type.slides.SlidesAddOnManifestOrBuilder getSlidesOrBuilder() {
      if (slidesBuilder_ != null) {
        return slidesBuilder_.getMessageOrBuilder();
      } else {
        return slides_ == null
            ? com.google.apps.script.type.slides.SlidesAddOnManifest.getDefaultInstance()
            : slides_;
      }
    }
    /**
     *
     *
     * <pre>
     * Slides add-on configuration.
     * </pre>
     *
     * <code>.google.apps.script.type.slides.SlidesAddOnManifest slides = 10;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.slides.SlidesAddOnManifest,
            com.google.apps.script.type.slides.SlidesAddOnManifest.Builder,
            com.google.apps.script.type.slides.SlidesAddOnManifestOrBuilder>
        getSlidesFieldBuilder() {
      if (slidesBuilder_ == null) {
        slidesBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.apps.script.type.slides.SlidesAddOnManifest,
                com.google.apps.script.type.slides.SlidesAddOnManifest.Builder,
                com.google.apps.script.type.slides.SlidesAddOnManifestOrBuilder>(
                getSlides(), getParentForChildren(), isClean());
        slides_ = null;
      }
      return slidesBuilder_;
    }

    private com.google.apps.script.type.HttpOptions httpOptions_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.HttpOptions,
            com.google.apps.script.type.HttpOptions.Builder,
            com.google.apps.script.type.HttpOptionsOrBuilder>
        httpOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     *
     * @return Whether the httpOptions field is set.
     */
    public boolean hasHttpOptions() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     *
     * @return The httpOptions.
     */
    public com.google.apps.script.type.HttpOptions getHttpOptions() {
      if (httpOptionsBuilder_ == null) {
        return httpOptions_ == null
            ? com.google.apps.script.type.HttpOptions.getDefaultInstance()
            : httpOptions_;
      } else {
        return httpOptionsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     */
    public Builder setHttpOptions(com.google.apps.script.type.HttpOptions value) {
      if (httpOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        httpOptions_ = value;
      } else {
        httpOptionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     */
    public Builder setHttpOptions(com.google.apps.script.type.HttpOptions.Builder builderForValue) {
      if (httpOptionsBuilder_ == null) {
        httpOptions_ = builderForValue.build();
      } else {
        httpOptionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     */
    public Builder mergeHttpOptions(com.google.apps.script.type.HttpOptions value) {
      if (httpOptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)
            && httpOptions_ != null
            && httpOptions_ != com.google.apps.script.type.HttpOptions.getDefaultInstance()) {
          getHttpOptionsBuilder().mergeFrom(value);
        } else {
          httpOptions_ = value;
        }
      } else {
        httpOptionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     */
    public Builder clearHttpOptions() {
      bitField0_ = (bitField0_ & ~0x00000080);
      httpOptions_ = null;
      if (httpOptionsBuilder_ != null) {
        httpOptionsBuilder_.dispose();
        httpOptionsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     */
    public com.google.apps.script.type.HttpOptions.Builder getHttpOptionsBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getHttpOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     */
    public com.google.apps.script.type.HttpOptionsOrBuilder getHttpOptionsOrBuilder() {
      if (httpOptionsBuilder_ != null) {
        return httpOptionsBuilder_.getMessageOrBuilder();
      } else {
        return httpOptions_ == null
            ? com.google.apps.script.type.HttpOptions.getDefaultInstance()
            : httpOptions_;
      }
    }
    /**
     *
     *
     * <pre>
     * Options for sending requests to add-on HTTP endpoints
     * </pre>
     *
     * <code>.google.apps.script.type.HttpOptions http_options = 15;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.apps.script.type.HttpOptions,
            com.google.apps.script.type.HttpOptions.Builder,
            com.google.apps.script.type.HttpOptionsOrBuilder>
        getHttpOptionsFieldBuilder() {
      if (httpOptionsBuilder_ == null) {
        httpOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.apps.script.type.HttpOptions,
                com.google.apps.script.type.HttpOptions.Builder,
                com.google.apps.script.type.HttpOptionsOrBuilder>(
                getHttpOptions(), getParentForChildren(), isClean());
        httpOptions_ = null;
      }
      return httpOptionsBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.AddOns)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.AddOns)
  private static final com.google.cloud.gsuiteaddons.v1.AddOns DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.AddOns();
  }

  public static com.google.cloud.gsuiteaddons.v1.AddOns getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<AddOns> PARSER =
      new com.google.protobuf.AbstractParser<AddOns>() {
        @java.lang.Override
        public AddOns parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<AddOns> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<AddOns> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.gsuiteaddons.v1.AddOns getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
