All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.appengine.v1.Deployment Maven / Gradle / Ivy

There is a newer version: 2.54.0
Show newest version
/*
 * Copyright 2024 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

// Protobuf Java Version: 3.25.5
package com.google.appengine.v1;

/**
 *
 *
 * 
 * Code and application artifacts used to deploy a version to App Engine.
 * 
* * 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(); } 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.MapFieldReflectionAccessor internalGetMapFieldReflection( 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); } private int bitField0_; public static final int FILES_FIELD_NUMBER = 1; private static final class FilesDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry .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 files_; private com.google.protobuf.MapField internalGetFiles() { if (files_ == null) { return com.google.protobuf.MapField.emptyMapField(FilesDefaultEntryHolder.defaultEntry); } return files_; } public int getFilesCount() { return internalGetFiles().getMap().size(); } /** * * *
   * 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.
   * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ @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 getFiles() { return getFilesMap(); } /** * * *
   * 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.
   * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ @java.lang.Override public java.util.Map getFilesMap() { return internalGetFiles().getMap(); } /** * * *
   * 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.
   * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ @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 map = internalGetFiles().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * 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.
   * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ @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 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_; /** * * *
   * The Docker image for the container that runs the version.
   * Only applicable for instances running in the App Engine flexible environment.
   * 
* * .google.appengine.v1.ContainerInfo container = 2; * * @return Whether the container field is set. */ @java.lang.Override public boolean hasContainer() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The Docker image for the container that runs the version.
   * Only applicable for instances running in the App Engine flexible environment.
   * 
* * .google.appengine.v1.ContainerInfo container = 2; * * @return The container. */ @java.lang.Override public com.google.appengine.v1.ContainerInfo getContainer() { return container_ == null ? com.google.appengine.v1.ContainerInfo.getDefaultInstance() : container_; } /** * * *
   * The Docker image for the container that runs the version.
   * Only applicable for instances running in the App Engine flexible environment.
   * 
* * .google.appengine.v1.ContainerInfo container = 2; */ @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_; /** * * *
   * The zip file for this deployment, if this is a zip deployment.
   * 
* * .google.appengine.v1.ZipInfo zip = 3; * * @return Whether the zip field is set. */ @java.lang.Override public boolean hasZip() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The zip file for this deployment, if this is a zip deployment.
   * 
