/*
 * Copyright 2020 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/appengine/v1/deploy.proto

package com.google.appengine.v1;

/**
 *
 *
 * <pre>
 * Code and application artifacts used to deploy a version to App Engine.
 * </pre>
 *
 * Protobuf type {@code google.appengine.v1.Deployment}
 */
public final class Deployment extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.appengine.v1.Deployment)
    DeploymentOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Deployment.newBuilder() to construct.
  private Deployment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Deployment() {}

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.appengine.v1.DeployProto
        .internal_static_google_appengine_v1_Deployment_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 1:
        return internalGetFiles();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.appengine.v1.DeployProto
        .internal_static_google_appengine_v1_Deployment_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.appengine.v1.Deployment.class,
            com.google.appengine.v1.Deployment.Builder.class);
  }

  public static final int FILES_FIELD_NUMBER = 1;

  private static final class FilesDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, com.google.appengine.v1.FileInfo>
        defaultEntry =
            com.google.protobuf.MapEntry
                .<java.lang.String, com.google.appengine.v1.FileInfo>newDefaultInstance(
                    com.google.appengine.v1.DeployProto
                        .internal_static_google_appengine_v1_Deployment_FilesEntry_descriptor,
                    com.google.protobuf.WireFormat.FieldType.STRING,
                    "",
                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
                    com.google.appengine.v1.FileInfo.getDefaultInstance());
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, com.google.appengine.v1.FileInfo> files_;

  private com.google.protobuf.MapField<java.lang.String, com.google.appengine.v1.FileInfo>
      internalGetFiles() {
    if (files_ == null) {
      return com.google.protobuf.MapField.emptyMapField(FilesDefaultEntryHolder.defaultEntry);
    }
    return files_;
  }

  public int getFilesCount() {
    return internalGetFiles().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Manifest of the files stored in Google Cloud Storage that are included
   * as part of this version. All files must be readable using the
   * credentials supplied with this call.
   * </pre>
   *
   * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
   */
  @java.lang.Override
  public boolean containsFiles(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetFiles().getMap().containsKey(key);
  }
  /** Use {@link #getFilesMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> getFiles() {
    return getFilesMap();
  }
  /**
   *
   *
   * <pre>
   * Manifest of the files stored in Google Cloud Storage that are included
   * as part of this version. All files must be readable using the
   * credentials supplied with this call.
   * </pre>
   *
   * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> getFilesMap() {
    return internalGetFiles().getMap();
  }
  /**
   *
   *
   * <pre>
   * Manifest of the files stored in Google Cloud Storage that are included
   * as part of this version. All files must be readable using the
   * credentials supplied with this call.
   * </pre>
   *
   * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
   */
  @java.lang.Override
  public /* nullable */ com.google.appengine.v1.FileInfo getFilesOrDefault(
      java.lang.String key,
      /* nullable */
      com.google.appengine.v1.FileInfo defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> map =
        internalGetFiles().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Manifest of the files stored in Google Cloud Storage that are included
   * as part of this version. All files must be readable using the
   * credentials supplied with this call.
   * </pre>
   *
   * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
   */
  @java.lang.Override
  public com.google.appengine.v1.FileInfo getFilesOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> map =
        internalGetFiles().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int CONTAINER_FIELD_NUMBER = 2;
  private com.google.appengine.v1.ContainerInfo container_;
  /**
   *
   *
   * <pre>
   * The Docker image for the container that runs the version.
   * Only applicable for instances running in the App Engine flexible environment.
   * </pre>
   *
   * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
   *
   * @return Whether the container field is set.
   */
  @java.lang.Override
  public boolean hasContainer() {
    return container_ != null;
  }
  /**
   *
   *
   * <pre>
   * The Docker image for the container that runs the version.
   * Only applicable for instances running in the App Engine flexible environment.
   * </pre>
   *
   * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
   *
   * @return The container.
   */
  @java.lang.Override
  public com.google.appengine.v1.ContainerInfo getContainer() {
    return container_ == null
        ? com.google.appengine.v1.ContainerInfo.getDefaultInstance()
        : container_;
  }
  /**
   *
   *
   * <pre>
   * The Docker image for the container that runs the version.
   * Only applicable for instances running in the App Engine flexible environment.
   * </pre>
   *
   * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
   */
  @java.lang.Override
  public com.google.appengine.v1.ContainerInfoOrBuilder getContainerOrBuilder() {
    return container_ == null
        ? com.google.appengine.v1.ContainerInfo.getDefaultInstance()
        : container_;
  }

  public static final int ZIP_FIELD_NUMBER = 3;
  private com.google.appengine.v1.ZipInfo zip_;
  /**
   *
   *
   * <pre>
   * The zip file for this deployment, if this is a zip deployment.
   * </pre>
   *
   * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
   *
   * @return Whether the zip field is set.
   */
  @java.lang.Override
  public boolean hasZip() {
    return zip_ != null;
  }
  /**
   *
   *
   * <pre>
   * The zip file for this deployment, if this is a zip deployment.
   * </pre>
   *
   * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
   *
   * @return The zip.
   */
  @java.lang.Override
  public com.google.appengine.v1.ZipInfo getZip() {
    return zip_ == null ? com.google.appengine.v1.ZipInfo.getDefaultInstance() : zip_;
  }
  /**
   *
   *
   * <pre>
   * The zip file for this deployment, if this is a zip deployment.
   * </pre>
   *
   * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
   */
  @java.lang.Override
  public com.google.appengine.v1.ZipInfoOrBuilder getZipOrBuilder() {
    return zip_ == null ? com.google.appengine.v1.ZipInfo.getDefaultInstance() : zip_;
  }

  public static final int CLOUD_BUILD_OPTIONS_FIELD_NUMBER = 6;
  private com.google.appengine.v1.CloudBuildOptions cloudBuildOptions_;
  /**
   *
   *
   * <pre>
   * Options for any Google Cloud Build builds created as a part of this
   * deployment.
   * These options will only be used if a new build is created, such as when
   * deploying to the App Engine flexible environment using files or zip.
   * </pre>
   *
   * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
   *
   * @return Whether the cloudBuildOptions field is set.
   */
  @java.lang.Override
  public boolean hasCloudBuildOptions() {
    return cloudBuildOptions_ != null;
  }
  /**
   *
   *
   * <pre>
   * Options for any Google Cloud Build builds created as a part of this
   * deployment.
   * These options will only be used if a new build is created, such as when
   * deploying to the App Engine flexible environment using files or zip.
   * </pre>
   *
   * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
   *
   * @return The cloudBuildOptions.
   */
  @java.lang.Override
  public com.google.appengine.v1.CloudBuildOptions getCloudBuildOptions() {
    return cloudBuildOptions_ == null
        ? com.google.appengine.v1.CloudBuildOptions.getDefaultInstance()
        : cloudBuildOptions_;
  }
  /**
   *
   *
   * <pre>
   * Options for any Google Cloud Build builds created as a part of this
   * deployment.
   * These options will only be used if a new build is created, such as when
   * deploying to the App Engine flexible environment using files or zip.
   * </pre>
   *
   * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
   */
  @java.lang.Override
  public com.google.appengine.v1.CloudBuildOptionsOrBuilder getCloudBuildOptionsOrBuilder() {
    return cloudBuildOptions_ == null
        ? com.google.appengine.v1.CloudBuildOptions.getDefaultInstance()
        : cloudBuildOptions_;
  }

  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 {
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetFiles(), FilesDefaultEntryHolder.defaultEntry, 1);
    if (container_ != null) {
      output.writeMessage(2, getContainer());
    }
    if (zip_ != null) {
      output.writeMessage(3, getZip());
    }
    if (cloudBuildOptions_ != null) {
      output.writeMessage(6, getCloudBuildOptions());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    for (java.util.Map.Entry<java.lang.String, com.google.appengine.v1.FileInfo> entry :
        internalGetFiles().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, com.google.appengine.v1.FileInfo> files__ =
          FilesDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, files__);
    }
    if (container_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContainer());
    }
    if (zip_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getZip());
    }
    if (cloudBuildOptions_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCloudBuildOptions());
    }
    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.appengine.v1.Deployment)) {
      return super.equals(obj);
    }
    com.google.appengine.v1.Deployment other = (com.google.appengine.v1.Deployment) obj;

    if (!internalGetFiles().equals(other.internalGetFiles())) return false;
    if (hasContainer() != other.hasContainer()) return false;
    if (hasContainer()) {
      if (!getContainer().equals(other.getContainer())) return false;
    }
    if (hasZip() != other.hasZip()) return false;
    if (hasZip()) {
      if (!getZip().equals(other.getZip())) return false;
    }
    if (hasCloudBuildOptions() != other.hasCloudBuildOptions()) return false;
    if (hasCloudBuildOptions()) {
      if (!getCloudBuildOptions().equals(other.getCloudBuildOptions())) 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 (!internalGetFiles().getMap().isEmpty()) {
      hash = (37 * hash) + FILES_FIELD_NUMBER;
      hash = (53 * hash) + internalGetFiles().hashCode();
    }
    if (hasContainer()) {
      hash = (37 * hash) + CONTAINER_FIELD_NUMBER;
      hash = (53 * hash) + getContainer().hashCode();
    }
    if (hasZip()) {
      hash = (37 * hash) + ZIP_FIELD_NUMBER;
      hash = (53 * hash) + getZip().hashCode();
    }
    if (hasCloudBuildOptions()) {
      hash = (37 * hash) + CLOUD_BUILD_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getCloudBuildOptions().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

  public static com.google.appengine.v1.Deployment parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.appengine.v1.Deployment 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.appengine.v1.Deployment parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

  public static com.google.appengine.v1.Deployment 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.appengine.v1.Deployment parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.appengine.v1.Deployment 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.appengine.v1.Deployment parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.appengine.v1.Deployment 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.appengine.v1.Deployment 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>
   * Code and application artifacts used to deploy a version to App Engine.
   * </pre>
   *
   * Protobuf type {@code google.appengine.v1.Deployment}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.appengine.v1.Deployment)
      com.google.appengine.v1.DeploymentOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.appengine.v1.DeployProto
          .internal_static_google_appengine_v1_Deployment_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 1:
          return internalGetFiles();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 1:
          return internalGetMutableFiles();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.appengine.v1.DeployProto
          .internal_static_google_appengine_v1_Deployment_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.appengine.v1.Deployment.class,
              com.google.appengine.v1.Deployment.Builder.class);
    }

    // Construct using com.google.appengine.v1.Deployment.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      internalGetMutableFiles().clear();
      container_ = null;
      if (containerBuilder_ != null) {
        containerBuilder_.dispose();
        containerBuilder_ = null;
      }
      zip_ = null;
      if (zipBuilder_ != null) {
        zipBuilder_.dispose();
        zipBuilder_ = null;
      }
      cloudBuildOptions_ = null;
      if (cloudBuildOptionsBuilder_ != null) {
        cloudBuildOptionsBuilder_.dispose();
        cloudBuildOptionsBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.appengine.v1.DeployProto
          .internal_static_google_appengine_v1_Deployment_descriptor;
    }

    @java.lang.Override
    public com.google.appengine.v1.Deployment getDefaultInstanceForType() {
      return com.google.appengine.v1.Deployment.getDefaultInstance();
    }

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

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

    private void buildPartial0(com.google.appengine.v1.Deployment result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.files_ = internalGetFiles();
        result.files_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.zip_ = zipBuilder_ == null ? zip_ : zipBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.cloudBuildOptions_ =
            cloudBuildOptionsBuilder_ == null
                ? cloudBuildOptions_
                : cloudBuildOptionsBuilder_.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.appengine.v1.Deployment) {
        return mergeFrom((com.google.appengine.v1.Deployment) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.appengine.v1.Deployment other) {
      if (other == com.google.appengine.v1.Deployment.getDefaultInstance()) return this;
      internalGetMutableFiles().mergeFrom(other.internalGetFiles());
      bitField0_ |= 0x00000001;
      if (other.hasContainer()) {
        mergeContainer(other.getContainer());
      }
      if (other.hasZip()) {
        mergeZip(other.getZip());
      }
      if (other.hasCloudBuildOptions()) {
        mergeCloudBuildOptions(other.getCloudBuildOptions());
      }
      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:
              {
                com.google.protobuf.MapEntry<java.lang.String, com.google.appengine.v1.FileInfo>
                    files__ =
                        input.readMessage(
                            FilesDefaultEntryHolder.defaultEntry.getParserForType(),
                            extensionRegistry);
                internalGetMutableFiles().getMutableMap().put(files__.getKey(), files__.getValue());
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getContainerFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(getZipFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 50:
              {
                input.readMessage(
                    getCloudBuildOptionsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 50
            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.protobuf.MapField<java.lang.String, com.google.appengine.v1.FileInfo> files_;

    private com.google.protobuf.MapField<java.lang.String, com.google.appengine.v1.FileInfo>
        internalGetFiles() {
      if (files_ == null) {
        return com.google.protobuf.MapField.emptyMapField(FilesDefaultEntryHolder.defaultEntry);
      }
      return files_;
    }

    private com.google.protobuf.MapField<java.lang.String, com.google.appengine.v1.FileInfo>
        internalGetMutableFiles() {
      if (files_ == null) {
        files_ = com.google.protobuf.MapField.newMapField(FilesDefaultEntryHolder.defaultEntry);
      }
      if (!files_.isMutable()) {
        files_ = files_.copy();
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return files_;
    }

    public int getFilesCount() {
      return internalGetFiles().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Manifest of the files stored in Google Cloud Storage that are included
     * as part of this version. All files must be readable using the
     * credentials supplied with this call.
     * </pre>
     *
     * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
     */
    @java.lang.Override
    public boolean containsFiles(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetFiles().getMap().containsKey(key);
    }
    /** Use {@link #getFilesMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> getFiles() {
      return getFilesMap();
    }
    /**
     *
     *
     * <pre>
     * Manifest of the files stored in Google Cloud Storage that are included
     * as part of this version. All files must be readable using the
     * credentials supplied with this call.
     * </pre>
     *
     * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> getFilesMap() {
      return internalGetFiles().getMap();
    }
    /**
     *
     *
     * <pre>
     * Manifest of the files stored in Google Cloud Storage that are included
     * as part of this version. All files must be readable using the
     * credentials supplied with this call.
     * </pre>
     *
     * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
     */
    @java.lang.Override
    public /* nullable */ com.google.appengine.v1.FileInfo getFilesOrDefault(
        java.lang.String key,
        /* nullable */
        com.google.appengine.v1.FileInfo defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> map =
          internalGetFiles().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Manifest of the files stored in Google Cloud Storage that are included
     * as part of this version. All files must be readable using the
     * credentials supplied with this call.
     * </pre>
     *
     * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
     */
    @java.lang.Override
    public com.google.appengine.v1.FileInfo getFilesOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> map =
          internalGetFiles().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearFiles() {
      bitField0_ = (bitField0_ & ~0x00000001);
      internalGetMutableFiles().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Manifest of the files stored in Google Cloud Storage that are included
     * as part of this version. All files must be readable using the
     * credentials supplied with this call.
     * </pre>
     *
     * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
     */
    public Builder removeFiles(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableFiles().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> getMutableFiles() {
      bitField0_ |= 0x00000001;
      return internalGetMutableFiles().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Manifest of the files stored in Google Cloud Storage that are included
     * as part of this version. All files must be readable using the
     * credentials supplied with this call.
     * </pre>
     *
     * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
     */
    public Builder putFiles(java.lang.String key, com.google.appengine.v1.FileInfo value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableFiles().getMutableMap().put(key, value);
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Manifest of the files stored in Google Cloud Storage that are included
     * as part of this version. All files must be readable using the
     * credentials supplied with this call.
     * </pre>
     *
     * <code>map&lt;string, .google.appengine.v1.FileInfo&gt; files = 1;</code>
     */
    public Builder putAllFiles(
        java.util.Map<java.lang.String, com.google.appengine.v1.FileInfo> values) {
      internalGetMutableFiles().getMutableMap().putAll(values);
      bitField0_ |= 0x00000001;
      return this;
    }

    private com.google.appengine.v1.ContainerInfo container_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.appengine.v1.ContainerInfo,
            com.google.appengine.v1.ContainerInfo.Builder,
            com.google.appengine.v1.ContainerInfoOrBuilder>
        containerBuilder_;
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     *
     * @return Whether the container field is set.
     */
    public boolean hasContainer() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     *
     * @return The container.
     */
    public com.google.appengine.v1.ContainerInfo getContainer() {
      if (containerBuilder_ == null) {
        return container_ == null
            ? com.google.appengine.v1.ContainerInfo.getDefaultInstance()
            : container_;
      } else {
        return containerBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     */
    public Builder setContainer(com.google.appengine.v1.ContainerInfo value) {
      if (containerBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        container_ = value;
      } else {
        containerBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     */
    public Builder setContainer(com.google.appengine.v1.ContainerInfo.Builder builderForValue) {
      if (containerBuilder_ == null) {
        container_ = builderForValue.build();
      } else {
        containerBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     */
    public Builder mergeContainer(com.google.appengine.v1.ContainerInfo value) {
      if (containerBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && container_ != null
            && container_ != com.google.appengine.v1.ContainerInfo.getDefaultInstance()) {
          getContainerBuilder().mergeFrom(value);
        } else {
          container_ = value;
        }
      } else {
        containerBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     */
    public Builder clearContainer() {
      bitField0_ = (bitField0_ & ~0x00000002);
      container_ = null;
      if (containerBuilder_ != null) {
        containerBuilder_.dispose();
        containerBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     */
    public com.google.appengine.v1.ContainerInfo.Builder getContainerBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getContainerFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     */
    public com.google.appengine.v1.ContainerInfoOrBuilder getContainerOrBuilder() {
      if (containerBuilder_ != null) {
        return containerBuilder_.getMessageOrBuilder();
      } else {
        return container_ == null
            ? com.google.appengine.v1.ContainerInfo.getDefaultInstance()
            : container_;
      }
    }
    /**
     *
     *
     * <pre>
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * </pre>
     *
     * <code>.google.appengine.v1.ContainerInfo container = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.appengine.v1.ContainerInfo,
            com.google.appengine.v1.ContainerInfo.Builder,
            com.google.appengine.v1.ContainerInfoOrBuilder>
        getContainerFieldBuilder() {
      if (containerBuilder_ == null) {
        containerBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.appengine.v1.ContainerInfo,
                com.google.appengine.v1.ContainerInfo.Builder,
                com.google.appengine.v1.ContainerInfoOrBuilder>(
                getContainer(), getParentForChildren(), isClean());
        container_ = null;
      }
      return containerBuilder_;
    }

    private com.google.appengine.v1.ZipInfo zip_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.appengine.v1.ZipInfo,
            com.google.appengine.v1.ZipInfo.Builder,
            com.google.appengine.v1.ZipInfoOrBuilder>
        zipBuilder_;
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     *
     * @return Whether the zip field is set.
     */
    public boolean hasZip() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     *
     * @return The zip.
     */
    public com.google.appengine.v1.ZipInfo getZip() {
      if (zipBuilder_ == null) {
        return zip_ == null ? com.google.appengine.v1.ZipInfo.getDefaultInstance() : zip_;
      } else {
        return zipBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     */
    public Builder setZip(com.google.appengine.v1.ZipInfo value) {
      if (zipBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        zip_ = value;
      } else {
        zipBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     */
    public Builder setZip(com.google.appengine.v1.ZipInfo.Builder builderForValue) {
      if (zipBuilder_ == null) {
        zip_ = builderForValue.build();
      } else {
        zipBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     */
    public Builder mergeZip(com.google.appengine.v1.ZipInfo value) {
      if (zipBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && zip_ != null
            && zip_ != com.google.appengine.v1.ZipInfo.getDefaultInstance()) {
          getZipBuilder().mergeFrom(value);
        } else {
          zip_ = value;
        }
      } else {
        zipBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     */
    public Builder clearZip() {
      bitField0_ = (bitField0_ & ~0x00000004);
      zip_ = null;
      if (zipBuilder_ != null) {
        zipBuilder_.dispose();
        zipBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     */
    public com.google.appengine.v1.ZipInfo.Builder getZipBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getZipFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     */
    public com.google.appengine.v1.ZipInfoOrBuilder getZipOrBuilder() {
      if (zipBuilder_ != null) {
        return zipBuilder_.getMessageOrBuilder();
      } else {
        return zip_ == null ? com.google.appengine.v1.ZipInfo.getDefaultInstance() : zip_;
      }
    }
    /**
     *
     *
     * <pre>
     * The zip file for this deployment, if this is a zip deployment.
     * </pre>
     *
     * <code>.google.appengine.v1.ZipInfo zip = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.appengine.v1.ZipInfo,
            com.google.appengine.v1.ZipInfo.Builder,
            com.google.appengine.v1.ZipInfoOrBuilder>
        getZipFieldBuilder() {
      if (zipBuilder_ == null) {
        zipBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.appengine.v1.ZipInfo,
                com.google.appengine.v1.ZipInfo.Builder,
                com.google.appengine.v1.ZipInfoOrBuilder>(
                getZip(), getParentForChildren(), isClean());
        zip_ = null;
      }
      return zipBuilder_;
    }

    private com.google.appengine.v1.CloudBuildOptions cloudBuildOptions_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.appengine.v1.CloudBuildOptions,
            com.google.appengine.v1.CloudBuildOptions.Builder,
            com.google.appengine.v1.CloudBuildOptionsOrBuilder>
        cloudBuildOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     *
     * @return Whether the cloudBuildOptions field is set.
     */
    public boolean hasCloudBuildOptions() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     *
     * @return The cloudBuildOptions.
     */
    public com.google.appengine.v1.CloudBuildOptions getCloudBuildOptions() {
      if (cloudBuildOptionsBuilder_ == null) {
        return cloudBuildOptions_ == null
            ? com.google.appengine.v1.CloudBuildOptions.getDefaultInstance()
            : cloudBuildOptions_;
      } else {
        return cloudBuildOptionsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     */
    public Builder setCloudBuildOptions(com.google.appengine.v1.CloudBuildOptions value) {
      if (cloudBuildOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cloudBuildOptions_ = value;
      } else {
        cloudBuildOptionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     */
    public Builder setCloudBuildOptions(
        com.google.appengine.v1.CloudBuildOptions.Builder builderForValue) {
      if (cloudBuildOptionsBuilder_ == null) {
        cloudBuildOptions_ = builderForValue.build();
      } else {
        cloudBuildOptionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     */
    public Builder mergeCloudBuildOptions(com.google.appengine.v1.CloudBuildOptions value) {
      if (cloudBuildOptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && cloudBuildOptions_ != null
            && cloudBuildOptions_
                != com.google.appengine.v1.CloudBuildOptions.getDefaultInstance()) {
          getCloudBuildOptionsBuilder().mergeFrom(value);
        } else {
          cloudBuildOptions_ = value;
        }
      } else {
        cloudBuildOptionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     */
    public Builder clearCloudBuildOptions() {
      bitField0_ = (bitField0_ & ~0x00000008);
      cloudBuildOptions_ = null;
      if (cloudBuildOptionsBuilder_ != null) {
        cloudBuildOptionsBuilder_.dispose();
        cloudBuildOptionsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     */
    public com.google.appengine.v1.CloudBuildOptions.Builder getCloudBuildOptionsBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getCloudBuildOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     */
    public com.google.appengine.v1.CloudBuildOptionsOrBuilder getCloudBuildOptionsOrBuilder() {
      if (cloudBuildOptionsBuilder_ != null) {
        return cloudBuildOptionsBuilder_.getMessageOrBuilder();
      } else {
        return cloudBuildOptions_ == null
            ? com.google.appengine.v1.CloudBuildOptions.getDefaultInstance()
            : cloudBuildOptions_;
      }
    }
    /**
     *
     *
     * <pre>
     * Options for any Google Cloud Build builds created as a part of this
     * deployment.
     * These options will only be used if a new build is created, such as when
     * deploying to the App Engine flexible environment using files or zip.
     * </pre>
     *
     * <code>.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.appengine.v1.CloudBuildOptions,
            com.google.appengine.v1.CloudBuildOptions.Builder,
            com.google.appengine.v1.CloudBuildOptionsOrBuilder>
        getCloudBuildOptionsFieldBuilder() {
      if (cloudBuildOptionsBuilder_ == null) {
        cloudBuildOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.appengine.v1.CloudBuildOptions,
                com.google.appengine.v1.CloudBuildOptions.Builder,
                com.google.appengine.v1.CloudBuildOptionsOrBuilder>(
                getCloudBuildOptions(), getParentForChildren(), isClean());
        cloudBuildOptions_ = null;
      }
      return cloudBuildOptionsBuilder_;
    }

    @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.appengine.v1.Deployment)
  }

  // @@protoc_insertion_point(class_scope:google.appengine.v1.Deployment)
  private static final com.google.appengine.v1.Deployment DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.appengine.v1.Deployment();
  }

  public static com.google.appengine.v1.Deployment getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Deployment> PARSER =
      new com.google.protobuf.AbstractParser<Deployment>() {
        @java.lang.Override
        public Deployment 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<Deployment> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.appengine.v1.Deployment getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