* * .google.appengine.v1.ZipInfo zip = 3; * * @return The zip. */ @java.lang.Override public com.google.appengine.v1.ZipInfo getZip() { return zip_ == null ? com.google.appengine.v1.ZipInfo.getDefaultInstance() : zip_; } /** * * *
   * The zip file for this deployment, if this is a zip deployment.
   * 
* * .google.appengine.v1.ZipInfo zip = 3; */ @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_; /** * * *
   * 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.
   * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; * * @return Whether the cloudBuildOptions field is set. */ @java.lang.Override public boolean hasCloudBuildOptions() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * 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.
   * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; * * @return The cloudBuildOptions. */ @java.lang.Override public com.google.appengine.v1.CloudBuildOptions getCloudBuildOptions() { return cloudBuildOptions_ == null ? com.google.appengine.v1.CloudBuildOptions.getDefaultInstance() : cloudBuildOptions_; } /** * * *
   * 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.
   * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; */ @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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getContainer()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getZip()); } if (((bitField0_ & 0x00000004) != 0)) { 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 entry : internalGetFiles().getMap().entrySet()) { com.google.protobuf.MapEntry files__ = FilesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, files__); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContainer()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getZip()); } if (((bitField0_ & 0x00000004) != 0)) { 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; } /** * * *
   * Code and application artifacts used to deploy a version to App Engine.
   * 
* * Protobuf type {@code google.appengine.v1.Deployment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.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.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetFiles(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 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() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getContainerFieldBuilder(); getZipFieldBuilder(); getCloudBuildOptionsFieldBuilder(); } } @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().build(FilesDefaultEntryHolder.defaultEntry); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.zip_ = zipBuilder_ == null ? zip_ : zipBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cloudBuildOptions_ = cloudBuildOptionsBuilder_ == null ? cloudBuildOptions_ : cloudBuildOptionsBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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 files__ = input.readMessage( FilesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFiles() .ensureBuilderMap() .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 static final class FilesConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, com.google.appengine.v1.FileInfoOrBuilder, com.google.appengine.v1.FileInfo> { @java.lang.Override public com.google.appengine.v1.FileInfo build(com.google.appengine.v1.FileInfoOrBuilder val) { if (val instanceof com.google.appengine.v1.FileInfo) { return (com.google.appengine.v1.FileInfo) val; } return ((com.google.appengine.v1.FileInfo.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return FilesDefaultEntryHolder.defaultEntry; } }; private static final FilesConverter filesConverter = new FilesConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.appengine.v1.FileInfoOrBuilder, com.google.appengine.v1.FileInfo, com.google.appengine.v1.FileInfo.Builder> files_; private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.appengine.v1.FileInfoOrBuilder, com.google.appengine.v1.FileInfo, com.google.appengine.v1.FileInfo.Builder> internalGetFiles() { if (files_ == null) { return new com.google.protobuf.MapFieldBuilder<>(filesConverter); } return files_; } private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.appengine.v1.FileInfoOrBuilder, com.google.appengine.v1.FileInfo, com.google.appengine.v1.FileInfo.Builder> internalGetMutableFiles() { if (files_ == null) { files_ = new com.google.protobuf.MapFieldBuilder<>(filesConverter); } bitField0_ |= 0x00000001; onChanged(); return files_; } public int getFilesCount() { return internalGetFiles().ensureBuilderMap().size(); } /** * * *
     * 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.
     * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ @java.lang.Override public boolean containsFiles(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFiles().ensureBuilderMap().containsKey(key); } /** Use {@link #getFilesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFiles() { return getFilesMap(); } /** * * *
     * 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.
     * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ @java.lang.Override public java.util.Map getFilesMap() { return internalGetFiles().getImmutableMap(); } /** * * *
     * 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.
     * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ @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 map = internalGetMutableFiles().ensureBuilderMap(); return map.containsKey(key) ? filesConverter.build(map.get(key)) : defaultValue; } /** * * *
     * 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.
     * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ @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 map = internalGetMutableFiles().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return filesConverter.build(map.get(key)); } public Builder clearFiles() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableFiles().clear(); return this; } /** * * *
     * 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.
     * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ public Builder removeFiles(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFiles().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFiles() { bitField0_ |= 0x00000001; return internalGetMutableFiles().ensureMessageMap(); } /** * * *
     * 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.
     * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ 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().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** * * *
     * 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.
     * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ public Builder putAllFiles( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableFiles().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000001; return this; } /** * * *
     * 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.
     * 
* * map<string, .google.appengine.v1.FileInfo> files = 1; */ public com.google.appengine.v1.FileInfo.Builder putFilesBuilderIfAbsent(java.lang.String key) { java.util.Map builderMap = internalGetMutableFiles().ensureBuilderMap(); com.google.appengine.v1.FileInfoOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.appengine.v1.FileInfo.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.google.appengine.v1.FileInfo) { entry = ((com.google.appengine.v1.FileInfo) entry).toBuilder(); builderMap.put(key, entry); } return (com.google.appengine.v1.FileInfo.Builder) entry; } 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_; /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; * * @return Whether the container field is set. */ public boolean hasContainer() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; * * @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(); } } /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; */ 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; } /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; */ 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; } /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; */ 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); } if (container_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; */ public Builder clearContainer() { bitField0_ = (bitField0_ & ~0x00000002); container_ = null; if (containerBuilder_ != null) { containerBuilder_.dispose(); containerBuilder_ = null; } onChanged(); return this; } /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; */ public com.google.appengine.v1.ContainerInfo.Builder getContainerBuilder() { bitField0_ |= 0x00000002; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; */ public com.google.appengine.v1.ContainerInfoOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { return container_ == null ? com.google.appengine.v1.ContainerInfo.getDefaultInstance() : container_; } } /** * * *
     * The Docker image for the container that runs the version.
     * Only applicable for instances running in the App Engine flexible environment.
     * 
* * .google.appengine.v1.ContainerInfo container = 2; */ 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_; /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; * * @return Whether the zip field is set. */ public boolean hasZip() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; * * @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(); } } /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; */ 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; } /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; */ 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; } /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; */ 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); } if (zip_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; */ public Builder clearZip() { bitField0_ = (bitField0_ & ~0x00000004); zip_ = null; if (zipBuilder_ != null) { zipBuilder_.dispose(); zipBuilder_ = null; } onChanged(); return this; } /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; */ public com.google.appengine.v1.ZipInfo.Builder getZipBuilder() { bitField0_ |= 0x00000004; onChanged(); return getZipFieldBuilder().getBuilder(); } /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; */ public com.google.appengine.v1.ZipInfoOrBuilder getZipOrBuilder() { if (zipBuilder_ != null) { return zipBuilder_.getMessageOrBuilder(); } else { return zip_ == null ? com.google.appengine.v1.ZipInfo.getDefaultInstance() : zip_; } } /** * * *
     * The zip file for this deployment, if this is a zip deployment.
     * 
* * .google.appengine.v1.ZipInfo zip = 3; */ 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_; /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; * * @return Whether the cloudBuildOptions field is set. */ public boolean hasCloudBuildOptions() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; * * @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(); } } /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; */ 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; } /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; */ 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; } /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; */ 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); } if (cloudBuildOptions_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; */ public Builder clearCloudBuildOptions() { bitField0_ = (bitField0_ & ~0x00000008); cloudBuildOptions_ = null; if (cloudBuildOptionsBuilder_ != null) { cloudBuildOptionsBuilder_.dispose(); cloudBuildOptionsBuilder_ = null; } onChanged(); return this; } /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; */ public com.google.appengine.v1.CloudBuildOptions.Builder getCloudBuildOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCloudBuildOptionsFieldBuilder().getBuilder(); } /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; */ public com.google.appengine.v1.CloudBuildOptionsOrBuilder getCloudBuildOptionsOrBuilder() { if (cloudBuildOptionsBuilder_ != null) { return cloudBuildOptionsBuilder_.getMessageOrBuilder(); } else { return cloudBuildOptions_ == null ? com.google.appengine.v1.CloudBuildOptions.getDefaultInstance() : cloudBuildOptions_; } } /** * * *
     * 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.
     * 
* * .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; */ 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 PARSER = new com.google.protobuf.AbstractParser() { @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 parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.appengine.v1.Deployment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy