1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/appengine/v1/version.proto 18 19 package com.google.appengine.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A Version resource is a specific set of source code and configuration files 26 * that are deployed into a service. 27 * </pre> 28 * 29 * Protobuf type {@code google.appengine.v1.Version} 30 */ 31 public final class Version extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.appengine.v1.Version) 34 VersionOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use Version.newBuilder() to construct. Version(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private Version(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 Version()41 private Version() { 42 name_ = ""; 43 id_ = ""; 44 inboundServices_ = java.util.Collections.emptyList(); 45 instanceClass_ = ""; 46 zones_ = com.google.protobuf.LazyStringArrayList.EMPTY; 47 runtime_ = ""; 48 runtimeChannel_ = ""; 49 env_ = ""; 50 servingStatus_ = 0; 51 createdBy_ = ""; 52 runtimeApiVersion_ = ""; 53 runtimeMainExecutablePath_ = ""; 54 serviceAccount_ = ""; 55 handlers_ = java.util.Collections.emptyList(); 56 errorHandlers_ = java.util.Collections.emptyList(); 57 libraries_ = java.util.Collections.emptyList(); 58 nobuildFilesRegex_ = ""; 59 versionUrl_ = ""; 60 } 61 62 @java.lang.Override 63 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)64 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 65 return new Version(); 66 } 67 68 @java.lang.Override getUnknownFields()69 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 70 return this.unknownFields; 71 } 72 getDescriptor()73 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 74 return com.google.appengine.v1.VersionProto 75 .internal_static_google_appengine_v1_Version_descriptor; 76 } 77 78 @SuppressWarnings({"rawtypes"}) 79 @java.lang.Override internalGetMapField(int number)80 protected com.google.protobuf.MapField internalGetMapField(int number) { 81 switch (number) { 82 case 13: 83 return internalGetBetaSettings(); 84 case 104: 85 return internalGetEnvVariables(); 86 case 125: 87 return internalGetBuildEnvVariables(); 88 default: 89 throw new RuntimeException("Invalid map field number: " + number); 90 } 91 } 92 93 @java.lang.Override 94 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()95 internalGetFieldAccessorTable() { 96 return com.google.appengine.v1.VersionProto 97 .internal_static_google_appengine_v1_Version_fieldAccessorTable 98 .ensureFieldAccessorsInitialized( 99 com.google.appengine.v1.Version.class, com.google.appengine.v1.Version.Builder.class); 100 } 101 102 private int scalingCase_ = 0; 103 private java.lang.Object scaling_; 104 105 public enum ScalingCase 106 implements 107 com.google.protobuf.Internal.EnumLite, 108 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 109 AUTOMATIC_SCALING(3), 110 BASIC_SCALING(4), 111 MANUAL_SCALING(5), 112 SCALING_NOT_SET(0); 113 private final int value; 114 ScalingCase(int value)115 private ScalingCase(int value) { 116 this.value = value; 117 } 118 /** 119 * @param value The number of the enum to look for. 120 * @return The enum associated with the given number. 121 * @deprecated Use {@link #forNumber(int)} instead. 122 */ 123 @java.lang.Deprecated valueOf(int value)124 public static ScalingCase valueOf(int value) { 125 return forNumber(value); 126 } 127 forNumber(int value)128 public static ScalingCase forNumber(int value) { 129 switch (value) { 130 case 3: 131 return AUTOMATIC_SCALING; 132 case 4: 133 return BASIC_SCALING; 134 case 5: 135 return MANUAL_SCALING; 136 case 0: 137 return SCALING_NOT_SET; 138 default: 139 return null; 140 } 141 } 142 getNumber()143 public int getNumber() { 144 return this.value; 145 } 146 }; 147 getScalingCase()148 public ScalingCase getScalingCase() { 149 return ScalingCase.forNumber(scalingCase_); 150 } 151 152 public static final int NAME_FIELD_NUMBER = 1; 153 154 @SuppressWarnings("serial") 155 private volatile java.lang.Object name_ = ""; 156 /** 157 * 158 * 159 * <pre> 160 * Full path to the Version resource in the API. Example: 161 * `apps/myapp/services/default/versions/v1`. 162 * @OutputOnly 163 * </pre> 164 * 165 * <code>string name = 1;</code> 166 * 167 * @return The name. 168 */ 169 @java.lang.Override getName()170 public java.lang.String getName() { 171 java.lang.Object ref = name_; 172 if (ref instanceof java.lang.String) { 173 return (java.lang.String) ref; 174 } else { 175 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 176 java.lang.String s = bs.toStringUtf8(); 177 name_ = s; 178 return s; 179 } 180 } 181 /** 182 * 183 * 184 * <pre> 185 * Full path to the Version resource in the API. Example: 186 * `apps/myapp/services/default/versions/v1`. 187 * @OutputOnly 188 * </pre> 189 * 190 * <code>string name = 1;</code> 191 * 192 * @return The bytes for name. 193 */ 194 @java.lang.Override getNameBytes()195 public com.google.protobuf.ByteString getNameBytes() { 196 java.lang.Object ref = name_; 197 if (ref instanceof java.lang.String) { 198 com.google.protobuf.ByteString b = 199 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 200 name_ = b; 201 return b; 202 } else { 203 return (com.google.protobuf.ByteString) ref; 204 } 205 } 206 207 public static final int ID_FIELD_NUMBER = 2; 208 209 @SuppressWarnings("serial") 210 private volatile java.lang.Object id_ = ""; 211 /** 212 * 213 * 214 * <pre> 215 * Relative name of the version within the service. Example: `v1`. 216 * Version names can contain only lowercase letters, numbers, or hyphens. 217 * Reserved names: "default", "latest", and any name with the prefix "ah-". 218 * </pre> 219 * 220 * <code>string id = 2;</code> 221 * 222 * @return The id. 223 */ 224 @java.lang.Override getId()225 public java.lang.String getId() { 226 java.lang.Object ref = id_; 227 if (ref instanceof java.lang.String) { 228 return (java.lang.String) ref; 229 } else { 230 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 231 java.lang.String s = bs.toStringUtf8(); 232 id_ = s; 233 return s; 234 } 235 } 236 /** 237 * 238 * 239 * <pre> 240 * Relative name of the version within the service. Example: `v1`. 241 * Version names can contain only lowercase letters, numbers, or hyphens. 242 * Reserved names: "default", "latest", and any name with the prefix "ah-". 243 * </pre> 244 * 245 * <code>string id = 2;</code> 246 * 247 * @return The bytes for id. 248 */ 249 @java.lang.Override getIdBytes()250 public com.google.protobuf.ByteString getIdBytes() { 251 java.lang.Object ref = id_; 252 if (ref instanceof java.lang.String) { 253 com.google.protobuf.ByteString b = 254 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 255 id_ = b; 256 return b; 257 } else { 258 return (com.google.protobuf.ByteString) ref; 259 } 260 } 261 262 public static final int AUTOMATIC_SCALING_FIELD_NUMBER = 3; 263 /** 264 * 265 * 266 * <pre> 267 * Automatic scaling is based on request rate, response latencies, and other 268 * application metrics. Instances are dynamically created and destroyed as 269 * needed in order to handle traffic. 270 * </pre> 271 * 272 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 273 * 274 * @return Whether the automaticScaling field is set. 275 */ 276 @java.lang.Override hasAutomaticScaling()277 public boolean hasAutomaticScaling() { 278 return scalingCase_ == 3; 279 } 280 /** 281 * 282 * 283 * <pre> 284 * Automatic scaling is based on request rate, response latencies, and other 285 * application metrics. Instances are dynamically created and destroyed as 286 * needed in order to handle traffic. 287 * </pre> 288 * 289 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 290 * 291 * @return The automaticScaling. 292 */ 293 @java.lang.Override getAutomaticScaling()294 public com.google.appengine.v1.AutomaticScaling getAutomaticScaling() { 295 if (scalingCase_ == 3) { 296 return (com.google.appengine.v1.AutomaticScaling) scaling_; 297 } 298 return com.google.appengine.v1.AutomaticScaling.getDefaultInstance(); 299 } 300 /** 301 * 302 * 303 * <pre> 304 * Automatic scaling is based on request rate, response latencies, and other 305 * application metrics. Instances are dynamically created and destroyed as 306 * needed in order to handle traffic. 307 * </pre> 308 * 309 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 310 */ 311 @java.lang.Override getAutomaticScalingOrBuilder()312 public com.google.appengine.v1.AutomaticScalingOrBuilder getAutomaticScalingOrBuilder() { 313 if (scalingCase_ == 3) { 314 return (com.google.appengine.v1.AutomaticScaling) scaling_; 315 } 316 return com.google.appengine.v1.AutomaticScaling.getDefaultInstance(); 317 } 318 319 public static final int BASIC_SCALING_FIELD_NUMBER = 4; 320 /** 321 * 322 * 323 * <pre> 324 * A service with basic scaling will create an instance when the application 325 * receives a request. The instance will be turned down when the app becomes 326 * idle. Basic scaling is ideal for work that is intermittent or driven by 327 * user activity. 328 * </pre> 329 * 330 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 331 * 332 * @return Whether the basicScaling field is set. 333 */ 334 @java.lang.Override hasBasicScaling()335 public boolean hasBasicScaling() { 336 return scalingCase_ == 4; 337 } 338 /** 339 * 340 * 341 * <pre> 342 * A service with basic scaling will create an instance when the application 343 * receives a request. The instance will be turned down when the app becomes 344 * idle. Basic scaling is ideal for work that is intermittent or driven by 345 * user activity. 346 * </pre> 347 * 348 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 349 * 350 * @return The basicScaling. 351 */ 352 @java.lang.Override getBasicScaling()353 public com.google.appengine.v1.BasicScaling getBasicScaling() { 354 if (scalingCase_ == 4) { 355 return (com.google.appengine.v1.BasicScaling) scaling_; 356 } 357 return com.google.appengine.v1.BasicScaling.getDefaultInstance(); 358 } 359 /** 360 * 361 * 362 * <pre> 363 * A service with basic scaling will create an instance when the application 364 * receives a request. The instance will be turned down when the app becomes 365 * idle. Basic scaling is ideal for work that is intermittent or driven by 366 * user activity. 367 * </pre> 368 * 369 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 370 */ 371 @java.lang.Override getBasicScalingOrBuilder()372 public com.google.appengine.v1.BasicScalingOrBuilder getBasicScalingOrBuilder() { 373 if (scalingCase_ == 4) { 374 return (com.google.appengine.v1.BasicScaling) scaling_; 375 } 376 return com.google.appengine.v1.BasicScaling.getDefaultInstance(); 377 } 378 379 public static final int MANUAL_SCALING_FIELD_NUMBER = 5; 380 /** 381 * 382 * 383 * <pre> 384 * A service with manual scaling runs continuously, allowing you to perform 385 * complex initialization and rely on the state of its memory over time. 386 * Manually scaled versions are sometimes referred to as "backends". 387 * </pre> 388 * 389 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 390 * 391 * @return Whether the manualScaling field is set. 392 */ 393 @java.lang.Override hasManualScaling()394 public boolean hasManualScaling() { 395 return scalingCase_ == 5; 396 } 397 /** 398 * 399 * 400 * <pre> 401 * A service with manual scaling runs continuously, allowing you to perform 402 * complex initialization and rely on the state of its memory over time. 403 * Manually scaled versions are sometimes referred to as "backends". 404 * </pre> 405 * 406 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 407 * 408 * @return The manualScaling. 409 */ 410 @java.lang.Override getManualScaling()411 public com.google.appengine.v1.ManualScaling getManualScaling() { 412 if (scalingCase_ == 5) { 413 return (com.google.appengine.v1.ManualScaling) scaling_; 414 } 415 return com.google.appengine.v1.ManualScaling.getDefaultInstance(); 416 } 417 /** 418 * 419 * 420 * <pre> 421 * A service with manual scaling runs continuously, allowing you to perform 422 * complex initialization and rely on the state of its memory over time. 423 * Manually scaled versions are sometimes referred to as "backends". 424 * </pre> 425 * 426 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 427 */ 428 @java.lang.Override getManualScalingOrBuilder()429 public com.google.appengine.v1.ManualScalingOrBuilder getManualScalingOrBuilder() { 430 if (scalingCase_ == 5) { 431 return (com.google.appengine.v1.ManualScaling) scaling_; 432 } 433 return com.google.appengine.v1.ManualScaling.getDefaultInstance(); 434 } 435 436 public static final int INBOUND_SERVICES_FIELD_NUMBER = 6; 437 438 @SuppressWarnings("serial") 439 private java.util.List<java.lang.Integer> inboundServices_; 440 441 private static final com.google.protobuf.Internal.ListAdapter.Converter< 442 java.lang.Integer, com.google.appengine.v1.InboundServiceType> 443 inboundServices_converter_ = 444 new com.google.protobuf.Internal.ListAdapter.Converter< 445 java.lang.Integer, com.google.appengine.v1.InboundServiceType>() { 446 public com.google.appengine.v1.InboundServiceType convert(java.lang.Integer from) { 447 com.google.appengine.v1.InboundServiceType result = 448 com.google.appengine.v1.InboundServiceType.forNumber(from); 449 return result == null 450 ? com.google.appengine.v1.InboundServiceType.UNRECOGNIZED 451 : result; 452 } 453 }; 454 /** 455 * 456 * 457 * <pre> 458 * Before an application can receive email or XMPP messages, the application 459 * must be configured to enable the service. 460 * </pre> 461 * 462 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 463 * 464 * @return A list containing the inboundServices. 465 */ 466 @java.lang.Override getInboundServicesList()467 public java.util.List<com.google.appengine.v1.InboundServiceType> getInboundServicesList() { 468 return new com.google.protobuf.Internal.ListAdapter< 469 java.lang.Integer, com.google.appengine.v1.InboundServiceType>( 470 inboundServices_, inboundServices_converter_); 471 } 472 /** 473 * 474 * 475 * <pre> 476 * Before an application can receive email or XMPP messages, the application 477 * must be configured to enable the service. 478 * </pre> 479 * 480 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 481 * 482 * @return The count of inboundServices. 483 */ 484 @java.lang.Override getInboundServicesCount()485 public int getInboundServicesCount() { 486 return inboundServices_.size(); 487 } 488 /** 489 * 490 * 491 * <pre> 492 * Before an application can receive email or XMPP messages, the application 493 * must be configured to enable the service. 494 * </pre> 495 * 496 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 497 * 498 * @param index The index of the element to return. 499 * @return The inboundServices at the given index. 500 */ 501 @java.lang.Override getInboundServices(int index)502 public com.google.appengine.v1.InboundServiceType getInboundServices(int index) { 503 return inboundServices_converter_.convert(inboundServices_.get(index)); 504 } 505 /** 506 * 507 * 508 * <pre> 509 * Before an application can receive email or XMPP messages, the application 510 * must be configured to enable the service. 511 * </pre> 512 * 513 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 514 * 515 * @return A list containing the enum numeric values on the wire for inboundServices. 516 */ 517 @java.lang.Override getInboundServicesValueList()518 public java.util.List<java.lang.Integer> getInboundServicesValueList() { 519 return inboundServices_; 520 } 521 /** 522 * 523 * 524 * <pre> 525 * Before an application can receive email or XMPP messages, the application 526 * must be configured to enable the service. 527 * </pre> 528 * 529 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 530 * 531 * @param index The index of the value to return. 532 * @return The enum numeric value on the wire of inboundServices at the given index. 533 */ 534 @java.lang.Override getInboundServicesValue(int index)535 public int getInboundServicesValue(int index) { 536 return inboundServices_.get(index); 537 } 538 539 private int inboundServicesMemoizedSerializedSize; 540 541 public static final int INSTANCE_CLASS_FIELD_NUMBER = 7; 542 543 @SuppressWarnings("serial") 544 private volatile java.lang.Object instanceClass_ = ""; 545 /** 546 * 547 * 548 * <pre> 549 * Instance class that is used to run this version. Valid values are: 550 * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` 551 * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` 552 * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or 553 * BasicScaling. 554 * </pre> 555 * 556 * <code>string instance_class = 7;</code> 557 * 558 * @return The instanceClass. 559 */ 560 @java.lang.Override getInstanceClass()561 public java.lang.String getInstanceClass() { 562 java.lang.Object ref = instanceClass_; 563 if (ref instanceof java.lang.String) { 564 return (java.lang.String) ref; 565 } else { 566 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 567 java.lang.String s = bs.toStringUtf8(); 568 instanceClass_ = s; 569 return s; 570 } 571 } 572 /** 573 * 574 * 575 * <pre> 576 * Instance class that is used to run this version. Valid values are: 577 * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` 578 * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` 579 * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or 580 * BasicScaling. 581 * </pre> 582 * 583 * <code>string instance_class = 7;</code> 584 * 585 * @return The bytes for instanceClass. 586 */ 587 @java.lang.Override getInstanceClassBytes()588 public com.google.protobuf.ByteString getInstanceClassBytes() { 589 java.lang.Object ref = instanceClass_; 590 if (ref instanceof java.lang.String) { 591 com.google.protobuf.ByteString b = 592 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 593 instanceClass_ = b; 594 return b; 595 } else { 596 return (com.google.protobuf.ByteString) ref; 597 } 598 } 599 600 public static final int NETWORK_FIELD_NUMBER = 8; 601 private com.google.appengine.v1.Network network_; 602 /** 603 * 604 * 605 * <pre> 606 * Extra network settings. 607 * Only applicable in the App Engine flexible environment. 608 * </pre> 609 * 610 * <code>.google.appengine.v1.Network network = 8;</code> 611 * 612 * @return Whether the network field is set. 613 */ 614 @java.lang.Override hasNetwork()615 public boolean hasNetwork() { 616 return network_ != null; 617 } 618 /** 619 * 620 * 621 * <pre> 622 * Extra network settings. 623 * Only applicable in the App Engine flexible environment. 624 * </pre> 625 * 626 * <code>.google.appengine.v1.Network network = 8;</code> 627 * 628 * @return The network. 629 */ 630 @java.lang.Override getNetwork()631 public com.google.appengine.v1.Network getNetwork() { 632 return network_ == null ? com.google.appengine.v1.Network.getDefaultInstance() : network_; 633 } 634 /** 635 * 636 * 637 * <pre> 638 * Extra network settings. 639 * Only applicable in the App Engine flexible environment. 640 * </pre> 641 * 642 * <code>.google.appengine.v1.Network network = 8;</code> 643 */ 644 @java.lang.Override getNetworkOrBuilder()645 public com.google.appengine.v1.NetworkOrBuilder getNetworkOrBuilder() { 646 return network_ == null ? com.google.appengine.v1.Network.getDefaultInstance() : network_; 647 } 648 649 public static final int ZONES_FIELD_NUMBER = 118; 650 651 @SuppressWarnings("serial") 652 private com.google.protobuf.LazyStringList zones_; 653 /** 654 * 655 * 656 * <pre> 657 * The Google Compute Engine zones that are supported by this version in the 658 * App Engine flexible environment. Deprecated. 659 * </pre> 660 * 661 * <code>repeated string zones = 118;</code> 662 * 663 * @return A list containing the zones. 664 */ getZonesList()665 public com.google.protobuf.ProtocolStringList getZonesList() { 666 return zones_; 667 } 668 /** 669 * 670 * 671 * <pre> 672 * The Google Compute Engine zones that are supported by this version in the 673 * App Engine flexible environment. Deprecated. 674 * </pre> 675 * 676 * <code>repeated string zones = 118;</code> 677 * 678 * @return The count of zones. 679 */ getZonesCount()680 public int getZonesCount() { 681 return zones_.size(); 682 } 683 /** 684 * 685 * 686 * <pre> 687 * The Google Compute Engine zones that are supported by this version in the 688 * App Engine flexible environment. Deprecated. 689 * </pre> 690 * 691 * <code>repeated string zones = 118;</code> 692 * 693 * @param index The index of the element to return. 694 * @return The zones at the given index. 695 */ getZones(int index)696 public java.lang.String getZones(int index) { 697 return zones_.get(index); 698 } 699 /** 700 * 701 * 702 * <pre> 703 * The Google Compute Engine zones that are supported by this version in the 704 * App Engine flexible environment. Deprecated. 705 * </pre> 706 * 707 * <code>repeated string zones = 118;</code> 708 * 709 * @param index The index of the value to return. 710 * @return The bytes of the zones at the given index. 711 */ getZonesBytes(int index)712 public com.google.protobuf.ByteString getZonesBytes(int index) { 713 return zones_.getByteString(index); 714 } 715 716 public static final int RESOURCES_FIELD_NUMBER = 9; 717 private com.google.appengine.v1.Resources resources_; 718 /** 719 * 720 * 721 * <pre> 722 * Machine resources for this version. 723 * Only applicable in the App Engine flexible environment. 724 * </pre> 725 * 726 * <code>.google.appengine.v1.Resources resources = 9;</code> 727 * 728 * @return Whether the resources field is set. 729 */ 730 @java.lang.Override hasResources()731 public boolean hasResources() { 732 return resources_ != null; 733 } 734 /** 735 * 736 * 737 * <pre> 738 * Machine resources for this version. 739 * Only applicable in the App Engine flexible environment. 740 * </pre> 741 * 742 * <code>.google.appengine.v1.Resources resources = 9;</code> 743 * 744 * @return The resources. 745 */ 746 @java.lang.Override getResources()747 public com.google.appengine.v1.Resources getResources() { 748 return resources_ == null ? com.google.appengine.v1.Resources.getDefaultInstance() : resources_; 749 } 750 /** 751 * 752 * 753 * <pre> 754 * Machine resources for this version. 755 * Only applicable in the App Engine flexible environment. 756 * </pre> 757 * 758 * <code>.google.appengine.v1.Resources resources = 9;</code> 759 */ 760 @java.lang.Override getResourcesOrBuilder()761 public com.google.appengine.v1.ResourcesOrBuilder getResourcesOrBuilder() { 762 return resources_ == null ? com.google.appengine.v1.Resources.getDefaultInstance() : resources_; 763 } 764 765 public static final int RUNTIME_FIELD_NUMBER = 10; 766 767 @SuppressWarnings("serial") 768 private volatile java.lang.Object runtime_ = ""; 769 /** 770 * 771 * 772 * <pre> 773 * Desired runtime. Example: `python27`. 774 * </pre> 775 * 776 * <code>string runtime = 10;</code> 777 * 778 * @return The runtime. 779 */ 780 @java.lang.Override getRuntime()781 public java.lang.String getRuntime() { 782 java.lang.Object ref = runtime_; 783 if (ref instanceof java.lang.String) { 784 return (java.lang.String) ref; 785 } else { 786 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 787 java.lang.String s = bs.toStringUtf8(); 788 runtime_ = s; 789 return s; 790 } 791 } 792 /** 793 * 794 * 795 * <pre> 796 * Desired runtime. Example: `python27`. 797 * </pre> 798 * 799 * <code>string runtime = 10;</code> 800 * 801 * @return The bytes for runtime. 802 */ 803 @java.lang.Override getRuntimeBytes()804 public com.google.protobuf.ByteString getRuntimeBytes() { 805 java.lang.Object ref = runtime_; 806 if (ref instanceof java.lang.String) { 807 com.google.protobuf.ByteString b = 808 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 809 runtime_ = b; 810 return b; 811 } else { 812 return (com.google.protobuf.ByteString) ref; 813 } 814 } 815 816 public static final int RUNTIME_CHANNEL_FIELD_NUMBER = 117; 817 818 @SuppressWarnings("serial") 819 private volatile java.lang.Object runtimeChannel_ = ""; 820 /** 821 * 822 * 823 * <pre> 824 * The channel of the runtime to use. Only available for some 825 * runtimes. Defaults to the `default` channel. 826 * </pre> 827 * 828 * <code>string runtime_channel = 117;</code> 829 * 830 * @return The runtimeChannel. 831 */ 832 @java.lang.Override getRuntimeChannel()833 public java.lang.String getRuntimeChannel() { 834 java.lang.Object ref = runtimeChannel_; 835 if (ref instanceof java.lang.String) { 836 return (java.lang.String) ref; 837 } else { 838 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 839 java.lang.String s = bs.toStringUtf8(); 840 runtimeChannel_ = s; 841 return s; 842 } 843 } 844 /** 845 * 846 * 847 * <pre> 848 * The channel of the runtime to use. Only available for some 849 * runtimes. Defaults to the `default` channel. 850 * </pre> 851 * 852 * <code>string runtime_channel = 117;</code> 853 * 854 * @return The bytes for runtimeChannel. 855 */ 856 @java.lang.Override getRuntimeChannelBytes()857 public com.google.protobuf.ByteString getRuntimeChannelBytes() { 858 java.lang.Object ref = runtimeChannel_; 859 if (ref instanceof java.lang.String) { 860 com.google.protobuf.ByteString b = 861 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 862 runtimeChannel_ = b; 863 return b; 864 } else { 865 return (com.google.protobuf.ByteString) ref; 866 } 867 } 868 869 public static final int THREADSAFE_FIELD_NUMBER = 11; 870 private boolean threadsafe_ = false; 871 /** 872 * 873 * 874 * <pre> 875 * Whether multiple requests can be dispatched to this version at once. 876 * </pre> 877 * 878 * <code>bool threadsafe = 11;</code> 879 * 880 * @return The threadsafe. 881 */ 882 @java.lang.Override getThreadsafe()883 public boolean getThreadsafe() { 884 return threadsafe_; 885 } 886 887 public static final int VM_FIELD_NUMBER = 12; 888 private boolean vm_ = false; 889 /** 890 * 891 * 892 * <pre> 893 * Whether to deploy this version in a container on a virtual machine. 894 * </pre> 895 * 896 * <code>bool vm = 12;</code> 897 * 898 * @return The vm. 899 */ 900 @java.lang.Override getVm()901 public boolean getVm() { 902 return vm_; 903 } 904 905 public static final int APP_ENGINE_APIS_FIELD_NUMBER = 128; 906 private boolean appEngineApis_ = false; 907 /** 908 * 909 * 910 * <pre> 911 * Allows App Engine second generation runtimes to access the legacy bundled 912 * services. 913 * </pre> 914 * 915 * <code>bool app_engine_apis = 128;</code> 916 * 917 * @return The appEngineApis. 918 */ 919 @java.lang.Override getAppEngineApis()920 public boolean getAppEngineApis() { 921 return appEngineApis_; 922 } 923 924 public static final int BETA_SETTINGS_FIELD_NUMBER = 13; 925 926 private static final class BetaSettingsDefaultEntryHolder { 927 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 928 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 929 com.google.appengine.v1.VersionProto 930 .internal_static_google_appengine_v1_Version_BetaSettingsEntry_descriptor, 931 com.google.protobuf.WireFormat.FieldType.STRING, 932 "", 933 com.google.protobuf.WireFormat.FieldType.STRING, 934 ""); 935 } 936 937 @SuppressWarnings("serial") 938 private com.google.protobuf.MapField<java.lang.String, java.lang.String> betaSettings_; 939 940 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetBetaSettings()941 internalGetBetaSettings() { 942 if (betaSettings_ == null) { 943 return com.google.protobuf.MapField.emptyMapField( 944 BetaSettingsDefaultEntryHolder.defaultEntry); 945 } 946 return betaSettings_; 947 } 948 getBetaSettingsCount()949 public int getBetaSettingsCount() { 950 return internalGetBetaSettings().getMap().size(); 951 } 952 /** 953 * 954 * 955 * <pre> 956 * Metadata settings that are supplied to this version to enable 957 * beta runtime features. 958 * </pre> 959 * 960 * <code>map<string, string> beta_settings = 13;</code> 961 */ 962 @java.lang.Override containsBetaSettings(java.lang.String key)963 public boolean containsBetaSettings(java.lang.String key) { 964 if (key == null) { 965 throw new NullPointerException("map key"); 966 } 967 return internalGetBetaSettings().getMap().containsKey(key); 968 } 969 /** Use {@link #getBetaSettingsMap()} instead. */ 970 @java.lang.Override 971 @java.lang.Deprecated getBetaSettings()972 public java.util.Map<java.lang.String, java.lang.String> getBetaSettings() { 973 return getBetaSettingsMap(); 974 } 975 /** 976 * 977 * 978 * <pre> 979 * Metadata settings that are supplied to this version to enable 980 * beta runtime features. 981 * </pre> 982 * 983 * <code>map<string, string> beta_settings = 13;</code> 984 */ 985 @java.lang.Override getBetaSettingsMap()986 public java.util.Map<java.lang.String, java.lang.String> getBetaSettingsMap() { 987 return internalGetBetaSettings().getMap(); 988 } 989 /** 990 * 991 * 992 * <pre> 993 * Metadata settings that are supplied to this version to enable 994 * beta runtime features. 995 * </pre> 996 * 997 * <code>map<string, string> beta_settings = 13;</code> 998 */ 999 @java.lang.Override getBetaSettingsOrDefault( java.lang.String key, java.lang.String defaultValue)1000 public /* nullable */ java.lang.String getBetaSettingsOrDefault( 1001 java.lang.String key, 1002 /* nullable */ 1003 java.lang.String defaultValue) { 1004 if (key == null) { 1005 throw new NullPointerException("map key"); 1006 } 1007 java.util.Map<java.lang.String, java.lang.String> map = internalGetBetaSettings().getMap(); 1008 return map.containsKey(key) ? map.get(key) : defaultValue; 1009 } 1010 /** 1011 * 1012 * 1013 * <pre> 1014 * Metadata settings that are supplied to this version to enable 1015 * beta runtime features. 1016 * </pre> 1017 * 1018 * <code>map<string, string> beta_settings = 13;</code> 1019 */ 1020 @java.lang.Override getBetaSettingsOrThrow(java.lang.String key)1021 public java.lang.String getBetaSettingsOrThrow(java.lang.String key) { 1022 if (key == null) { 1023 throw new NullPointerException("map key"); 1024 } 1025 java.util.Map<java.lang.String, java.lang.String> map = internalGetBetaSettings().getMap(); 1026 if (!map.containsKey(key)) { 1027 throw new java.lang.IllegalArgumentException(); 1028 } 1029 return map.get(key); 1030 } 1031 1032 public static final int ENV_FIELD_NUMBER = 14; 1033 1034 @SuppressWarnings("serial") 1035 private volatile java.lang.Object env_ = ""; 1036 /** 1037 * 1038 * 1039 * <pre> 1040 * App Engine execution environment for this version. 1041 * Defaults to `standard`. 1042 * </pre> 1043 * 1044 * <code>string env = 14;</code> 1045 * 1046 * @return The env. 1047 */ 1048 @java.lang.Override getEnv()1049 public java.lang.String getEnv() { 1050 java.lang.Object ref = env_; 1051 if (ref instanceof java.lang.String) { 1052 return (java.lang.String) ref; 1053 } else { 1054 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1055 java.lang.String s = bs.toStringUtf8(); 1056 env_ = s; 1057 return s; 1058 } 1059 } 1060 /** 1061 * 1062 * 1063 * <pre> 1064 * App Engine execution environment for this version. 1065 * Defaults to `standard`. 1066 * </pre> 1067 * 1068 * <code>string env = 14;</code> 1069 * 1070 * @return The bytes for env. 1071 */ 1072 @java.lang.Override getEnvBytes()1073 public com.google.protobuf.ByteString getEnvBytes() { 1074 java.lang.Object ref = env_; 1075 if (ref instanceof java.lang.String) { 1076 com.google.protobuf.ByteString b = 1077 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1078 env_ = b; 1079 return b; 1080 } else { 1081 return (com.google.protobuf.ByteString) ref; 1082 } 1083 } 1084 1085 public static final int SERVING_STATUS_FIELD_NUMBER = 15; 1086 private int servingStatus_ = 0; 1087 /** 1088 * 1089 * 1090 * <pre> 1091 * Current serving status of this version. Only the versions with a 1092 * `SERVING` status create instances and can be billed. 1093 * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. 1094 * </pre> 1095 * 1096 * <code>.google.appengine.v1.ServingStatus serving_status = 15;</code> 1097 * 1098 * @return The enum numeric value on the wire for servingStatus. 1099 */ 1100 @java.lang.Override getServingStatusValue()1101 public int getServingStatusValue() { 1102 return servingStatus_; 1103 } 1104 /** 1105 * 1106 * 1107 * <pre> 1108 * Current serving status of this version. Only the versions with a 1109 * `SERVING` status create instances and can be billed. 1110 * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. 1111 * </pre> 1112 * 1113 * <code>.google.appengine.v1.ServingStatus serving_status = 15;</code> 1114 * 1115 * @return The servingStatus. 1116 */ 1117 @java.lang.Override getServingStatus()1118 public com.google.appengine.v1.ServingStatus getServingStatus() { 1119 com.google.appengine.v1.ServingStatus result = 1120 com.google.appengine.v1.ServingStatus.forNumber(servingStatus_); 1121 return result == null ? com.google.appengine.v1.ServingStatus.UNRECOGNIZED : result; 1122 } 1123 1124 public static final int CREATED_BY_FIELD_NUMBER = 16; 1125 1126 @SuppressWarnings("serial") 1127 private volatile java.lang.Object createdBy_ = ""; 1128 /** 1129 * 1130 * 1131 * <pre> 1132 * Email address of the user who created this version. 1133 * @OutputOnly 1134 * </pre> 1135 * 1136 * <code>string created_by = 16;</code> 1137 * 1138 * @return The createdBy. 1139 */ 1140 @java.lang.Override getCreatedBy()1141 public java.lang.String getCreatedBy() { 1142 java.lang.Object ref = createdBy_; 1143 if (ref instanceof java.lang.String) { 1144 return (java.lang.String) ref; 1145 } else { 1146 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1147 java.lang.String s = bs.toStringUtf8(); 1148 createdBy_ = s; 1149 return s; 1150 } 1151 } 1152 /** 1153 * 1154 * 1155 * <pre> 1156 * Email address of the user who created this version. 1157 * @OutputOnly 1158 * </pre> 1159 * 1160 * <code>string created_by = 16;</code> 1161 * 1162 * @return The bytes for createdBy. 1163 */ 1164 @java.lang.Override getCreatedByBytes()1165 public com.google.protobuf.ByteString getCreatedByBytes() { 1166 java.lang.Object ref = createdBy_; 1167 if (ref instanceof java.lang.String) { 1168 com.google.protobuf.ByteString b = 1169 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1170 createdBy_ = b; 1171 return b; 1172 } else { 1173 return (com.google.protobuf.ByteString) ref; 1174 } 1175 } 1176 1177 public static final int CREATE_TIME_FIELD_NUMBER = 17; 1178 private com.google.protobuf.Timestamp createTime_; 1179 /** 1180 * 1181 * 1182 * <pre> 1183 * Time that this version was created. 1184 * @OutputOnly 1185 * </pre> 1186 * 1187 * <code>.google.protobuf.Timestamp create_time = 17;</code> 1188 * 1189 * @return Whether the createTime field is set. 1190 */ 1191 @java.lang.Override hasCreateTime()1192 public boolean hasCreateTime() { 1193 return createTime_ != null; 1194 } 1195 /** 1196 * 1197 * 1198 * <pre> 1199 * Time that this version was created. 1200 * @OutputOnly 1201 * </pre> 1202 * 1203 * <code>.google.protobuf.Timestamp create_time = 17;</code> 1204 * 1205 * @return The createTime. 1206 */ 1207 @java.lang.Override getCreateTime()1208 public com.google.protobuf.Timestamp getCreateTime() { 1209 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 1210 } 1211 /** 1212 * 1213 * 1214 * <pre> 1215 * Time that this version was created. 1216 * @OutputOnly 1217 * </pre> 1218 * 1219 * <code>.google.protobuf.Timestamp create_time = 17;</code> 1220 */ 1221 @java.lang.Override getCreateTimeOrBuilder()1222 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 1223 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 1224 } 1225 1226 public static final int DISK_USAGE_BYTES_FIELD_NUMBER = 18; 1227 private long diskUsageBytes_ = 0L; 1228 /** 1229 * 1230 * 1231 * <pre> 1232 * Total size in bytes of all the files that are included in this version 1233 * and currently hosted on the App Engine disk. 1234 * @OutputOnly 1235 * </pre> 1236 * 1237 * <code>int64 disk_usage_bytes = 18;</code> 1238 * 1239 * @return The diskUsageBytes. 1240 */ 1241 @java.lang.Override getDiskUsageBytes()1242 public long getDiskUsageBytes() { 1243 return diskUsageBytes_; 1244 } 1245 1246 public static final int RUNTIME_API_VERSION_FIELD_NUMBER = 21; 1247 1248 @SuppressWarnings("serial") 1249 private volatile java.lang.Object runtimeApiVersion_ = ""; 1250 /** 1251 * 1252 * 1253 * <pre> 1254 * The version of the API in the given runtime environment. Please see the 1255 * app.yaml reference for valid values at 1256 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref 1257 * </pre> 1258 * 1259 * <code>string runtime_api_version = 21;</code> 1260 * 1261 * @return The runtimeApiVersion. 1262 */ 1263 @java.lang.Override getRuntimeApiVersion()1264 public java.lang.String getRuntimeApiVersion() { 1265 java.lang.Object ref = runtimeApiVersion_; 1266 if (ref instanceof java.lang.String) { 1267 return (java.lang.String) ref; 1268 } else { 1269 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1270 java.lang.String s = bs.toStringUtf8(); 1271 runtimeApiVersion_ = s; 1272 return s; 1273 } 1274 } 1275 /** 1276 * 1277 * 1278 * <pre> 1279 * The version of the API in the given runtime environment. Please see the 1280 * app.yaml reference for valid values at 1281 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref 1282 * </pre> 1283 * 1284 * <code>string runtime_api_version = 21;</code> 1285 * 1286 * @return The bytes for runtimeApiVersion. 1287 */ 1288 @java.lang.Override getRuntimeApiVersionBytes()1289 public com.google.protobuf.ByteString getRuntimeApiVersionBytes() { 1290 java.lang.Object ref = runtimeApiVersion_; 1291 if (ref instanceof java.lang.String) { 1292 com.google.protobuf.ByteString b = 1293 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1294 runtimeApiVersion_ = b; 1295 return b; 1296 } else { 1297 return (com.google.protobuf.ByteString) ref; 1298 } 1299 } 1300 1301 public static final int RUNTIME_MAIN_EXECUTABLE_PATH_FIELD_NUMBER = 22; 1302 1303 @SuppressWarnings("serial") 1304 private volatile java.lang.Object runtimeMainExecutablePath_ = ""; 1305 /** 1306 * 1307 * 1308 * <pre> 1309 * The path or name of the app's main executable. 1310 * </pre> 1311 * 1312 * <code>string runtime_main_executable_path = 22;</code> 1313 * 1314 * @return The runtimeMainExecutablePath. 1315 */ 1316 @java.lang.Override getRuntimeMainExecutablePath()1317 public java.lang.String getRuntimeMainExecutablePath() { 1318 java.lang.Object ref = runtimeMainExecutablePath_; 1319 if (ref instanceof java.lang.String) { 1320 return (java.lang.String) ref; 1321 } else { 1322 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1323 java.lang.String s = bs.toStringUtf8(); 1324 runtimeMainExecutablePath_ = s; 1325 return s; 1326 } 1327 } 1328 /** 1329 * 1330 * 1331 * <pre> 1332 * The path or name of the app's main executable. 1333 * </pre> 1334 * 1335 * <code>string runtime_main_executable_path = 22;</code> 1336 * 1337 * @return The bytes for runtimeMainExecutablePath. 1338 */ 1339 @java.lang.Override getRuntimeMainExecutablePathBytes()1340 public com.google.protobuf.ByteString getRuntimeMainExecutablePathBytes() { 1341 java.lang.Object ref = runtimeMainExecutablePath_; 1342 if (ref instanceof java.lang.String) { 1343 com.google.protobuf.ByteString b = 1344 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1345 runtimeMainExecutablePath_ = b; 1346 return b; 1347 } else { 1348 return (com.google.protobuf.ByteString) ref; 1349 } 1350 } 1351 1352 public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 127; 1353 1354 @SuppressWarnings("serial") 1355 private volatile java.lang.Object serviceAccount_ = ""; 1356 /** 1357 * 1358 * 1359 * <pre> 1360 * The identity that the deployed version will run as. 1361 * Admin API will use the App Engine Appspot service account as default if 1362 * this field is neither provided in app.yaml file nor through CLI flag. 1363 * </pre> 1364 * 1365 * <code>string service_account = 127;</code> 1366 * 1367 * @return The serviceAccount. 1368 */ 1369 @java.lang.Override getServiceAccount()1370 public java.lang.String getServiceAccount() { 1371 java.lang.Object ref = serviceAccount_; 1372 if (ref instanceof java.lang.String) { 1373 return (java.lang.String) ref; 1374 } else { 1375 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1376 java.lang.String s = bs.toStringUtf8(); 1377 serviceAccount_ = s; 1378 return s; 1379 } 1380 } 1381 /** 1382 * 1383 * 1384 * <pre> 1385 * The identity that the deployed version will run as. 1386 * Admin API will use the App Engine Appspot service account as default if 1387 * this field is neither provided in app.yaml file nor through CLI flag. 1388 * </pre> 1389 * 1390 * <code>string service_account = 127;</code> 1391 * 1392 * @return The bytes for serviceAccount. 1393 */ 1394 @java.lang.Override getServiceAccountBytes()1395 public com.google.protobuf.ByteString getServiceAccountBytes() { 1396 java.lang.Object ref = serviceAccount_; 1397 if (ref instanceof java.lang.String) { 1398 com.google.protobuf.ByteString b = 1399 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1400 serviceAccount_ = b; 1401 return b; 1402 } else { 1403 return (com.google.protobuf.ByteString) ref; 1404 } 1405 } 1406 1407 public static final int HANDLERS_FIELD_NUMBER = 100; 1408 1409 @SuppressWarnings("serial") 1410 private java.util.List<com.google.appengine.v1.UrlMap> handlers_; 1411 /** 1412 * 1413 * 1414 * <pre> 1415 * An ordered list of URL-matching patterns that should be applied to incoming 1416 * requests. The first matching URL handles the request and other request 1417 * handlers are not attempted. 1418 * Only returned in `GET` requests if `view=FULL` is set. 1419 * </pre> 1420 * 1421 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 1422 */ 1423 @java.lang.Override getHandlersList()1424 public java.util.List<com.google.appengine.v1.UrlMap> getHandlersList() { 1425 return handlers_; 1426 } 1427 /** 1428 * 1429 * 1430 * <pre> 1431 * An ordered list of URL-matching patterns that should be applied to incoming 1432 * requests. The first matching URL handles the request and other request 1433 * handlers are not attempted. 1434 * Only returned in `GET` requests if `view=FULL` is set. 1435 * </pre> 1436 * 1437 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 1438 */ 1439 @java.lang.Override 1440 public java.util.List<? extends com.google.appengine.v1.UrlMapOrBuilder> getHandlersOrBuilderList()1441 getHandlersOrBuilderList() { 1442 return handlers_; 1443 } 1444 /** 1445 * 1446 * 1447 * <pre> 1448 * An ordered list of URL-matching patterns that should be applied to incoming 1449 * requests. The first matching URL handles the request and other request 1450 * handlers are not attempted. 1451 * Only returned in `GET` requests if `view=FULL` is set. 1452 * </pre> 1453 * 1454 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 1455 */ 1456 @java.lang.Override getHandlersCount()1457 public int getHandlersCount() { 1458 return handlers_.size(); 1459 } 1460 /** 1461 * 1462 * 1463 * <pre> 1464 * An ordered list of URL-matching patterns that should be applied to incoming 1465 * requests. The first matching URL handles the request and other request 1466 * handlers are not attempted. 1467 * Only returned in `GET` requests if `view=FULL` is set. 1468 * </pre> 1469 * 1470 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 1471 */ 1472 @java.lang.Override getHandlers(int index)1473 public com.google.appengine.v1.UrlMap getHandlers(int index) { 1474 return handlers_.get(index); 1475 } 1476 /** 1477 * 1478 * 1479 * <pre> 1480 * An ordered list of URL-matching patterns that should be applied to incoming 1481 * requests. The first matching URL handles the request and other request 1482 * handlers are not attempted. 1483 * Only returned in `GET` requests if `view=FULL` is set. 1484 * </pre> 1485 * 1486 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 1487 */ 1488 @java.lang.Override getHandlersOrBuilder(int index)1489 public com.google.appengine.v1.UrlMapOrBuilder getHandlersOrBuilder(int index) { 1490 return handlers_.get(index); 1491 } 1492 1493 public static final int ERROR_HANDLERS_FIELD_NUMBER = 101; 1494 1495 @SuppressWarnings("serial") 1496 private java.util.List<com.google.appengine.v1.ErrorHandler> errorHandlers_; 1497 /** 1498 * 1499 * 1500 * <pre> 1501 * Custom static error pages. Limited to 10KB per page. 1502 * Only returned in `GET` requests if `view=FULL` is set. 1503 * </pre> 1504 * 1505 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 1506 */ 1507 @java.lang.Override getErrorHandlersList()1508 public java.util.List<com.google.appengine.v1.ErrorHandler> getErrorHandlersList() { 1509 return errorHandlers_; 1510 } 1511 /** 1512 * 1513 * 1514 * <pre> 1515 * Custom static error pages. Limited to 10KB per page. 1516 * Only returned in `GET` requests if `view=FULL` is set. 1517 * </pre> 1518 * 1519 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 1520 */ 1521 @java.lang.Override 1522 public java.util.List<? extends com.google.appengine.v1.ErrorHandlerOrBuilder> getErrorHandlersOrBuilderList()1523 getErrorHandlersOrBuilderList() { 1524 return errorHandlers_; 1525 } 1526 /** 1527 * 1528 * 1529 * <pre> 1530 * Custom static error pages. Limited to 10KB per page. 1531 * Only returned in `GET` requests if `view=FULL` is set. 1532 * </pre> 1533 * 1534 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 1535 */ 1536 @java.lang.Override getErrorHandlersCount()1537 public int getErrorHandlersCount() { 1538 return errorHandlers_.size(); 1539 } 1540 /** 1541 * 1542 * 1543 * <pre> 1544 * Custom static error pages. Limited to 10KB per page. 1545 * Only returned in `GET` requests if `view=FULL` is set. 1546 * </pre> 1547 * 1548 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 1549 */ 1550 @java.lang.Override getErrorHandlers(int index)1551 public com.google.appengine.v1.ErrorHandler getErrorHandlers(int index) { 1552 return errorHandlers_.get(index); 1553 } 1554 /** 1555 * 1556 * 1557 * <pre> 1558 * Custom static error pages. Limited to 10KB per page. 1559 * Only returned in `GET` requests if `view=FULL` is set. 1560 * </pre> 1561 * 1562 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 1563 */ 1564 @java.lang.Override getErrorHandlersOrBuilder(int index)1565 public com.google.appengine.v1.ErrorHandlerOrBuilder getErrorHandlersOrBuilder(int index) { 1566 return errorHandlers_.get(index); 1567 } 1568 1569 public static final int LIBRARIES_FIELD_NUMBER = 102; 1570 1571 @SuppressWarnings("serial") 1572 private java.util.List<com.google.appengine.v1.Library> libraries_; 1573 /** 1574 * 1575 * 1576 * <pre> 1577 * Configuration for third-party Python runtime libraries that are required 1578 * by the application. 1579 * Only returned in `GET` requests if `view=FULL` is set. 1580 * </pre> 1581 * 1582 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 1583 */ 1584 @java.lang.Override getLibrariesList()1585 public java.util.List<com.google.appengine.v1.Library> getLibrariesList() { 1586 return libraries_; 1587 } 1588 /** 1589 * 1590 * 1591 * <pre> 1592 * Configuration for third-party Python runtime libraries that are required 1593 * by the application. 1594 * Only returned in `GET` requests if `view=FULL` is set. 1595 * </pre> 1596 * 1597 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 1598 */ 1599 @java.lang.Override 1600 public java.util.List<? extends com.google.appengine.v1.LibraryOrBuilder> getLibrariesOrBuilderList()1601 getLibrariesOrBuilderList() { 1602 return libraries_; 1603 } 1604 /** 1605 * 1606 * 1607 * <pre> 1608 * Configuration for third-party Python runtime libraries that are required 1609 * by the application. 1610 * Only returned in `GET` requests if `view=FULL` is set. 1611 * </pre> 1612 * 1613 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 1614 */ 1615 @java.lang.Override getLibrariesCount()1616 public int getLibrariesCount() { 1617 return libraries_.size(); 1618 } 1619 /** 1620 * 1621 * 1622 * <pre> 1623 * Configuration for third-party Python runtime libraries that are required 1624 * by the application. 1625 * Only returned in `GET` requests if `view=FULL` is set. 1626 * </pre> 1627 * 1628 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 1629 */ 1630 @java.lang.Override getLibraries(int index)1631 public com.google.appengine.v1.Library getLibraries(int index) { 1632 return libraries_.get(index); 1633 } 1634 /** 1635 * 1636 * 1637 * <pre> 1638 * Configuration for third-party Python runtime libraries that are required 1639 * by the application. 1640 * Only returned in `GET` requests if `view=FULL` is set. 1641 * </pre> 1642 * 1643 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 1644 */ 1645 @java.lang.Override getLibrariesOrBuilder(int index)1646 public com.google.appengine.v1.LibraryOrBuilder getLibrariesOrBuilder(int index) { 1647 return libraries_.get(index); 1648 } 1649 1650 public static final int API_CONFIG_FIELD_NUMBER = 103; 1651 private com.google.appengine.v1.ApiConfigHandler apiConfig_; 1652 /** 1653 * 1654 * 1655 * <pre> 1656 * Serving configuration for 1657 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 1658 * Only returned in `GET` requests if `view=FULL` is set. 1659 * </pre> 1660 * 1661 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 1662 * 1663 * @return Whether the apiConfig field is set. 1664 */ 1665 @java.lang.Override hasApiConfig()1666 public boolean hasApiConfig() { 1667 return apiConfig_ != null; 1668 } 1669 /** 1670 * 1671 * 1672 * <pre> 1673 * Serving configuration for 1674 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 1675 * Only returned in `GET` requests if `view=FULL` is set. 1676 * </pre> 1677 * 1678 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 1679 * 1680 * @return The apiConfig. 1681 */ 1682 @java.lang.Override getApiConfig()1683 public com.google.appengine.v1.ApiConfigHandler getApiConfig() { 1684 return apiConfig_ == null 1685 ? com.google.appengine.v1.ApiConfigHandler.getDefaultInstance() 1686 : apiConfig_; 1687 } 1688 /** 1689 * 1690 * 1691 * <pre> 1692 * Serving configuration for 1693 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 1694 * Only returned in `GET` requests if `view=FULL` is set. 1695 * </pre> 1696 * 1697 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 1698 */ 1699 @java.lang.Override getApiConfigOrBuilder()1700 public com.google.appengine.v1.ApiConfigHandlerOrBuilder getApiConfigOrBuilder() { 1701 return apiConfig_ == null 1702 ? com.google.appengine.v1.ApiConfigHandler.getDefaultInstance() 1703 : apiConfig_; 1704 } 1705 1706 public static final int ENV_VARIABLES_FIELD_NUMBER = 104; 1707 1708 private static final class EnvVariablesDefaultEntryHolder { 1709 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 1710 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 1711 com.google.appengine.v1.VersionProto 1712 .internal_static_google_appengine_v1_Version_EnvVariablesEntry_descriptor, 1713 com.google.protobuf.WireFormat.FieldType.STRING, 1714 "", 1715 com.google.protobuf.WireFormat.FieldType.STRING, 1716 ""); 1717 } 1718 1719 @SuppressWarnings("serial") 1720 private com.google.protobuf.MapField<java.lang.String, java.lang.String> envVariables_; 1721 1722 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetEnvVariables()1723 internalGetEnvVariables() { 1724 if (envVariables_ == null) { 1725 return com.google.protobuf.MapField.emptyMapField( 1726 EnvVariablesDefaultEntryHolder.defaultEntry); 1727 } 1728 return envVariables_; 1729 } 1730 getEnvVariablesCount()1731 public int getEnvVariablesCount() { 1732 return internalGetEnvVariables().getMap().size(); 1733 } 1734 /** 1735 * 1736 * 1737 * <pre> 1738 * Environment variables available to the application. 1739 * Only returned in `GET` requests if `view=FULL` is set. 1740 * </pre> 1741 * 1742 * <code>map<string, string> env_variables = 104;</code> 1743 */ 1744 @java.lang.Override containsEnvVariables(java.lang.String key)1745 public boolean containsEnvVariables(java.lang.String key) { 1746 if (key == null) { 1747 throw new NullPointerException("map key"); 1748 } 1749 return internalGetEnvVariables().getMap().containsKey(key); 1750 } 1751 /** Use {@link #getEnvVariablesMap()} instead. */ 1752 @java.lang.Override 1753 @java.lang.Deprecated getEnvVariables()1754 public java.util.Map<java.lang.String, java.lang.String> getEnvVariables() { 1755 return getEnvVariablesMap(); 1756 } 1757 /** 1758 * 1759 * 1760 * <pre> 1761 * Environment variables available to the application. 1762 * Only returned in `GET` requests if `view=FULL` is set. 1763 * </pre> 1764 * 1765 * <code>map<string, string> env_variables = 104;</code> 1766 */ 1767 @java.lang.Override getEnvVariablesMap()1768 public java.util.Map<java.lang.String, java.lang.String> getEnvVariablesMap() { 1769 return internalGetEnvVariables().getMap(); 1770 } 1771 /** 1772 * 1773 * 1774 * <pre> 1775 * Environment variables available to the application. 1776 * Only returned in `GET` requests if `view=FULL` is set. 1777 * </pre> 1778 * 1779 * <code>map<string, string> env_variables = 104;</code> 1780 */ 1781 @java.lang.Override getEnvVariablesOrDefault( java.lang.String key, java.lang.String defaultValue)1782 public /* nullable */ java.lang.String getEnvVariablesOrDefault( 1783 java.lang.String key, 1784 /* nullable */ 1785 java.lang.String defaultValue) { 1786 if (key == null) { 1787 throw new NullPointerException("map key"); 1788 } 1789 java.util.Map<java.lang.String, java.lang.String> map = internalGetEnvVariables().getMap(); 1790 return map.containsKey(key) ? map.get(key) : defaultValue; 1791 } 1792 /** 1793 * 1794 * 1795 * <pre> 1796 * Environment variables available to the application. 1797 * Only returned in `GET` requests if `view=FULL` is set. 1798 * </pre> 1799 * 1800 * <code>map<string, string> env_variables = 104;</code> 1801 */ 1802 @java.lang.Override getEnvVariablesOrThrow(java.lang.String key)1803 public java.lang.String getEnvVariablesOrThrow(java.lang.String key) { 1804 if (key == null) { 1805 throw new NullPointerException("map key"); 1806 } 1807 java.util.Map<java.lang.String, java.lang.String> map = internalGetEnvVariables().getMap(); 1808 if (!map.containsKey(key)) { 1809 throw new java.lang.IllegalArgumentException(); 1810 } 1811 return map.get(key); 1812 } 1813 1814 public static final int BUILD_ENV_VARIABLES_FIELD_NUMBER = 125; 1815 1816 private static final class BuildEnvVariablesDefaultEntryHolder { 1817 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 1818 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 1819 com.google.appengine.v1.VersionProto 1820 .internal_static_google_appengine_v1_Version_BuildEnvVariablesEntry_descriptor, 1821 com.google.protobuf.WireFormat.FieldType.STRING, 1822 "", 1823 com.google.protobuf.WireFormat.FieldType.STRING, 1824 ""); 1825 } 1826 1827 @SuppressWarnings("serial") 1828 private com.google.protobuf.MapField<java.lang.String, java.lang.String> buildEnvVariables_; 1829 1830 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetBuildEnvVariables()1831 internalGetBuildEnvVariables() { 1832 if (buildEnvVariables_ == null) { 1833 return com.google.protobuf.MapField.emptyMapField( 1834 BuildEnvVariablesDefaultEntryHolder.defaultEntry); 1835 } 1836 return buildEnvVariables_; 1837 } 1838 getBuildEnvVariablesCount()1839 public int getBuildEnvVariablesCount() { 1840 return internalGetBuildEnvVariables().getMap().size(); 1841 } 1842 /** 1843 * 1844 * 1845 * <pre> 1846 * Environment variables available to the build environment. 1847 * Only returned in `GET` requests if `view=FULL` is set. 1848 * </pre> 1849 * 1850 * <code>map<string, string> build_env_variables = 125;</code> 1851 */ 1852 @java.lang.Override containsBuildEnvVariables(java.lang.String key)1853 public boolean containsBuildEnvVariables(java.lang.String key) { 1854 if (key == null) { 1855 throw new NullPointerException("map key"); 1856 } 1857 return internalGetBuildEnvVariables().getMap().containsKey(key); 1858 } 1859 /** Use {@link #getBuildEnvVariablesMap()} instead. */ 1860 @java.lang.Override 1861 @java.lang.Deprecated getBuildEnvVariables()1862 public java.util.Map<java.lang.String, java.lang.String> getBuildEnvVariables() { 1863 return getBuildEnvVariablesMap(); 1864 } 1865 /** 1866 * 1867 * 1868 * <pre> 1869 * Environment variables available to the build environment. 1870 * Only returned in `GET` requests if `view=FULL` is set. 1871 * </pre> 1872 * 1873 * <code>map<string, string> build_env_variables = 125;</code> 1874 */ 1875 @java.lang.Override getBuildEnvVariablesMap()1876 public java.util.Map<java.lang.String, java.lang.String> getBuildEnvVariablesMap() { 1877 return internalGetBuildEnvVariables().getMap(); 1878 } 1879 /** 1880 * 1881 * 1882 * <pre> 1883 * Environment variables available to the build environment. 1884 * Only returned in `GET` requests if `view=FULL` is set. 1885 * </pre> 1886 * 1887 * <code>map<string, string> build_env_variables = 125;</code> 1888 */ 1889 @java.lang.Override getBuildEnvVariablesOrDefault( java.lang.String key, java.lang.String defaultValue)1890 public /* nullable */ java.lang.String getBuildEnvVariablesOrDefault( 1891 java.lang.String key, 1892 /* nullable */ 1893 java.lang.String defaultValue) { 1894 if (key == null) { 1895 throw new NullPointerException("map key"); 1896 } 1897 java.util.Map<java.lang.String, java.lang.String> map = internalGetBuildEnvVariables().getMap(); 1898 return map.containsKey(key) ? map.get(key) : defaultValue; 1899 } 1900 /** 1901 * 1902 * 1903 * <pre> 1904 * Environment variables available to the build environment. 1905 * Only returned in `GET` requests if `view=FULL` is set. 1906 * </pre> 1907 * 1908 * <code>map<string, string> build_env_variables = 125;</code> 1909 */ 1910 @java.lang.Override getBuildEnvVariablesOrThrow(java.lang.String key)1911 public java.lang.String getBuildEnvVariablesOrThrow(java.lang.String key) { 1912 if (key == null) { 1913 throw new NullPointerException("map key"); 1914 } 1915 java.util.Map<java.lang.String, java.lang.String> map = internalGetBuildEnvVariables().getMap(); 1916 if (!map.containsKey(key)) { 1917 throw new java.lang.IllegalArgumentException(); 1918 } 1919 return map.get(key); 1920 } 1921 1922 public static final int DEFAULT_EXPIRATION_FIELD_NUMBER = 105; 1923 private com.google.protobuf.Duration defaultExpiration_; 1924 /** 1925 * 1926 * 1927 * <pre> 1928 * Duration that static files should be cached by web proxies and browsers. 1929 * Only applicable if the corresponding 1930 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 1931 * does not specify its own expiration time. 1932 * Only returned in `GET` requests if `view=FULL` is set. 1933 * </pre> 1934 * 1935 * <code>.google.protobuf.Duration default_expiration = 105;</code> 1936 * 1937 * @return Whether the defaultExpiration field is set. 1938 */ 1939 @java.lang.Override hasDefaultExpiration()1940 public boolean hasDefaultExpiration() { 1941 return defaultExpiration_ != null; 1942 } 1943 /** 1944 * 1945 * 1946 * <pre> 1947 * Duration that static files should be cached by web proxies and browsers. 1948 * Only applicable if the corresponding 1949 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 1950 * does not specify its own expiration time. 1951 * Only returned in `GET` requests if `view=FULL` is set. 1952 * </pre> 1953 * 1954 * <code>.google.protobuf.Duration default_expiration = 105;</code> 1955 * 1956 * @return The defaultExpiration. 1957 */ 1958 @java.lang.Override getDefaultExpiration()1959 public com.google.protobuf.Duration getDefaultExpiration() { 1960 return defaultExpiration_ == null 1961 ? com.google.protobuf.Duration.getDefaultInstance() 1962 : defaultExpiration_; 1963 } 1964 /** 1965 * 1966 * 1967 * <pre> 1968 * Duration that static files should be cached by web proxies and browsers. 1969 * Only applicable if the corresponding 1970 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 1971 * does not specify its own expiration time. 1972 * Only returned in `GET` requests if `view=FULL` is set. 1973 * </pre> 1974 * 1975 * <code>.google.protobuf.Duration default_expiration = 105;</code> 1976 */ 1977 @java.lang.Override getDefaultExpirationOrBuilder()1978 public com.google.protobuf.DurationOrBuilder getDefaultExpirationOrBuilder() { 1979 return defaultExpiration_ == null 1980 ? com.google.protobuf.Duration.getDefaultInstance() 1981 : defaultExpiration_; 1982 } 1983 1984 public static final int HEALTH_CHECK_FIELD_NUMBER = 106; 1985 private com.google.appengine.v1.HealthCheck healthCheck_; 1986 /** 1987 * 1988 * 1989 * <pre> 1990 * Configures health checking for instances. Unhealthy instances are 1991 * stopped and replaced with new instances. 1992 * Only applicable in the App Engine flexible environment. 1993 * Only returned in `GET` requests if `view=FULL` is set. 1994 * </pre> 1995 * 1996 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 1997 * 1998 * @return Whether the healthCheck field is set. 1999 */ 2000 @java.lang.Override hasHealthCheck()2001 public boolean hasHealthCheck() { 2002 return healthCheck_ != null; 2003 } 2004 /** 2005 * 2006 * 2007 * <pre> 2008 * Configures health checking for instances. Unhealthy instances are 2009 * stopped and replaced with new instances. 2010 * Only applicable in the App Engine flexible environment. 2011 * Only returned in `GET` requests if `view=FULL` is set. 2012 * </pre> 2013 * 2014 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 2015 * 2016 * @return The healthCheck. 2017 */ 2018 @java.lang.Override getHealthCheck()2019 public com.google.appengine.v1.HealthCheck getHealthCheck() { 2020 return healthCheck_ == null 2021 ? com.google.appengine.v1.HealthCheck.getDefaultInstance() 2022 : healthCheck_; 2023 } 2024 /** 2025 * 2026 * 2027 * <pre> 2028 * Configures health checking for instances. Unhealthy instances are 2029 * stopped and replaced with new instances. 2030 * Only applicable in the App Engine flexible environment. 2031 * Only returned in `GET` requests if `view=FULL` is set. 2032 * </pre> 2033 * 2034 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 2035 */ 2036 @java.lang.Override getHealthCheckOrBuilder()2037 public com.google.appengine.v1.HealthCheckOrBuilder getHealthCheckOrBuilder() { 2038 return healthCheck_ == null 2039 ? com.google.appengine.v1.HealthCheck.getDefaultInstance() 2040 : healthCheck_; 2041 } 2042 2043 public static final int READINESS_CHECK_FIELD_NUMBER = 112; 2044 private com.google.appengine.v1.ReadinessCheck readinessCheck_; 2045 /** 2046 * 2047 * 2048 * <pre> 2049 * Configures readiness health checking for instances. 2050 * Unhealthy instances are not put into the backend traffic rotation. 2051 * Only returned in `GET` requests if `view=FULL` is set. 2052 * </pre> 2053 * 2054 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 2055 * 2056 * @return Whether the readinessCheck field is set. 2057 */ 2058 @java.lang.Override hasReadinessCheck()2059 public boolean hasReadinessCheck() { 2060 return readinessCheck_ != null; 2061 } 2062 /** 2063 * 2064 * 2065 * <pre> 2066 * Configures readiness health checking for instances. 2067 * Unhealthy instances are not put into the backend traffic rotation. 2068 * Only returned in `GET` requests if `view=FULL` is set. 2069 * </pre> 2070 * 2071 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 2072 * 2073 * @return The readinessCheck. 2074 */ 2075 @java.lang.Override getReadinessCheck()2076 public com.google.appengine.v1.ReadinessCheck getReadinessCheck() { 2077 return readinessCheck_ == null 2078 ? com.google.appengine.v1.ReadinessCheck.getDefaultInstance() 2079 : readinessCheck_; 2080 } 2081 /** 2082 * 2083 * 2084 * <pre> 2085 * Configures readiness health checking for instances. 2086 * Unhealthy instances are not put into the backend traffic rotation. 2087 * Only returned in `GET` requests if `view=FULL` is set. 2088 * </pre> 2089 * 2090 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 2091 */ 2092 @java.lang.Override getReadinessCheckOrBuilder()2093 public com.google.appengine.v1.ReadinessCheckOrBuilder getReadinessCheckOrBuilder() { 2094 return readinessCheck_ == null 2095 ? com.google.appengine.v1.ReadinessCheck.getDefaultInstance() 2096 : readinessCheck_; 2097 } 2098 2099 public static final int LIVENESS_CHECK_FIELD_NUMBER = 113; 2100 private com.google.appengine.v1.LivenessCheck livenessCheck_; 2101 /** 2102 * 2103 * 2104 * <pre> 2105 * Configures liveness health checking for instances. 2106 * Unhealthy instances are stopped and replaced with new instances 2107 * Only returned in `GET` requests if `view=FULL` is set. 2108 * </pre> 2109 * 2110 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 2111 * 2112 * @return Whether the livenessCheck field is set. 2113 */ 2114 @java.lang.Override hasLivenessCheck()2115 public boolean hasLivenessCheck() { 2116 return livenessCheck_ != null; 2117 } 2118 /** 2119 * 2120 * 2121 * <pre> 2122 * Configures liveness health checking for instances. 2123 * Unhealthy instances are stopped and replaced with new instances 2124 * Only returned in `GET` requests if `view=FULL` is set. 2125 * </pre> 2126 * 2127 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 2128 * 2129 * @return The livenessCheck. 2130 */ 2131 @java.lang.Override getLivenessCheck()2132 public com.google.appengine.v1.LivenessCheck getLivenessCheck() { 2133 return livenessCheck_ == null 2134 ? com.google.appengine.v1.LivenessCheck.getDefaultInstance() 2135 : livenessCheck_; 2136 } 2137 /** 2138 * 2139 * 2140 * <pre> 2141 * Configures liveness health checking for instances. 2142 * Unhealthy instances are stopped and replaced with new instances 2143 * Only returned in `GET` requests if `view=FULL` is set. 2144 * </pre> 2145 * 2146 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 2147 */ 2148 @java.lang.Override getLivenessCheckOrBuilder()2149 public com.google.appengine.v1.LivenessCheckOrBuilder getLivenessCheckOrBuilder() { 2150 return livenessCheck_ == null 2151 ? com.google.appengine.v1.LivenessCheck.getDefaultInstance() 2152 : livenessCheck_; 2153 } 2154 2155 public static final int NOBUILD_FILES_REGEX_FIELD_NUMBER = 107; 2156 2157 @SuppressWarnings("serial") 2158 private volatile java.lang.Object nobuildFilesRegex_ = ""; 2159 /** 2160 * 2161 * 2162 * <pre> 2163 * Files that match this pattern will not be built into this version. 2164 * Only applicable for Go runtimes. 2165 * Only returned in `GET` requests if `view=FULL` is set. 2166 * </pre> 2167 * 2168 * <code>string nobuild_files_regex = 107;</code> 2169 * 2170 * @return The nobuildFilesRegex. 2171 */ 2172 @java.lang.Override getNobuildFilesRegex()2173 public java.lang.String getNobuildFilesRegex() { 2174 java.lang.Object ref = nobuildFilesRegex_; 2175 if (ref instanceof java.lang.String) { 2176 return (java.lang.String) ref; 2177 } else { 2178 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2179 java.lang.String s = bs.toStringUtf8(); 2180 nobuildFilesRegex_ = s; 2181 return s; 2182 } 2183 } 2184 /** 2185 * 2186 * 2187 * <pre> 2188 * Files that match this pattern will not be built into this version. 2189 * Only applicable for Go runtimes. 2190 * Only returned in `GET` requests if `view=FULL` is set. 2191 * </pre> 2192 * 2193 * <code>string nobuild_files_regex = 107;</code> 2194 * 2195 * @return The bytes for nobuildFilesRegex. 2196 */ 2197 @java.lang.Override getNobuildFilesRegexBytes()2198 public com.google.protobuf.ByteString getNobuildFilesRegexBytes() { 2199 java.lang.Object ref = nobuildFilesRegex_; 2200 if (ref instanceof java.lang.String) { 2201 com.google.protobuf.ByteString b = 2202 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2203 nobuildFilesRegex_ = b; 2204 return b; 2205 } else { 2206 return (com.google.protobuf.ByteString) ref; 2207 } 2208 } 2209 2210 public static final int DEPLOYMENT_FIELD_NUMBER = 108; 2211 private com.google.appengine.v1.Deployment deployment_; 2212 /** 2213 * 2214 * 2215 * <pre> 2216 * Code and application artifacts that make up this version. 2217 * Only returned in `GET` requests if `view=FULL` is set. 2218 * </pre> 2219 * 2220 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 2221 * 2222 * @return Whether the deployment field is set. 2223 */ 2224 @java.lang.Override hasDeployment()2225 public boolean hasDeployment() { 2226 return deployment_ != null; 2227 } 2228 /** 2229 * 2230 * 2231 * <pre> 2232 * Code and application artifacts that make up this version. 2233 * Only returned in `GET` requests if `view=FULL` is set. 2234 * </pre> 2235 * 2236 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 2237 * 2238 * @return The deployment. 2239 */ 2240 @java.lang.Override getDeployment()2241 public com.google.appengine.v1.Deployment getDeployment() { 2242 return deployment_ == null 2243 ? com.google.appengine.v1.Deployment.getDefaultInstance() 2244 : deployment_; 2245 } 2246 /** 2247 * 2248 * 2249 * <pre> 2250 * Code and application artifacts that make up this version. 2251 * Only returned in `GET` requests if `view=FULL` is set. 2252 * </pre> 2253 * 2254 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 2255 */ 2256 @java.lang.Override getDeploymentOrBuilder()2257 public com.google.appengine.v1.DeploymentOrBuilder getDeploymentOrBuilder() { 2258 return deployment_ == null 2259 ? com.google.appengine.v1.Deployment.getDefaultInstance() 2260 : deployment_; 2261 } 2262 2263 public static final int VERSION_URL_FIELD_NUMBER = 109; 2264 2265 @SuppressWarnings("serial") 2266 private volatile java.lang.Object versionUrl_ = ""; 2267 /** 2268 * 2269 * 2270 * <pre> 2271 * Serving URL for this version. Example: 2272 * "https://myversion-dot-myservice-dot-myapp.appspot.com" 2273 * @OutputOnly 2274 * </pre> 2275 * 2276 * <code>string version_url = 109;</code> 2277 * 2278 * @return The versionUrl. 2279 */ 2280 @java.lang.Override getVersionUrl()2281 public java.lang.String getVersionUrl() { 2282 java.lang.Object ref = versionUrl_; 2283 if (ref instanceof java.lang.String) { 2284 return (java.lang.String) ref; 2285 } else { 2286 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2287 java.lang.String s = bs.toStringUtf8(); 2288 versionUrl_ = s; 2289 return s; 2290 } 2291 } 2292 /** 2293 * 2294 * 2295 * <pre> 2296 * Serving URL for this version. Example: 2297 * "https://myversion-dot-myservice-dot-myapp.appspot.com" 2298 * @OutputOnly 2299 * </pre> 2300 * 2301 * <code>string version_url = 109;</code> 2302 * 2303 * @return The bytes for versionUrl. 2304 */ 2305 @java.lang.Override getVersionUrlBytes()2306 public com.google.protobuf.ByteString getVersionUrlBytes() { 2307 java.lang.Object ref = versionUrl_; 2308 if (ref instanceof java.lang.String) { 2309 com.google.protobuf.ByteString b = 2310 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2311 versionUrl_ = b; 2312 return b; 2313 } else { 2314 return (com.google.protobuf.ByteString) ref; 2315 } 2316 } 2317 2318 public static final int ENDPOINTS_API_SERVICE_FIELD_NUMBER = 110; 2319 private com.google.appengine.v1.EndpointsApiService endpointsApiService_; 2320 /** 2321 * 2322 * 2323 * <pre> 2324 * Cloud Endpoints configuration. 2325 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 2326 * Proxy will be provided to serve the API implemented by the app. 2327 * </pre> 2328 * 2329 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 2330 * 2331 * @return Whether the endpointsApiService field is set. 2332 */ 2333 @java.lang.Override hasEndpointsApiService()2334 public boolean hasEndpointsApiService() { 2335 return endpointsApiService_ != null; 2336 } 2337 /** 2338 * 2339 * 2340 * <pre> 2341 * Cloud Endpoints configuration. 2342 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 2343 * Proxy will be provided to serve the API implemented by the app. 2344 * </pre> 2345 * 2346 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 2347 * 2348 * @return The endpointsApiService. 2349 */ 2350 @java.lang.Override getEndpointsApiService()2351 public com.google.appengine.v1.EndpointsApiService getEndpointsApiService() { 2352 return endpointsApiService_ == null 2353 ? com.google.appengine.v1.EndpointsApiService.getDefaultInstance() 2354 : endpointsApiService_; 2355 } 2356 /** 2357 * 2358 * 2359 * <pre> 2360 * Cloud Endpoints configuration. 2361 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 2362 * Proxy will be provided to serve the API implemented by the app. 2363 * </pre> 2364 * 2365 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 2366 */ 2367 @java.lang.Override getEndpointsApiServiceOrBuilder()2368 public com.google.appengine.v1.EndpointsApiServiceOrBuilder getEndpointsApiServiceOrBuilder() { 2369 return endpointsApiService_ == null 2370 ? com.google.appengine.v1.EndpointsApiService.getDefaultInstance() 2371 : endpointsApiService_; 2372 } 2373 2374 public static final int ENTRYPOINT_FIELD_NUMBER = 122; 2375 private com.google.appengine.v1.Entrypoint entrypoint_; 2376 /** 2377 * 2378 * 2379 * <pre> 2380 * The entrypoint for the application. 2381 * </pre> 2382 * 2383 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 2384 * 2385 * @return Whether the entrypoint field is set. 2386 */ 2387 @java.lang.Override hasEntrypoint()2388 public boolean hasEntrypoint() { 2389 return entrypoint_ != null; 2390 } 2391 /** 2392 * 2393 * 2394 * <pre> 2395 * The entrypoint for the application. 2396 * </pre> 2397 * 2398 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 2399 * 2400 * @return The entrypoint. 2401 */ 2402 @java.lang.Override getEntrypoint()2403 public com.google.appengine.v1.Entrypoint getEntrypoint() { 2404 return entrypoint_ == null 2405 ? com.google.appengine.v1.Entrypoint.getDefaultInstance() 2406 : entrypoint_; 2407 } 2408 /** 2409 * 2410 * 2411 * <pre> 2412 * The entrypoint for the application. 2413 * </pre> 2414 * 2415 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 2416 */ 2417 @java.lang.Override getEntrypointOrBuilder()2418 public com.google.appengine.v1.EntrypointOrBuilder getEntrypointOrBuilder() { 2419 return entrypoint_ == null 2420 ? com.google.appengine.v1.Entrypoint.getDefaultInstance() 2421 : entrypoint_; 2422 } 2423 2424 public static final int VPC_ACCESS_CONNECTOR_FIELD_NUMBER = 121; 2425 private com.google.appengine.v1.VpcAccessConnector vpcAccessConnector_; 2426 /** 2427 * 2428 * 2429 * <pre> 2430 * Enables VPC connectivity for standard apps. 2431 * </pre> 2432 * 2433 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 2434 * 2435 * @return Whether the vpcAccessConnector field is set. 2436 */ 2437 @java.lang.Override hasVpcAccessConnector()2438 public boolean hasVpcAccessConnector() { 2439 return vpcAccessConnector_ != null; 2440 } 2441 /** 2442 * 2443 * 2444 * <pre> 2445 * Enables VPC connectivity for standard apps. 2446 * </pre> 2447 * 2448 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 2449 * 2450 * @return The vpcAccessConnector. 2451 */ 2452 @java.lang.Override getVpcAccessConnector()2453 public com.google.appengine.v1.VpcAccessConnector getVpcAccessConnector() { 2454 return vpcAccessConnector_ == null 2455 ? com.google.appengine.v1.VpcAccessConnector.getDefaultInstance() 2456 : vpcAccessConnector_; 2457 } 2458 /** 2459 * 2460 * 2461 * <pre> 2462 * Enables VPC connectivity for standard apps. 2463 * </pre> 2464 * 2465 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 2466 */ 2467 @java.lang.Override getVpcAccessConnectorOrBuilder()2468 public com.google.appengine.v1.VpcAccessConnectorOrBuilder getVpcAccessConnectorOrBuilder() { 2469 return vpcAccessConnector_ == null 2470 ? com.google.appengine.v1.VpcAccessConnector.getDefaultInstance() 2471 : vpcAccessConnector_; 2472 } 2473 2474 private byte memoizedIsInitialized = -1; 2475 2476 @java.lang.Override isInitialized()2477 public final boolean isInitialized() { 2478 byte isInitialized = memoizedIsInitialized; 2479 if (isInitialized == 1) return true; 2480 if (isInitialized == 0) return false; 2481 2482 memoizedIsInitialized = 1; 2483 return true; 2484 } 2485 2486 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)2487 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 2488 getSerializedSize(); 2489 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 2490 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 2491 } 2492 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 2493 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); 2494 } 2495 if (scalingCase_ == 3) { 2496 output.writeMessage(3, (com.google.appengine.v1.AutomaticScaling) scaling_); 2497 } 2498 if (scalingCase_ == 4) { 2499 output.writeMessage(4, (com.google.appengine.v1.BasicScaling) scaling_); 2500 } 2501 if (scalingCase_ == 5) { 2502 output.writeMessage(5, (com.google.appengine.v1.ManualScaling) scaling_); 2503 } 2504 if (getInboundServicesList().size() > 0) { 2505 output.writeUInt32NoTag(50); 2506 output.writeUInt32NoTag(inboundServicesMemoizedSerializedSize); 2507 } 2508 for (int i = 0; i < inboundServices_.size(); i++) { 2509 output.writeEnumNoTag(inboundServices_.get(i)); 2510 } 2511 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceClass_)) { 2512 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, instanceClass_); 2513 } 2514 if (network_ != null) { 2515 output.writeMessage(8, getNetwork()); 2516 } 2517 if (resources_ != null) { 2518 output.writeMessage(9, getResources()); 2519 } 2520 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { 2521 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, runtime_); 2522 } 2523 if (threadsafe_ != false) { 2524 output.writeBool(11, threadsafe_); 2525 } 2526 if (vm_ != false) { 2527 output.writeBool(12, vm_); 2528 } 2529 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 2530 output, internalGetBetaSettings(), BetaSettingsDefaultEntryHolder.defaultEntry, 13); 2531 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(env_)) { 2532 com.google.protobuf.GeneratedMessageV3.writeString(output, 14, env_); 2533 } 2534 if (servingStatus_ 2535 != com.google.appengine.v1.ServingStatus.SERVING_STATUS_UNSPECIFIED.getNumber()) { 2536 output.writeEnum(15, servingStatus_); 2537 } 2538 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) { 2539 com.google.protobuf.GeneratedMessageV3.writeString(output, 16, createdBy_); 2540 } 2541 if (createTime_ != null) { 2542 output.writeMessage(17, getCreateTime()); 2543 } 2544 if (diskUsageBytes_ != 0L) { 2545 output.writeInt64(18, diskUsageBytes_); 2546 } 2547 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeApiVersion_)) { 2548 com.google.protobuf.GeneratedMessageV3.writeString(output, 21, runtimeApiVersion_); 2549 } 2550 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeMainExecutablePath_)) { 2551 com.google.protobuf.GeneratedMessageV3.writeString(output, 22, runtimeMainExecutablePath_); 2552 } 2553 for (int i = 0; i < handlers_.size(); i++) { 2554 output.writeMessage(100, handlers_.get(i)); 2555 } 2556 for (int i = 0; i < errorHandlers_.size(); i++) { 2557 output.writeMessage(101, errorHandlers_.get(i)); 2558 } 2559 for (int i = 0; i < libraries_.size(); i++) { 2560 output.writeMessage(102, libraries_.get(i)); 2561 } 2562 if (apiConfig_ != null) { 2563 output.writeMessage(103, getApiConfig()); 2564 } 2565 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 2566 output, internalGetEnvVariables(), EnvVariablesDefaultEntryHolder.defaultEntry, 104); 2567 if (defaultExpiration_ != null) { 2568 output.writeMessage(105, getDefaultExpiration()); 2569 } 2570 if (healthCheck_ != null) { 2571 output.writeMessage(106, getHealthCheck()); 2572 } 2573 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nobuildFilesRegex_)) { 2574 com.google.protobuf.GeneratedMessageV3.writeString(output, 107, nobuildFilesRegex_); 2575 } 2576 if (deployment_ != null) { 2577 output.writeMessage(108, getDeployment()); 2578 } 2579 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionUrl_)) { 2580 com.google.protobuf.GeneratedMessageV3.writeString(output, 109, versionUrl_); 2581 } 2582 if (endpointsApiService_ != null) { 2583 output.writeMessage(110, getEndpointsApiService()); 2584 } 2585 if (readinessCheck_ != null) { 2586 output.writeMessage(112, getReadinessCheck()); 2587 } 2588 if (livenessCheck_ != null) { 2589 output.writeMessage(113, getLivenessCheck()); 2590 } 2591 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeChannel_)) { 2592 com.google.protobuf.GeneratedMessageV3.writeString(output, 117, runtimeChannel_); 2593 } 2594 for (int i = 0; i < zones_.size(); i++) { 2595 com.google.protobuf.GeneratedMessageV3.writeString(output, 118, zones_.getRaw(i)); 2596 } 2597 if (vpcAccessConnector_ != null) { 2598 output.writeMessage(121, getVpcAccessConnector()); 2599 } 2600 if (entrypoint_ != null) { 2601 output.writeMessage(122, getEntrypoint()); 2602 } 2603 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 2604 output, 2605 internalGetBuildEnvVariables(), 2606 BuildEnvVariablesDefaultEntryHolder.defaultEntry, 2607 125); 2608 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 2609 com.google.protobuf.GeneratedMessageV3.writeString(output, 127, serviceAccount_); 2610 } 2611 if (appEngineApis_ != false) { 2612 output.writeBool(128, appEngineApis_); 2613 } 2614 getUnknownFields().writeTo(output); 2615 } 2616 2617 @java.lang.Override getSerializedSize()2618 public int getSerializedSize() { 2619 int size = memoizedSize; 2620 if (size != -1) return size; 2621 2622 size = 0; 2623 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 2624 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 2625 } 2626 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 2627 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); 2628 } 2629 if (scalingCase_ == 3) { 2630 size += 2631 com.google.protobuf.CodedOutputStream.computeMessageSize( 2632 3, (com.google.appengine.v1.AutomaticScaling) scaling_); 2633 } 2634 if (scalingCase_ == 4) { 2635 size += 2636 com.google.protobuf.CodedOutputStream.computeMessageSize( 2637 4, (com.google.appengine.v1.BasicScaling) scaling_); 2638 } 2639 if (scalingCase_ == 5) { 2640 size += 2641 com.google.protobuf.CodedOutputStream.computeMessageSize( 2642 5, (com.google.appengine.v1.ManualScaling) scaling_); 2643 } 2644 { 2645 int dataSize = 0; 2646 for (int i = 0; i < inboundServices_.size(); i++) { 2647 dataSize += 2648 com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(inboundServices_.get(i)); 2649 } 2650 size += dataSize; 2651 if (!getInboundServicesList().isEmpty()) { 2652 size += 1; 2653 size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); 2654 } 2655 inboundServicesMemoizedSerializedSize = dataSize; 2656 } 2657 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceClass_)) { 2658 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, instanceClass_); 2659 } 2660 if (network_ != null) { 2661 size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getNetwork()); 2662 } 2663 if (resources_ != null) { 2664 size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getResources()); 2665 } 2666 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { 2667 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, runtime_); 2668 } 2669 if (threadsafe_ != false) { 2670 size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, threadsafe_); 2671 } 2672 if (vm_ != false) { 2673 size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, vm_); 2674 } 2675 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 2676 internalGetBetaSettings().getMap().entrySet()) { 2677 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> betaSettings__ = 2678 BetaSettingsDefaultEntryHolder.defaultEntry 2679 .newBuilderForType() 2680 .setKey(entry.getKey()) 2681 .setValue(entry.getValue()) 2682 .build(); 2683 size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, betaSettings__); 2684 } 2685 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(env_)) { 2686 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, env_); 2687 } 2688 if (servingStatus_ 2689 != com.google.appengine.v1.ServingStatus.SERVING_STATUS_UNSPECIFIED.getNumber()) { 2690 size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, servingStatus_); 2691 } 2692 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createdBy_)) { 2693 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, createdBy_); 2694 } 2695 if (createTime_ != null) { 2696 size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getCreateTime()); 2697 } 2698 if (diskUsageBytes_ != 0L) { 2699 size += com.google.protobuf.CodedOutputStream.computeInt64Size(18, diskUsageBytes_); 2700 } 2701 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeApiVersion_)) { 2702 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, runtimeApiVersion_); 2703 } 2704 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeMainExecutablePath_)) { 2705 size += 2706 com.google.protobuf.GeneratedMessageV3.computeStringSize(22, runtimeMainExecutablePath_); 2707 } 2708 for (int i = 0; i < handlers_.size(); i++) { 2709 size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, handlers_.get(i)); 2710 } 2711 for (int i = 0; i < errorHandlers_.size(); i++) { 2712 size += com.google.protobuf.CodedOutputStream.computeMessageSize(101, errorHandlers_.get(i)); 2713 } 2714 for (int i = 0; i < libraries_.size(); i++) { 2715 size += com.google.protobuf.CodedOutputStream.computeMessageSize(102, libraries_.get(i)); 2716 } 2717 if (apiConfig_ != null) { 2718 size += com.google.protobuf.CodedOutputStream.computeMessageSize(103, getApiConfig()); 2719 } 2720 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 2721 internalGetEnvVariables().getMap().entrySet()) { 2722 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> envVariables__ = 2723 EnvVariablesDefaultEntryHolder.defaultEntry 2724 .newBuilderForType() 2725 .setKey(entry.getKey()) 2726 .setValue(entry.getValue()) 2727 .build(); 2728 size += com.google.protobuf.CodedOutputStream.computeMessageSize(104, envVariables__); 2729 } 2730 if (defaultExpiration_ != null) { 2731 size += com.google.protobuf.CodedOutputStream.computeMessageSize(105, getDefaultExpiration()); 2732 } 2733 if (healthCheck_ != null) { 2734 size += com.google.protobuf.CodedOutputStream.computeMessageSize(106, getHealthCheck()); 2735 } 2736 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nobuildFilesRegex_)) { 2737 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(107, nobuildFilesRegex_); 2738 } 2739 if (deployment_ != null) { 2740 size += com.google.protobuf.CodedOutputStream.computeMessageSize(108, getDeployment()); 2741 } 2742 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionUrl_)) { 2743 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(109, versionUrl_); 2744 } 2745 if (endpointsApiService_ != null) { 2746 size += 2747 com.google.protobuf.CodedOutputStream.computeMessageSize(110, getEndpointsApiService()); 2748 } 2749 if (readinessCheck_ != null) { 2750 size += com.google.protobuf.CodedOutputStream.computeMessageSize(112, getReadinessCheck()); 2751 } 2752 if (livenessCheck_ != null) { 2753 size += com.google.protobuf.CodedOutputStream.computeMessageSize(113, getLivenessCheck()); 2754 } 2755 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeChannel_)) { 2756 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(117, runtimeChannel_); 2757 } 2758 { 2759 int dataSize = 0; 2760 for (int i = 0; i < zones_.size(); i++) { 2761 dataSize += computeStringSizeNoTag(zones_.getRaw(i)); 2762 } 2763 size += dataSize; 2764 size += 2 * getZonesList().size(); 2765 } 2766 if (vpcAccessConnector_ != null) { 2767 size += 2768 com.google.protobuf.CodedOutputStream.computeMessageSize(121, getVpcAccessConnector()); 2769 } 2770 if (entrypoint_ != null) { 2771 size += com.google.protobuf.CodedOutputStream.computeMessageSize(122, getEntrypoint()); 2772 } 2773 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 2774 internalGetBuildEnvVariables().getMap().entrySet()) { 2775 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> buildEnvVariables__ = 2776 BuildEnvVariablesDefaultEntryHolder.defaultEntry 2777 .newBuilderForType() 2778 .setKey(entry.getKey()) 2779 .setValue(entry.getValue()) 2780 .build(); 2781 size += com.google.protobuf.CodedOutputStream.computeMessageSize(125, buildEnvVariables__); 2782 } 2783 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 2784 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(127, serviceAccount_); 2785 } 2786 if (appEngineApis_ != false) { 2787 size += com.google.protobuf.CodedOutputStream.computeBoolSize(128, appEngineApis_); 2788 } 2789 size += getUnknownFields().getSerializedSize(); 2790 memoizedSize = size; 2791 return size; 2792 } 2793 2794 @java.lang.Override equals(final java.lang.Object obj)2795 public boolean equals(final java.lang.Object obj) { 2796 if (obj == this) { 2797 return true; 2798 } 2799 if (!(obj instanceof com.google.appengine.v1.Version)) { 2800 return super.equals(obj); 2801 } 2802 com.google.appengine.v1.Version other = (com.google.appengine.v1.Version) obj; 2803 2804 if (!getName().equals(other.getName())) return false; 2805 if (!getId().equals(other.getId())) return false; 2806 if (!inboundServices_.equals(other.inboundServices_)) return false; 2807 if (!getInstanceClass().equals(other.getInstanceClass())) return false; 2808 if (hasNetwork() != other.hasNetwork()) return false; 2809 if (hasNetwork()) { 2810 if (!getNetwork().equals(other.getNetwork())) return false; 2811 } 2812 if (!getZonesList().equals(other.getZonesList())) return false; 2813 if (hasResources() != other.hasResources()) return false; 2814 if (hasResources()) { 2815 if (!getResources().equals(other.getResources())) return false; 2816 } 2817 if (!getRuntime().equals(other.getRuntime())) return false; 2818 if (!getRuntimeChannel().equals(other.getRuntimeChannel())) return false; 2819 if (getThreadsafe() != other.getThreadsafe()) return false; 2820 if (getVm() != other.getVm()) return false; 2821 if (getAppEngineApis() != other.getAppEngineApis()) return false; 2822 if (!internalGetBetaSettings().equals(other.internalGetBetaSettings())) return false; 2823 if (!getEnv().equals(other.getEnv())) return false; 2824 if (servingStatus_ != other.servingStatus_) return false; 2825 if (!getCreatedBy().equals(other.getCreatedBy())) return false; 2826 if (hasCreateTime() != other.hasCreateTime()) return false; 2827 if (hasCreateTime()) { 2828 if (!getCreateTime().equals(other.getCreateTime())) return false; 2829 } 2830 if (getDiskUsageBytes() != other.getDiskUsageBytes()) return false; 2831 if (!getRuntimeApiVersion().equals(other.getRuntimeApiVersion())) return false; 2832 if (!getRuntimeMainExecutablePath().equals(other.getRuntimeMainExecutablePath())) return false; 2833 if (!getServiceAccount().equals(other.getServiceAccount())) return false; 2834 if (!getHandlersList().equals(other.getHandlersList())) return false; 2835 if (!getErrorHandlersList().equals(other.getErrorHandlersList())) return false; 2836 if (!getLibrariesList().equals(other.getLibrariesList())) return false; 2837 if (hasApiConfig() != other.hasApiConfig()) return false; 2838 if (hasApiConfig()) { 2839 if (!getApiConfig().equals(other.getApiConfig())) return false; 2840 } 2841 if (!internalGetEnvVariables().equals(other.internalGetEnvVariables())) return false; 2842 if (!internalGetBuildEnvVariables().equals(other.internalGetBuildEnvVariables())) return false; 2843 if (hasDefaultExpiration() != other.hasDefaultExpiration()) return false; 2844 if (hasDefaultExpiration()) { 2845 if (!getDefaultExpiration().equals(other.getDefaultExpiration())) return false; 2846 } 2847 if (hasHealthCheck() != other.hasHealthCheck()) return false; 2848 if (hasHealthCheck()) { 2849 if (!getHealthCheck().equals(other.getHealthCheck())) return false; 2850 } 2851 if (hasReadinessCheck() != other.hasReadinessCheck()) return false; 2852 if (hasReadinessCheck()) { 2853 if (!getReadinessCheck().equals(other.getReadinessCheck())) return false; 2854 } 2855 if (hasLivenessCheck() != other.hasLivenessCheck()) return false; 2856 if (hasLivenessCheck()) { 2857 if (!getLivenessCheck().equals(other.getLivenessCheck())) return false; 2858 } 2859 if (!getNobuildFilesRegex().equals(other.getNobuildFilesRegex())) return false; 2860 if (hasDeployment() != other.hasDeployment()) return false; 2861 if (hasDeployment()) { 2862 if (!getDeployment().equals(other.getDeployment())) return false; 2863 } 2864 if (!getVersionUrl().equals(other.getVersionUrl())) return false; 2865 if (hasEndpointsApiService() != other.hasEndpointsApiService()) return false; 2866 if (hasEndpointsApiService()) { 2867 if (!getEndpointsApiService().equals(other.getEndpointsApiService())) return false; 2868 } 2869 if (hasEntrypoint() != other.hasEntrypoint()) return false; 2870 if (hasEntrypoint()) { 2871 if (!getEntrypoint().equals(other.getEntrypoint())) return false; 2872 } 2873 if (hasVpcAccessConnector() != other.hasVpcAccessConnector()) return false; 2874 if (hasVpcAccessConnector()) { 2875 if (!getVpcAccessConnector().equals(other.getVpcAccessConnector())) return false; 2876 } 2877 if (!getScalingCase().equals(other.getScalingCase())) return false; 2878 switch (scalingCase_) { 2879 case 3: 2880 if (!getAutomaticScaling().equals(other.getAutomaticScaling())) return false; 2881 break; 2882 case 4: 2883 if (!getBasicScaling().equals(other.getBasicScaling())) return false; 2884 break; 2885 case 5: 2886 if (!getManualScaling().equals(other.getManualScaling())) return false; 2887 break; 2888 case 0: 2889 default: 2890 } 2891 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2892 return true; 2893 } 2894 2895 @java.lang.Override hashCode()2896 public int hashCode() { 2897 if (memoizedHashCode != 0) { 2898 return memoizedHashCode; 2899 } 2900 int hash = 41; 2901 hash = (19 * hash) + getDescriptor().hashCode(); 2902 hash = (37 * hash) + NAME_FIELD_NUMBER; 2903 hash = (53 * hash) + getName().hashCode(); 2904 hash = (37 * hash) + ID_FIELD_NUMBER; 2905 hash = (53 * hash) + getId().hashCode(); 2906 if (getInboundServicesCount() > 0) { 2907 hash = (37 * hash) + INBOUND_SERVICES_FIELD_NUMBER; 2908 hash = (53 * hash) + inboundServices_.hashCode(); 2909 } 2910 hash = (37 * hash) + INSTANCE_CLASS_FIELD_NUMBER; 2911 hash = (53 * hash) + getInstanceClass().hashCode(); 2912 if (hasNetwork()) { 2913 hash = (37 * hash) + NETWORK_FIELD_NUMBER; 2914 hash = (53 * hash) + getNetwork().hashCode(); 2915 } 2916 if (getZonesCount() > 0) { 2917 hash = (37 * hash) + ZONES_FIELD_NUMBER; 2918 hash = (53 * hash) + getZonesList().hashCode(); 2919 } 2920 if (hasResources()) { 2921 hash = (37 * hash) + RESOURCES_FIELD_NUMBER; 2922 hash = (53 * hash) + getResources().hashCode(); 2923 } 2924 hash = (37 * hash) + RUNTIME_FIELD_NUMBER; 2925 hash = (53 * hash) + getRuntime().hashCode(); 2926 hash = (37 * hash) + RUNTIME_CHANNEL_FIELD_NUMBER; 2927 hash = (53 * hash) + getRuntimeChannel().hashCode(); 2928 hash = (37 * hash) + THREADSAFE_FIELD_NUMBER; 2929 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThreadsafe()); 2930 hash = (37 * hash) + VM_FIELD_NUMBER; 2931 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVm()); 2932 hash = (37 * hash) + APP_ENGINE_APIS_FIELD_NUMBER; 2933 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAppEngineApis()); 2934 if (!internalGetBetaSettings().getMap().isEmpty()) { 2935 hash = (37 * hash) + BETA_SETTINGS_FIELD_NUMBER; 2936 hash = (53 * hash) + internalGetBetaSettings().hashCode(); 2937 } 2938 hash = (37 * hash) + ENV_FIELD_NUMBER; 2939 hash = (53 * hash) + getEnv().hashCode(); 2940 hash = (37 * hash) + SERVING_STATUS_FIELD_NUMBER; 2941 hash = (53 * hash) + servingStatus_; 2942 hash = (37 * hash) + CREATED_BY_FIELD_NUMBER; 2943 hash = (53 * hash) + getCreatedBy().hashCode(); 2944 if (hasCreateTime()) { 2945 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 2946 hash = (53 * hash) + getCreateTime().hashCode(); 2947 } 2948 hash = (37 * hash) + DISK_USAGE_BYTES_FIELD_NUMBER; 2949 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskUsageBytes()); 2950 hash = (37 * hash) + RUNTIME_API_VERSION_FIELD_NUMBER; 2951 hash = (53 * hash) + getRuntimeApiVersion().hashCode(); 2952 hash = (37 * hash) + RUNTIME_MAIN_EXECUTABLE_PATH_FIELD_NUMBER; 2953 hash = (53 * hash) + getRuntimeMainExecutablePath().hashCode(); 2954 hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; 2955 hash = (53 * hash) + getServiceAccount().hashCode(); 2956 if (getHandlersCount() > 0) { 2957 hash = (37 * hash) + HANDLERS_FIELD_NUMBER; 2958 hash = (53 * hash) + getHandlersList().hashCode(); 2959 } 2960 if (getErrorHandlersCount() > 0) { 2961 hash = (37 * hash) + ERROR_HANDLERS_FIELD_NUMBER; 2962 hash = (53 * hash) + getErrorHandlersList().hashCode(); 2963 } 2964 if (getLibrariesCount() > 0) { 2965 hash = (37 * hash) + LIBRARIES_FIELD_NUMBER; 2966 hash = (53 * hash) + getLibrariesList().hashCode(); 2967 } 2968 if (hasApiConfig()) { 2969 hash = (37 * hash) + API_CONFIG_FIELD_NUMBER; 2970 hash = (53 * hash) + getApiConfig().hashCode(); 2971 } 2972 if (!internalGetEnvVariables().getMap().isEmpty()) { 2973 hash = (37 * hash) + ENV_VARIABLES_FIELD_NUMBER; 2974 hash = (53 * hash) + internalGetEnvVariables().hashCode(); 2975 } 2976 if (!internalGetBuildEnvVariables().getMap().isEmpty()) { 2977 hash = (37 * hash) + BUILD_ENV_VARIABLES_FIELD_NUMBER; 2978 hash = (53 * hash) + internalGetBuildEnvVariables().hashCode(); 2979 } 2980 if (hasDefaultExpiration()) { 2981 hash = (37 * hash) + DEFAULT_EXPIRATION_FIELD_NUMBER; 2982 hash = (53 * hash) + getDefaultExpiration().hashCode(); 2983 } 2984 if (hasHealthCheck()) { 2985 hash = (37 * hash) + HEALTH_CHECK_FIELD_NUMBER; 2986 hash = (53 * hash) + getHealthCheck().hashCode(); 2987 } 2988 if (hasReadinessCheck()) { 2989 hash = (37 * hash) + READINESS_CHECK_FIELD_NUMBER; 2990 hash = (53 * hash) + getReadinessCheck().hashCode(); 2991 } 2992 if (hasLivenessCheck()) { 2993 hash = (37 * hash) + LIVENESS_CHECK_FIELD_NUMBER; 2994 hash = (53 * hash) + getLivenessCheck().hashCode(); 2995 } 2996 hash = (37 * hash) + NOBUILD_FILES_REGEX_FIELD_NUMBER; 2997 hash = (53 * hash) + getNobuildFilesRegex().hashCode(); 2998 if (hasDeployment()) { 2999 hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; 3000 hash = (53 * hash) + getDeployment().hashCode(); 3001 } 3002 hash = (37 * hash) + VERSION_URL_FIELD_NUMBER; 3003 hash = (53 * hash) + getVersionUrl().hashCode(); 3004 if (hasEndpointsApiService()) { 3005 hash = (37 * hash) + ENDPOINTS_API_SERVICE_FIELD_NUMBER; 3006 hash = (53 * hash) + getEndpointsApiService().hashCode(); 3007 } 3008 if (hasEntrypoint()) { 3009 hash = (37 * hash) + ENTRYPOINT_FIELD_NUMBER; 3010 hash = (53 * hash) + getEntrypoint().hashCode(); 3011 } 3012 if (hasVpcAccessConnector()) { 3013 hash = (37 * hash) + VPC_ACCESS_CONNECTOR_FIELD_NUMBER; 3014 hash = (53 * hash) + getVpcAccessConnector().hashCode(); 3015 } 3016 switch (scalingCase_) { 3017 case 3: 3018 hash = (37 * hash) + AUTOMATIC_SCALING_FIELD_NUMBER; 3019 hash = (53 * hash) + getAutomaticScaling().hashCode(); 3020 break; 3021 case 4: 3022 hash = (37 * hash) + BASIC_SCALING_FIELD_NUMBER; 3023 hash = (53 * hash) + getBasicScaling().hashCode(); 3024 break; 3025 case 5: 3026 hash = (37 * hash) + MANUAL_SCALING_FIELD_NUMBER; 3027 hash = (53 * hash) + getManualScaling().hashCode(); 3028 break; 3029 case 0: 3030 default: 3031 } 3032 hash = (29 * hash) + getUnknownFields().hashCode(); 3033 memoizedHashCode = hash; 3034 return hash; 3035 } 3036 parseFrom(java.nio.ByteBuffer data)3037 public static com.google.appengine.v1.Version parseFrom(java.nio.ByteBuffer data) 3038 throws com.google.protobuf.InvalidProtocolBufferException { 3039 return PARSER.parseFrom(data); 3040 } 3041 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3042 public static com.google.appengine.v1.Version parseFrom( 3043 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3044 throws com.google.protobuf.InvalidProtocolBufferException { 3045 return PARSER.parseFrom(data, extensionRegistry); 3046 } 3047 parseFrom(com.google.protobuf.ByteString data)3048 public static com.google.appengine.v1.Version parseFrom(com.google.protobuf.ByteString data) 3049 throws com.google.protobuf.InvalidProtocolBufferException { 3050 return PARSER.parseFrom(data); 3051 } 3052 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3053 public static com.google.appengine.v1.Version parseFrom( 3054 com.google.protobuf.ByteString data, 3055 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3056 throws com.google.protobuf.InvalidProtocolBufferException { 3057 return PARSER.parseFrom(data, extensionRegistry); 3058 } 3059 parseFrom(byte[] data)3060 public static com.google.appengine.v1.Version parseFrom(byte[] data) 3061 throws com.google.protobuf.InvalidProtocolBufferException { 3062 return PARSER.parseFrom(data); 3063 } 3064 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3065 public static com.google.appengine.v1.Version parseFrom( 3066 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3067 throws com.google.protobuf.InvalidProtocolBufferException { 3068 return PARSER.parseFrom(data, extensionRegistry); 3069 } 3070 parseFrom(java.io.InputStream input)3071 public static com.google.appengine.v1.Version parseFrom(java.io.InputStream input) 3072 throws java.io.IOException { 3073 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3074 } 3075 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3076 public static com.google.appengine.v1.Version parseFrom( 3077 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3078 throws java.io.IOException { 3079 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3080 PARSER, input, extensionRegistry); 3081 } 3082 parseDelimitedFrom(java.io.InputStream input)3083 public static com.google.appengine.v1.Version parseDelimitedFrom(java.io.InputStream input) 3084 throws java.io.IOException { 3085 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 3086 } 3087 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3088 public static com.google.appengine.v1.Version parseDelimitedFrom( 3089 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3090 throws java.io.IOException { 3091 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 3092 PARSER, input, extensionRegistry); 3093 } 3094 parseFrom( com.google.protobuf.CodedInputStream input)3095 public static com.google.appengine.v1.Version parseFrom( 3096 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 3097 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3098 } 3099 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3100 public static com.google.appengine.v1.Version parseFrom( 3101 com.google.protobuf.CodedInputStream input, 3102 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3103 throws java.io.IOException { 3104 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3105 PARSER, input, extensionRegistry); 3106 } 3107 3108 @java.lang.Override newBuilderForType()3109 public Builder newBuilderForType() { 3110 return newBuilder(); 3111 } 3112 newBuilder()3113 public static Builder newBuilder() { 3114 return DEFAULT_INSTANCE.toBuilder(); 3115 } 3116 newBuilder(com.google.appengine.v1.Version prototype)3117 public static Builder newBuilder(com.google.appengine.v1.Version prototype) { 3118 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3119 } 3120 3121 @java.lang.Override toBuilder()3122 public Builder toBuilder() { 3123 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 3124 } 3125 3126 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3127 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3128 Builder builder = new Builder(parent); 3129 return builder; 3130 } 3131 /** 3132 * 3133 * 3134 * <pre> 3135 * A Version resource is a specific set of source code and configuration files 3136 * that are deployed into a service. 3137 * </pre> 3138 * 3139 * Protobuf type {@code google.appengine.v1.Version} 3140 */ 3141 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 3142 implements 3143 // @@protoc_insertion_point(builder_implements:google.appengine.v1.Version) 3144 com.google.appengine.v1.VersionOrBuilder { getDescriptor()3145 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 3146 return com.google.appengine.v1.VersionProto 3147 .internal_static_google_appengine_v1_Version_descriptor; 3148 } 3149 3150 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)3151 protected com.google.protobuf.MapField internalGetMapField(int number) { 3152 switch (number) { 3153 case 13: 3154 return internalGetBetaSettings(); 3155 case 104: 3156 return internalGetEnvVariables(); 3157 case 125: 3158 return internalGetBuildEnvVariables(); 3159 default: 3160 throw new RuntimeException("Invalid map field number: " + number); 3161 } 3162 } 3163 3164 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)3165 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 3166 switch (number) { 3167 case 13: 3168 return internalGetMutableBetaSettings(); 3169 case 104: 3170 return internalGetMutableEnvVariables(); 3171 case 125: 3172 return internalGetMutableBuildEnvVariables(); 3173 default: 3174 throw new RuntimeException("Invalid map field number: " + number); 3175 } 3176 } 3177 3178 @java.lang.Override 3179 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()3180 internalGetFieldAccessorTable() { 3181 return com.google.appengine.v1.VersionProto 3182 .internal_static_google_appengine_v1_Version_fieldAccessorTable 3183 .ensureFieldAccessorsInitialized( 3184 com.google.appengine.v1.Version.class, com.google.appengine.v1.Version.Builder.class); 3185 } 3186 3187 // Construct using com.google.appengine.v1.Version.newBuilder() Builder()3188 private Builder() {} 3189 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3190 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3191 super(parent); 3192 } 3193 3194 @java.lang.Override clear()3195 public Builder clear() { 3196 super.clear(); 3197 bitField0_ = 0; 3198 bitField1_ = 0; 3199 name_ = ""; 3200 id_ = ""; 3201 if (automaticScalingBuilder_ != null) { 3202 automaticScalingBuilder_.clear(); 3203 } 3204 if (basicScalingBuilder_ != null) { 3205 basicScalingBuilder_.clear(); 3206 } 3207 if (manualScalingBuilder_ != null) { 3208 manualScalingBuilder_.clear(); 3209 } 3210 inboundServices_ = java.util.Collections.emptyList(); 3211 bitField0_ = (bitField0_ & ~0x00000020); 3212 instanceClass_ = ""; 3213 network_ = null; 3214 if (networkBuilder_ != null) { 3215 networkBuilder_.dispose(); 3216 networkBuilder_ = null; 3217 } 3218 zones_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3219 bitField0_ = (bitField0_ & ~0x00000100); 3220 resources_ = null; 3221 if (resourcesBuilder_ != null) { 3222 resourcesBuilder_.dispose(); 3223 resourcesBuilder_ = null; 3224 } 3225 runtime_ = ""; 3226 runtimeChannel_ = ""; 3227 threadsafe_ = false; 3228 vm_ = false; 3229 appEngineApis_ = false; 3230 internalGetMutableBetaSettings().clear(); 3231 env_ = ""; 3232 servingStatus_ = 0; 3233 createdBy_ = ""; 3234 createTime_ = null; 3235 if (createTimeBuilder_ != null) { 3236 createTimeBuilder_.dispose(); 3237 createTimeBuilder_ = null; 3238 } 3239 diskUsageBytes_ = 0L; 3240 runtimeApiVersion_ = ""; 3241 runtimeMainExecutablePath_ = ""; 3242 serviceAccount_ = ""; 3243 if (handlersBuilder_ == null) { 3244 handlers_ = java.util.Collections.emptyList(); 3245 } else { 3246 handlers_ = null; 3247 handlersBuilder_.clear(); 3248 } 3249 bitField0_ = (bitField0_ & ~0x01000000); 3250 if (errorHandlersBuilder_ == null) { 3251 errorHandlers_ = java.util.Collections.emptyList(); 3252 } else { 3253 errorHandlers_ = null; 3254 errorHandlersBuilder_.clear(); 3255 } 3256 bitField0_ = (bitField0_ & ~0x02000000); 3257 if (librariesBuilder_ == null) { 3258 libraries_ = java.util.Collections.emptyList(); 3259 } else { 3260 libraries_ = null; 3261 librariesBuilder_.clear(); 3262 } 3263 bitField0_ = (bitField0_ & ~0x04000000); 3264 apiConfig_ = null; 3265 if (apiConfigBuilder_ != null) { 3266 apiConfigBuilder_.dispose(); 3267 apiConfigBuilder_ = null; 3268 } 3269 internalGetMutableEnvVariables().clear(); 3270 internalGetMutableBuildEnvVariables().clear(); 3271 defaultExpiration_ = null; 3272 if (defaultExpirationBuilder_ != null) { 3273 defaultExpirationBuilder_.dispose(); 3274 defaultExpirationBuilder_ = null; 3275 } 3276 healthCheck_ = null; 3277 if (healthCheckBuilder_ != null) { 3278 healthCheckBuilder_.dispose(); 3279 healthCheckBuilder_ = null; 3280 } 3281 readinessCheck_ = null; 3282 if (readinessCheckBuilder_ != null) { 3283 readinessCheckBuilder_.dispose(); 3284 readinessCheckBuilder_ = null; 3285 } 3286 livenessCheck_ = null; 3287 if (livenessCheckBuilder_ != null) { 3288 livenessCheckBuilder_.dispose(); 3289 livenessCheckBuilder_ = null; 3290 } 3291 nobuildFilesRegex_ = ""; 3292 deployment_ = null; 3293 if (deploymentBuilder_ != null) { 3294 deploymentBuilder_.dispose(); 3295 deploymentBuilder_ = null; 3296 } 3297 versionUrl_ = ""; 3298 endpointsApiService_ = null; 3299 if (endpointsApiServiceBuilder_ != null) { 3300 endpointsApiServiceBuilder_.dispose(); 3301 endpointsApiServiceBuilder_ = null; 3302 } 3303 entrypoint_ = null; 3304 if (entrypointBuilder_ != null) { 3305 entrypointBuilder_.dispose(); 3306 entrypointBuilder_ = null; 3307 } 3308 vpcAccessConnector_ = null; 3309 if (vpcAccessConnectorBuilder_ != null) { 3310 vpcAccessConnectorBuilder_.dispose(); 3311 vpcAccessConnectorBuilder_ = null; 3312 } 3313 scalingCase_ = 0; 3314 scaling_ = null; 3315 return this; 3316 } 3317 3318 @java.lang.Override getDescriptorForType()3319 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 3320 return com.google.appengine.v1.VersionProto 3321 .internal_static_google_appengine_v1_Version_descriptor; 3322 } 3323 3324 @java.lang.Override getDefaultInstanceForType()3325 public com.google.appengine.v1.Version getDefaultInstanceForType() { 3326 return com.google.appengine.v1.Version.getDefaultInstance(); 3327 } 3328 3329 @java.lang.Override build()3330 public com.google.appengine.v1.Version build() { 3331 com.google.appengine.v1.Version result = buildPartial(); 3332 if (!result.isInitialized()) { 3333 throw newUninitializedMessageException(result); 3334 } 3335 return result; 3336 } 3337 3338 @java.lang.Override buildPartial()3339 public com.google.appengine.v1.Version buildPartial() { 3340 com.google.appengine.v1.Version result = new com.google.appengine.v1.Version(this); 3341 buildPartialRepeatedFields(result); 3342 if (bitField0_ != 0) { 3343 buildPartial0(result); 3344 } 3345 if (bitField1_ != 0) { 3346 buildPartial1(result); 3347 } 3348 buildPartialOneofs(result); 3349 onBuilt(); 3350 return result; 3351 } 3352 buildPartialRepeatedFields(com.google.appengine.v1.Version result)3353 private void buildPartialRepeatedFields(com.google.appengine.v1.Version result) { 3354 if (((bitField0_ & 0x00000020) != 0)) { 3355 inboundServices_ = java.util.Collections.unmodifiableList(inboundServices_); 3356 bitField0_ = (bitField0_ & ~0x00000020); 3357 } 3358 result.inboundServices_ = inboundServices_; 3359 if (((bitField0_ & 0x00000100) != 0)) { 3360 zones_ = zones_.getUnmodifiableView(); 3361 bitField0_ = (bitField0_ & ~0x00000100); 3362 } 3363 result.zones_ = zones_; 3364 if (handlersBuilder_ == null) { 3365 if (((bitField0_ & 0x01000000) != 0)) { 3366 handlers_ = java.util.Collections.unmodifiableList(handlers_); 3367 bitField0_ = (bitField0_ & ~0x01000000); 3368 } 3369 result.handlers_ = handlers_; 3370 } else { 3371 result.handlers_ = handlersBuilder_.build(); 3372 } 3373 if (errorHandlersBuilder_ == null) { 3374 if (((bitField0_ & 0x02000000) != 0)) { 3375 errorHandlers_ = java.util.Collections.unmodifiableList(errorHandlers_); 3376 bitField0_ = (bitField0_ & ~0x02000000); 3377 } 3378 result.errorHandlers_ = errorHandlers_; 3379 } else { 3380 result.errorHandlers_ = errorHandlersBuilder_.build(); 3381 } 3382 if (librariesBuilder_ == null) { 3383 if (((bitField0_ & 0x04000000) != 0)) { 3384 libraries_ = java.util.Collections.unmodifiableList(libraries_); 3385 bitField0_ = (bitField0_ & ~0x04000000); 3386 } 3387 result.libraries_ = libraries_; 3388 } else { 3389 result.libraries_ = librariesBuilder_.build(); 3390 } 3391 } 3392 buildPartial0(com.google.appengine.v1.Version result)3393 private void buildPartial0(com.google.appengine.v1.Version result) { 3394 int from_bitField0_ = bitField0_; 3395 if (((from_bitField0_ & 0x00000001) != 0)) { 3396 result.name_ = name_; 3397 } 3398 if (((from_bitField0_ & 0x00000002) != 0)) { 3399 result.id_ = id_; 3400 } 3401 if (((from_bitField0_ & 0x00000040) != 0)) { 3402 result.instanceClass_ = instanceClass_; 3403 } 3404 if (((from_bitField0_ & 0x00000080) != 0)) { 3405 result.network_ = networkBuilder_ == null ? network_ : networkBuilder_.build(); 3406 } 3407 if (((from_bitField0_ & 0x00000200) != 0)) { 3408 result.resources_ = resourcesBuilder_ == null ? resources_ : resourcesBuilder_.build(); 3409 } 3410 if (((from_bitField0_ & 0x00000400) != 0)) { 3411 result.runtime_ = runtime_; 3412 } 3413 if (((from_bitField0_ & 0x00000800) != 0)) { 3414 result.runtimeChannel_ = runtimeChannel_; 3415 } 3416 if (((from_bitField0_ & 0x00001000) != 0)) { 3417 result.threadsafe_ = threadsafe_; 3418 } 3419 if (((from_bitField0_ & 0x00002000) != 0)) { 3420 result.vm_ = vm_; 3421 } 3422 if (((from_bitField0_ & 0x00004000) != 0)) { 3423 result.appEngineApis_ = appEngineApis_; 3424 } 3425 if (((from_bitField0_ & 0x00008000) != 0)) { 3426 result.betaSettings_ = internalGetBetaSettings(); 3427 result.betaSettings_.makeImmutable(); 3428 } 3429 if (((from_bitField0_ & 0x00010000) != 0)) { 3430 result.env_ = env_; 3431 } 3432 if (((from_bitField0_ & 0x00020000) != 0)) { 3433 result.servingStatus_ = servingStatus_; 3434 } 3435 if (((from_bitField0_ & 0x00040000) != 0)) { 3436 result.createdBy_ = createdBy_; 3437 } 3438 if (((from_bitField0_ & 0x00080000) != 0)) { 3439 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 3440 } 3441 if (((from_bitField0_ & 0x00100000) != 0)) { 3442 result.diskUsageBytes_ = diskUsageBytes_; 3443 } 3444 if (((from_bitField0_ & 0x00200000) != 0)) { 3445 result.runtimeApiVersion_ = runtimeApiVersion_; 3446 } 3447 if (((from_bitField0_ & 0x00400000) != 0)) { 3448 result.runtimeMainExecutablePath_ = runtimeMainExecutablePath_; 3449 } 3450 if (((from_bitField0_ & 0x00800000) != 0)) { 3451 result.serviceAccount_ = serviceAccount_; 3452 } 3453 if (((from_bitField0_ & 0x08000000) != 0)) { 3454 result.apiConfig_ = apiConfigBuilder_ == null ? apiConfig_ : apiConfigBuilder_.build(); 3455 } 3456 if (((from_bitField0_ & 0x10000000) != 0)) { 3457 result.envVariables_ = internalGetEnvVariables(); 3458 result.envVariables_.makeImmutable(); 3459 } 3460 if (((from_bitField0_ & 0x20000000) != 0)) { 3461 result.buildEnvVariables_ = internalGetBuildEnvVariables(); 3462 result.buildEnvVariables_.makeImmutable(); 3463 } 3464 if (((from_bitField0_ & 0x40000000) != 0)) { 3465 result.defaultExpiration_ = 3466 defaultExpirationBuilder_ == null 3467 ? defaultExpiration_ 3468 : defaultExpirationBuilder_.build(); 3469 } 3470 if (((from_bitField0_ & 0x80000000) != 0)) { 3471 result.healthCheck_ = 3472 healthCheckBuilder_ == null ? healthCheck_ : healthCheckBuilder_.build(); 3473 } 3474 } 3475 buildPartial1(com.google.appengine.v1.Version result)3476 private void buildPartial1(com.google.appengine.v1.Version result) { 3477 int from_bitField1_ = bitField1_; 3478 if (((from_bitField1_ & 0x00000001) != 0)) { 3479 result.readinessCheck_ = 3480 readinessCheckBuilder_ == null ? readinessCheck_ : readinessCheckBuilder_.build(); 3481 } 3482 if (((from_bitField1_ & 0x00000002) != 0)) { 3483 result.livenessCheck_ = 3484 livenessCheckBuilder_ == null ? livenessCheck_ : livenessCheckBuilder_.build(); 3485 } 3486 if (((from_bitField1_ & 0x00000004) != 0)) { 3487 result.nobuildFilesRegex_ = nobuildFilesRegex_; 3488 } 3489 if (((from_bitField1_ & 0x00000008) != 0)) { 3490 result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); 3491 } 3492 if (((from_bitField1_ & 0x00000010) != 0)) { 3493 result.versionUrl_ = versionUrl_; 3494 } 3495 if (((from_bitField1_ & 0x00000020) != 0)) { 3496 result.endpointsApiService_ = 3497 endpointsApiServiceBuilder_ == null 3498 ? endpointsApiService_ 3499 : endpointsApiServiceBuilder_.build(); 3500 } 3501 if (((from_bitField1_ & 0x00000040) != 0)) { 3502 result.entrypoint_ = entrypointBuilder_ == null ? entrypoint_ : entrypointBuilder_.build(); 3503 } 3504 if (((from_bitField1_ & 0x00000080) != 0)) { 3505 result.vpcAccessConnector_ = 3506 vpcAccessConnectorBuilder_ == null 3507 ? vpcAccessConnector_ 3508 : vpcAccessConnectorBuilder_.build(); 3509 } 3510 } 3511 buildPartialOneofs(com.google.appengine.v1.Version result)3512 private void buildPartialOneofs(com.google.appengine.v1.Version result) { 3513 result.scalingCase_ = scalingCase_; 3514 result.scaling_ = this.scaling_; 3515 if (scalingCase_ == 3 && automaticScalingBuilder_ != null) { 3516 result.scaling_ = automaticScalingBuilder_.build(); 3517 } 3518 if (scalingCase_ == 4 && basicScalingBuilder_ != null) { 3519 result.scaling_ = basicScalingBuilder_.build(); 3520 } 3521 if (scalingCase_ == 5 && manualScalingBuilder_ != null) { 3522 result.scaling_ = manualScalingBuilder_.build(); 3523 } 3524 } 3525 3526 @java.lang.Override clone()3527 public Builder clone() { 3528 return super.clone(); 3529 } 3530 3531 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3532 public Builder setField( 3533 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3534 return super.setField(field, value); 3535 } 3536 3537 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3538 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 3539 return super.clearField(field); 3540 } 3541 3542 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3543 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 3544 return super.clearOneof(oneof); 3545 } 3546 3547 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3548 public Builder setRepeatedField( 3549 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 3550 return super.setRepeatedField(field, index, value); 3551 } 3552 3553 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3554 public Builder addRepeatedField( 3555 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3556 return super.addRepeatedField(field, value); 3557 } 3558 3559 @java.lang.Override mergeFrom(com.google.protobuf.Message other)3560 public Builder mergeFrom(com.google.protobuf.Message other) { 3561 if (other instanceof com.google.appengine.v1.Version) { 3562 return mergeFrom((com.google.appengine.v1.Version) other); 3563 } else { 3564 super.mergeFrom(other); 3565 return this; 3566 } 3567 } 3568 mergeFrom(com.google.appengine.v1.Version other)3569 public Builder mergeFrom(com.google.appengine.v1.Version other) { 3570 if (other == com.google.appengine.v1.Version.getDefaultInstance()) return this; 3571 if (!other.getName().isEmpty()) { 3572 name_ = other.name_; 3573 bitField0_ |= 0x00000001; 3574 onChanged(); 3575 } 3576 if (!other.getId().isEmpty()) { 3577 id_ = other.id_; 3578 bitField0_ |= 0x00000002; 3579 onChanged(); 3580 } 3581 if (!other.inboundServices_.isEmpty()) { 3582 if (inboundServices_.isEmpty()) { 3583 inboundServices_ = other.inboundServices_; 3584 bitField0_ = (bitField0_ & ~0x00000020); 3585 } else { 3586 ensureInboundServicesIsMutable(); 3587 inboundServices_.addAll(other.inboundServices_); 3588 } 3589 onChanged(); 3590 } 3591 if (!other.getInstanceClass().isEmpty()) { 3592 instanceClass_ = other.instanceClass_; 3593 bitField0_ |= 0x00000040; 3594 onChanged(); 3595 } 3596 if (other.hasNetwork()) { 3597 mergeNetwork(other.getNetwork()); 3598 } 3599 if (!other.zones_.isEmpty()) { 3600 if (zones_.isEmpty()) { 3601 zones_ = other.zones_; 3602 bitField0_ = (bitField0_ & ~0x00000100); 3603 } else { 3604 ensureZonesIsMutable(); 3605 zones_.addAll(other.zones_); 3606 } 3607 onChanged(); 3608 } 3609 if (other.hasResources()) { 3610 mergeResources(other.getResources()); 3611 } 3612 if (!other.getRuntime().isEmpty()) { 3613 runtime_ = other.runtime_; 3614 bitField0_ |= 0x00000400; 3615 onChanged(); 3616 } 3617 if (!other.getRuntimeChannel().isEmpty()) { 3618 runtimeChannel_ = other.runtimeChannel_; 3619 bitField0_ |= 0x00000800; 3620 onChanged(); 3621 } 3622 if (other.getThreadsafe() != false) { 3623 setThreadsafe(other.getThreadsafe()); 3624 } 3625 if (other.getVm() != false) { 3626 setVm(other.getVm()); 3627 } 3628 if (other.getAppEngineApis() != false) { 3629 setAppEngineApis(other.getAppEngineApis()); 3630 } 3631 internalGetMutableBetaSettings().mergeFrom(other.internalGetBetaSettings()); 3632 bitField0_ |= 0x00008000; 3633 if (!other.getEnv().isEmpty()) { 3634 env_ = other.env_; 3635 bitField0_ |= 0x00010000; 3636 onChanged(); 3637 } 3638 if (other.servingStatus_ != 0) { 3639 setServingStatusValue(other.getServingStatusValue()); 3640 } 3641 if (!other.getCreatedBy().isEmpty()) { 3642 createdBy_ = other.createdBy_; 3643 bitField0_ |= 0x00040000; 3644 onChanged(); 3645 } 3646 if (other.hasCreateTime()) { 3647 mergeCreateTime(other.getCreateTime()); 3648 } 3649 if (other.getDiskUsageBytes() != 0L) { 3650 setDiskUsageBytes(other.getDiskUsageBytes()); 3651 } 3652 if (!other.getRuntimeApiVersion().isEmpty()) { 3653 runtimeApiVersion_ = other.runtimeApiVersion_; 3654 bitField0_ |= 0x00200000; 3655 onChanged(); 3656 } 3657 if (!other.getRuntimeMainExecutablePath().isEmpty()) { 3658 runtimeMainExecutablePath_ = other.runtimeMainExecutablePath_; 3659 bitField0_ |= 0x00400000; 3660 onChanged(); 3661 } 3662 if (!other.getServiceAccount().isEmpty()) { 3663 serviceAccount_ = other.serviceAccount_; 3664 bitField0_ |= 0x00800000; 3665 onChanged(); 3666 } 3667 if (handlersBuilder_ == null) { 3668 if (!other.handlers_.isEmpty()) { 3669 if (handlers_.isEmpty()) { 3670 handlers_ = other.handlers_; 3671 bitField0_ = (bitField0_ & ~0x01000000); 3672 } else { 3673 ensureHandlersIsMutable(); 3674 handlers_.addAll(other.handlers_); 3675 } 3676 onChanged(); 3677 } 3678 } else { 3679 if (!other.handlers_.isEmpty()) { 3680 if (handlersBuilder_.isEmpty()) { 3681 handlersBuilder_.dispose(); 3682 handlersBuilder_ = null; 3683 handlers_ = other.handlers_; 3684 bitField0_ = (bitField0_ & ~0x01000000); 3685 handlersBuilder_ = 3686 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 3687 ? getHandlersFieldBuilder() 3688 : null; 3689 } else { 3690 handlersBuilder_.addAllMessages(other.handlers_); 3691 } 3692 } 3693 } 3694 if (errorHandlersBuilder_ == null) { 3695 if (!other.errorHandlers_.isEmpty()) { 3696 if (errorHandlers_.isEmpty()) { 3697 errorHandlers_ = other.errorHandlers_; 3698 bitField0_ = (bitField0_ & ~0x02000000); 3699 } else { 3700 ensureErrorHandlersIsMutable(); 3701 errorHandlers_.addAll(other.errorHandlers_); 3702 } 3703 onChanged(); 3704 } 3705 } else { 3706 if (!other.errorHandlers_.isEmpty()) { 3707 if (errorHandlersBuilder_.isEmpty()) { 3708 errorHandlersBuilder_.dispose(); 3709 errorHandlersBuilder_ = null; 3710 errorHandlers_ = other.errorHandlers_; 3711 bitField0_ = (bitField0_ & ~0x02000000); 3712 errorHandlersBuilder_ = 3713 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 3714 ? getErrorHandlersFieldBuilder() 3715 : null; 3716 } else { 3717 errorHandlersBuilder_.addAllMessages(other.errorHandlers_); 3718 } 3719 } 3720 } 3721 if (librariesBuilder_ == null) { 3722 if (!other.libraries_.isEmpty()) { 3723 if (libraries_.isEmpty()) { 3724 libraries_ = other.libraries_; 3725 bitField0_ = (bitField0_ & ~0x04000000); 3726 } else { 3727 ensureLibrariesIsMutable(); 3728 libraries_.addAll(other.libraries_); 3729 } 3730 onChanged(); 3731 } 3732 } else { 3733 if (!other.libraries_.isEmpty()) { 3734 if (librariesBuilder_.isEmpty()) { 3735 librariesBuilder_.dispose(); 3736 librariesBuilder_ = null; 3737 libraries_ = other.libraries_; 3738 bitField0_ = (bitField0_ & ~0x04000000); 3739 librariesBuilder_ = 3740 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 3741 ? getLibrariesFieldBuilder() 3742 : null; 3743 } else { 3744 librariesBuilder_.addAllMessages(other.libraries_); 3745 } 3746 } 3747 } 3748 if (other.hasApiConfig()) { 3749 mergeApiConfig(other.getApiConfig()); 3750 } 3751 internalGetMutableEnvVariables().mergeFrom(other.internalGetEnvVariables()); 3752 bitField0_ |= 0x10000000; 3753 internalGetMutableBuildEnvVariables().mergeFrom(other.internalGetBuildEnvVariables()); 3754 bitField0_ |= 0x20000000; 3755 if (other.hasDefaultExpiration()) { 3756 mergeDefaultExpiration(other.getDefaultExpiration()); 3757 } 3758 if (other.hasHealthCheck()) { 3759 mergeHealthCheck(other.getHealthCheck()); 3760 } 3761 if (other.hasReadinessCheck()) { 3762 mergeReadinessCheck(other.getReadinessCheck()); 3763 } 3764 if (other.hasLivenessCheck()) { 3765 mergeLivenessCheck(other.getLivenessCheck()); 3766 } 3767 if (!other.getNobuildFilesRegex().isEmpty()) { 3768 nobuildFilesRegex_ = other.nobuildFilesRegex_; 3769 bitField1_ |= 0x00000004; 3770 onChanged(); 3771 } 3772 if (other.hasDeployment()) { 3773 mergeDeployment(other.getDeployment()); 3774 } 3775 if (!other.getVersionUrl().isEmpty()) { 3776 versionUrl_ = other.versionUrl_; 3777 bitField1_ |= 0x00000010; 3778 onChanged(); 3779 } 3780 if (other.hasEndpointsApiService()) { 3781 mergeEndpointsApiService(other.getEndpointsApiService()); 3782 } 3783 if (other.hasEntrypoint()) { 3784 mergeEntrypoint(other.getEntrypoint()); 3785 } 3786 if (other.hasVpcAccessConnector()) { 3787 mergeVpcAccessConnector(other.getVpcAccessConnector()); 3788 } 3789 switch (other.getScalingCase()) { 3790 case AUTOMATIC_SCALING: 3791 { 3792 mergeAutomaticScaling(other.getAutomaticScaling()); 3793 break; 3794 } 3795 case BASIC_SCALING: 3796 { 3797 mergeBasicScaling(other.getBasicScaling()); 3798 break; 3799 } 3800 case MANUAL_SCALING: 3801 { 3802 mergeManualScaling(other.getManualScaling()); 3803 break; 3804 } 3805 case SCALING_NOT_SET: 3806 { 3807 break; 3808 } 3809 } 3810 this.mergeUnknownFields(other.getUnknownFields()); 3811 onChanged(); 3812 return this; 3813 } 3814 3815 @java.lang.Override isInitialized()3816 public final boolean isInitialized() { 3817 return true; 3818 } 3819 3820 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3821 public Builder mergeFrom( 3822 com.google.protobuf.CodedInputStream input, 3823 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3824 throws java.io.IOException { 3825 if (extensionRegistry == null) { 3826 throw new java.lang.NullPointerException(); 3827 } 3828 try { 3829 boolean done = false; 3830 while (!done) { 3831 int tag = input.readTag(); 3832 switch (tag) { 3833 case 0: 3834 done = true; 3835 break; 3836 case 10: 3837 { 3838 name_ = input.readStringRequireUtf8(); 3839 bitField0_ |= 0x00000001; 3840 break; 3841 } // case 10 3842 case 18: 3843 { 3844 id_ = input.readStringRequireUtf8(); 3845 bitField0_ |= 0x00000002; 3846 break; 3847 } // case 18 3848 case 26: 3849 { 3850 input.readMessage( 3851 getAutomaticScalingFieldBuilder().getBuilder(), extensionRegistry); 3852 scalingCase_ = 3; 3853 break; 3854 } // case 26 3855 case 34: 3856 { 3857 input.readMessage(getBasicScalingFieldBuilder().getBuilder(), extensionRegistry); 3858 scalingCase_ = 4; 3859 break; 3860 } // case 34 3861 case 42: 3862 { 3863 input.readMessage(getManualScalingFieldBuilder().getBuilder(), extensionRegistry); 3864 scalingCase_ = 5; 3865 break; 3866 } // case 42 3867 case 48: 3868 { 3869 int tmpRaw = input.readEnum(); 3870 ensureInboundServicesIsMutable(); 3871 inboundServices_.add(tmpRaw); 3872 break; 3873 } // case 48 3874 case 50: 3875 { 3876 int length = input.readRawVarint32(); 3877 int oldLimit = input.pushLimit(length); 3878 while (input.getBytesUntilLimit() > 0) { 3879 int tmpRaw = input.readEnum(); 3880 ensureInboundServicesIsMutable(); 3881 inboundServices_.add(tmpRaw); 3882 } 3883 input.popLimit(oldLimit); 3884 break; 3885 } // case 50 3886 case 58: 3887 { 3888 instanceClass_ = input.readStringRequireUtf8(); 3889 bitField0_ |= 0x00000040; 3890 break; 3891 } // case 58 3892 case 66: 3893 { 3894 input.readMessage(getNetworkFieldBuilder().getBuilder(), extensionRegistry); 3895 bitField0_ |= 0x00000080; 3896 break; 3897 } // case 66 3898 case 74: 3899 { 3900 input.readMessage(getResourcesFieldBuilder().getBuilder(), extensionRegistry); 3901 bitField0_ |= 0x00000200; 3902 break; 3903 } // case 74 3904 case 82: 3905 { 3906 runtime_ = input.readStringRequireUtf8(); 3907 bitField0_ |= 0x00000400; 3908 break; 3909 } // case 82 3910 case 88: 3911 { 3912 threadsafe_ = input.readBool(); 3913 bitField0_ |= 0x00001000; 3914 break; 3915 } // case 88 3916 case 96: 3917 { 3918 vm_ = input.readBool(); 3919 bitField0_ |= 0x00002000; 3920 break; 3921 } // case 96 3922 case 106: 3923 { 3924 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> betaSettings__ = 3925 input.readMessage( 3926 BetaSettingsDefaultEntryHolder.defaultEntry.getParserForType(), 3927 extensionRegistry); 3928 internalGetMutableBetaSettings() 3929 .getMutableMap() 3930 .put(betaSettings__.getKey(), betaSettings__.getValue()); 3931 bitField0_ |= 0x00008000; 3932 break; 3933 } // case 106 3934 case 114: 3935 { 3936 env_ = input.readStringRequireUtf8(); 3937 bitField0_ |= 0x00010000; 3938 break; 3939 } // case 114 3940 case 120: 3941 { 3942 servingStatus_ = input.readEnum(); 3943 bitField0_ |= 0x00020000; 3944 break; 3945 } // case 120 3946 case 130: 3947 { 3948 createdBy_ = input.readStringRequireUtf8(); 3949 bitField0_ |= 0x00040000; 3950 break; 3951 } // case 130 3952 case 138: 3953 { 3954 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 3955 bitField0_ |= 0x00080000; 3956 break; 3957 } // case 138 3958 case 144: 3959 { 3960 diskUsageBytes_ = input.readInt64(); 3961 bitField0_ |= 0x00100000; 3962 break; 3963 } // case 144 3964 case 170: 3965 { 3966 runtimeApiVersion_ = input.readStringRequireUtf8(); 3967 bitField0_ |= 0x00200000; 3968 break; 3969 } // case 170 3970 case 178: 3971 { 3972 runtimeMainExecutablePath_ = input.readStringRequireUtf8(); 3973 bitField0_ |= 0x00400000; 3974 break; 3975 } // case 178 3976 case 802: 3977 { 3978 com.google.appengine.v1.UrlMap m = 3979 input.readMessage(com.google.appengine.v1.UrlMap.parser(), extensionRegistry); 3980 if (handlersBuilder_ == null) { 3981 ensureHandlersIsMutable(); 3982 handlers_.add(m); 3983 } else { 3984 handlersBuilder_.addMessage(m); 3985 } 3986 break; 3987 } // case 802 3988 case 810: 3989 { 3990 com.google.appengine.v1.ErrorHandler m = 3991 input.readMessage( 3992 com.google.appengine.v1.ErrorHandler.parser(), extensionRegistry); 3993 if (errorHandlersBuilder_ == null) { 3994 ensureErrorHandlersIsMutable(); 3995 errorHandlers_.add(m); 3996 } else { 3997 errorHandlersBuilder_.addMessage(m); 3998 } 3999 break; 4000 } // case 810 4001 case 818: 4002 { 4003 com.google.appengine.v1.Library m = 4004 input.readMessage(com.google.appengine.v1.Library.parser(), extensionRegistry); 4005 if (librariesBuilder_ == null) { 4006 ensureLibrariesIsMutable(); 4007 libraries_.add(m); 4008 } else { 4009 librariesBuilder_.addMessage(m); 4010 } 4011 break; 4012 } // case 818 4013 case 826: 4014 { 4015 input.readMessage(getApiConfigFieldBuilder().getBuilder(), extensionRegistry); 4016 bitField0_ |= 0x08000000; 4017 break; 4018 } // case 826 4019 case 834: 4020 { 4021 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> envVariables__ = 4022 input.readMessage( 4023 EnvVariablesDefaultEntryHolder.defaultEntry.getParserForType(), 4024 extensionRegistry); 4025 internalGetMutableEnvVariables() 4026 .getMutableMap() 4027 .put(envVariables__.getKey(), envVariables__.getValue()); 4028 bitField0_ |= 0x10000000; 4029 break; 4030 } // case 834 4031 case 842: 4032 { 4033 input.readMessage( 4034 getDefaultExpirationFieldBuilder().getBuilder(), extensionRegistry); 4035 bitField0_ |= 0x40000000; 4036 break; 4037 } // case 842 4038 case 850: 4039 { 4040 input.readMessage(getHealthCheckFieldBuilder().getBuilder(), extensionRegistry); 4041 bitField0_ |= 0x80000000; 4042 break; 4043 } // case 850 4044 case 858: 4045 { 4046 nobuildFilesRegex_ = input.readStringRequireUtf8(); 4047 bitField1_ |= 0x00000004; 4048 break; 4049 } // case 858 4050 case 866: 4051 { 4052 input.readMessage(getDeploymentFieldBuilder().getBuilder(), extensionRegistry); 4053 bitField1_ |= 0x00000008; 4054 break; 4055 } // case 866 4056 case 874: 4057 { 4058 versionUrl_ = input.readStringRequireUtf8(); 4059 bitField1_ |= 0x00000010; 4060 break; 4061 } // case 874 4062 case 882: 4063 { 4064 input.readMessage( 4065 getEndpointsApiServiceFieldBuilder().getBuilder(), extensionRegistry); 4066 bitField1_ |= 0x00000020; 4067 break; 4068 } // case 882 4069 case 898: 4070 { 4071 input.readMessage(getReadinessCheckFieldBuilder().getBuilder(), extensionRegistry); 4072 bitField1_ |= 0x00000001; 4073 break; 4074 } // case 898 4075 case 906: 4076 { 4077 input.readMessage(getLivenessCheckFieldBuilder().getBuilder(), extensionRegistry); 4078 bitField1_ |= 0x00000002; 4079 break; 4080 } // case 906 4081 case 938: 4082 { 4083 runtimeChannel_ = input.readStringRequireUtf8(); 4084 bitField0_ |= 0x00000800; 4085 break; 4086 } // case 938 4087 case 946: 4088 { 4089 java.lang.String s = input.readStringRequireUtf8(); 4090 ensureZonesIsMutable(); 4091 zones_.add(s); 4092 break; 4093 } // case 946 4094 case 970: 4095 { 4096 input.readMessage( 4097 getVpcAccessConnectorFieldBuilder().getBuilder(), extensionRegistry); 4098 bitField1_ |= 0x00000080; 4099 break; 4100 } // case 970 4101 case 978: 4102 { 4103 input.readMessage(getEntrypointFieldBuilder().getBuilder(), extensionRegistry); 4104 bitField1_ |= 0x00000040; 4105 break; 4106 } // case 978 4107 case 1002: 4108 { 4109 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 4110 buildEnvVariables__ = 4111 input.readMessage( 4112 BuildEnvVariablesDefaultEntryHolder.defaultEntry.getParserForType(), 4113 extensionRegistry); 4114 internalGetMutableBuildEnvVariables() 4115 .getMutableMap() 4116 .put(buildEnvVariables__.getKey(), buildEnvVariables__.getValue()); 4117 bitField0_ |= 0x20000000; 4118 break; 4119 } // case 1002 4120 case 1018: 4121 { 4122 serviceAccount_ = input.readStringRequireUtf8(); 4123 bitField0_ |= 0x00800000; 4124 break; 4125 } // case 1018 4126 case 1024: 4127 { 4128 appEngineApis_ = input.readBool(); 4129 bitField0_ |= 0x00004000; 4130 break; 4131 } // case 1024 4132 default: 4133 { 4134 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 4135 done = true; // was an endgroup tag 4136 } 4137 break; 4138 } // default: 4139 } // switch (tag) 4140 } // while (!done) 4141 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4142 throw e.unwrapIOException(); 4143 } finally { 4144 onChanged(); 4145 } // finally 4146 return this; 4147 } 4148 4149 private int scalingCase_ = 0; 4150 private java.lang.Object scaling_; 4151 getScalingCase()4152 public ScalingCase getScalingCase() { 4153 return ScalingCase.forNumber(scalingCase_); 4154 } 4155 clearScaling()4156 public Builder clearScaling() { 4157 scalingCase_ = 0; 4158 scaling_ = null; 4159 onChanged(); 4160 return this; 4161 } 4162 4163 private int bitField0_; 4164 private int bitField1_; 4165 4166 private java.lang.Object name_ = ""; 4167 /** 4168 * 4169 * 4170 * <pre> 4171 * Full path to the Version resource in the API. Example: 4172 * `apps/myapp/services/default/versions/v1`. 4173 * @OutputOnly 4174 * </pre> 4175 * 4176 * <code>string name = 1;</code> 4177 * 4178 * @return The name. 4179 */ getName()4180 public java.lang.String getName() { 4181 java.lang.Object ref = name_; 4182 if (!(ref instanceof java.lang.String)) { 4183 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4184 java.lang.String s = bs.toStringUtf8(); 4185 name_ = s; 4186 return s; 4187 } else { 4188 return (java.lang.String) ref; 4189 } 4190 } 4191 /** 4192 * 4193 * 4194 * <pre> 4195 * Full path to the Version resource in the API. Example: 4196 * `apps/myapp/services/default/versions/v1`. 4197 * @OutputOnly 4198 * </pre> 4199 * 4200 * <code>string name = 1;</code> 4201 * 4202 * @return The bytes for name. 4203 */ getNameBytes()4204 public com.google.protobuf.ByteString getNameBytes() { 4205 java.lang.Object ref = name_; 4206 if (ref instanceof String) { 4207 com.google.protobuf.ByteString b = 4208 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4209 name_ = b; 4210 return b; 4211 } else { 4212 return (com.google.protobuf.ByteString) ref; 4213 } 4214 } 4215 /** 4216 * 4217 * 4218 * <pre> 4219 * Full path to the Version resource in the API. Example: 4220 * `apps/myapp/services/default/versions/v1`. 4221 * @OutputOnly 4222 * </pre> 4223 * 4224 * <code>string name = 1;</code> 4225 * 4226 * @param value The name to set. 4227 * @return This builder for chaining. 4228 */ setName(java.lang.String value)4229 public Builder setName(java.lang.String value) { 4230 if (value == null) { 4231 throw new NullPointerException(); 4232 } 4233 name_ = value; 4234 bitField0_ |= 0x00000001; 4235 onChanged(); 4236 return this; 4237 } 4238 /** 4239 * 4240 * 4241 * <pre> 4242 * Full path to the Version resource in the API. Example: 4243 * `apps/myapp/services/default/versions/v1`. 4244 * @OutputOnly 4245 * </pre> 4246 * 4247 * <code>string name = 1;</code> 4248 * 4249 * @return This builder for chaining. 4250 */ clearName()4251 public Builder clearName() { 4252 name_ = getDefaultInstance().getName(); 4253 bitField0_ = (bitField0_ & ~0x00000001); 4254 onChanged(); 4255 return this; 4256 } 4257 /** 4258 * 4259 * 4260 * <pre> 4261 * Full path to the Version resource in the API. Example: 4262 * `apps/myapp/services/default/versions/v1`. 4263 * @OutputOnly 4264 * </pre> 4265 * 4266 * <code>string name = 1;</code> 4267 * 4268 * @param value The bytes for name to set. 4269 * @return This builder for chaining. 4270 */ setNameBytes(com.google.protobuf.ByteString value)4271 public Builder setNameBytes(com.google.protobuf.ByteString value) { 4272 if (value == null) { 4273 throw new NullPointerException(); 4274 } 4275 checkByteStringIsUtf8(value); 4276 name_ = value; 4277 bitField0_ |= 0x00000001; 4278 onChanged(); 4279 return this; 4280 } 4281 4282 private java.lang.Object id_ = ""; 4283 /** 4284 * 4285 * 4286 * <pre> 4287 * Relative name of the version within the service. Example: `v1`. 4288 * Version names can contain only lowercase letters, numbers, or hyphens. 4289 * Reserved names: "default", "latest", and any name with the prefix "ah-". 4290 * </pre> 4291 * 4292 * <code>string id = 2;</code> 4293 * 4294 * @return The id. 4295 */ getId()4296 public java.lang.String getId() { 4297 java.lang.Object ref = id_; 4298 if (!(ref instanceof java.lang.String)) { 4299 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4300 java.lang.String s = bs.toStringUtf8(); 4301 id_ = s; 4302 return s; 4303 } else { 4304 return (java.lang.String) ref; 4305 } 4306 } 4307 /** 4308 * 4309 * 4310 * <pre> 4311 * Relative name of the version within the service. Example: `v1`. 4312 * Version names can contain only lowercase letters, numbers, or hyphens. 4313 * Reserved names: "default", "latest", and any name with the prefix "ah-". 4314 * </pre> 4315 * 4316 * <code>string id = 2;</code> 4317 * 4318 * @return The bytes for id. 4319 */ getIdBytes()4320 public com.google.protobuf.ByteString getIdBytes() { 4321 java.lang.Object ref = id_; 4322 if (ref instanceof String) { 4323 com.google.protobuf.ByteString b = 4324 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4325 id_ = b; 4326 return b; 4327 } else { 4328 return (com.google.protobuf.ByteString) ref; 4329 } 4330 } 4331 /** 4332 * 4333 * 4334 * <pre> 4335 * Relative name of the version within the service. Example: `v1`. 4336 * Version names can contain only lowercase letters, numbers, or hyphens. 4337 * Reserved names: "default", "latest", and any name with the prefix "ah-". 4338 * </pre> 4339 * 4340 * <code>string id = 2;</code> 4341 * 4342 * @param value The id to set. 4343 * @return This builder for chaining. 4344 */ setId(java.lang.String value)4345 public Builder setId(java.lang.String value) { 4346 if (value == null) { 4347 throw new NullPointerException(); 4348 } 4349 id_ = value; 4350 bitField0_ |= 0x00000002; 4351 onChanged(); 4352 return this; 4353 } 4354 /** 4355 * 4356 * 4357 * <pre> 4358 * Relative name of the version within the service. Example: `v1`. 4359 * Version names can contain only lowercase letters, numbers, or hyphens. 4360 * Reserved names: "default", "latest", and any name with the prefix "ah-". 4361 * </pre> 4362 * 4363 * <code>string id = 2;</code> 4364 * 4365 * @return This builder for chaining. 4366 */ clearId()4367 public Builder clearId() { 4368 id_ = getDefaultInstance().getId(); 4369 bitField0_ = (bitField0_ & ~0x00000002); 4370 onChanged(); 4371 return this; 4372 } 4373 /** 4374 * 4375 * 4376 * <pre> 4377 * Relative name of the version within the service. Example: `v1`. 4378 * Version names can contain only lowercase letters, numbers, or hyphens. 4379 * Reserved names: "default", "latest", and any name with the prefix "ah-". 4380 * </pre> 4381 * 4382 * <code>string id = 2;</code> 4383 * 4384 * @param value The bytes for id to set. 4385 * @return This builder for chaining. 4386 */ setIdBytes(com.google.protobuf.ByteString value)4387 public Builder setIdBytes(com.google.protobuf.ByteString value) { 4388 if (value == null) { 4389 throw new NullPointerException(); 4390 } 4391 checkByteStringIsUtf8(value); 4392 id_ = value; 4393 bitField0_ |= 0x00000002; 4394 onChanged(); 4395 return this; 4396 } 4397 4398 private com.google.protobuf.SingleFieldBuilderV3< 4399 com.google.appengine.v1.AutomaticScaling, 4400 com.google.appengine.v1.AutomaticScaling.Builder, 4401 com.google.appengine.v1.AutomaticScalingOrBuilder> 4402 automaticScalingBuilder_; 4403 /** 4404 * 4405 * 4406 * <pre> 4407 * Automatic scaling is based on request rate, response latencies, and other 4408 * application metrics. Instances are dynamically created and destroyed as 4409 * needed in order to handle traffic. 4410 * </pre> 4411 * 4412 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4413 * 4414 * @return Whether the automaticScaling field is set. 4415 */ 4416 @java.lang.Override hasAutomaticScaling()4417 public boolean hasAutomaticScaling() { 4418 return scalingCase_ == 3; 4419 } 4420 /** 4421 * 4422 * 4423 * <pre> 4424 * Automatic scaling is based on request rate, response latencies, and other 4425 * application metrics. Instances are dynamically created and destroyed as 4426 * needed in order to handle traffic. 4427 * </pre> 4428 * 4429 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4430 * 4431 * @return The automaticScaling. 4432 */ 4433 @java.lang.Override getAutomaticScaling()4434 public com.google.appengine.v1.AutomaticScaling getAutomaticScaling() { 4435 if (automaticScalingBuilder_ == null) { 4436 if (scalingCase_ == 3) { 4437 return (com.google.appengine.v1.AutomaticScaling) scaling_; 4438 } 4439 return com.google.appengine.v1.AutomaticScaling.getDefaultInstance(); 4440 } else { 4441 if (scalingCase_ == 3) { 4442 return automaticScalingBuilder_.getMessage(); 4443 } 4444 return com.google.appengine.v1.AutomaticScaling.getDefaultInstance(); 4445 } 4446 } 4447 /** 4448 * 4449 * 4450 * <pre> 4451 * Automatic scaling is based on request rate, response latencies, and other 4452 * application metrics. Instances are dynamically created and destroyed as 4453 * needed in order to handle traffic. 4454 * </pre> 4455 * 4456 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4457 */ setAutomaticScaling(com.google.appengine.v1.AutomaticScaling value)4458 public Builder setAutomaticScaling(com.google.appengine.v1.AutomaticScaling value) { 4459 if (automaticScalingBuilder_ == null) { 4460 if (value == null) { 4461 throw new NullPointerException(); 4462 } 4463 scaling_ = value; 4464 onChanged(); 4465 } else { 4466 automaticScalingBuilder_.setMessage(value); 4467 } 4468 scalingCase_ = 3; 4469 return this; 4470 } 4471 /** 4472 * 4473 * 4474 * <pre> 4475 * Automatic scaling is based on request rate, response latencies, and other 4476 * application metrics. Instances are dynamically created and destroyed as 4477 * needed in order to handle traffic. 4478 * </pre> 4479 * 4480 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4481 */ setAutomaticScaling( com.google.appengine.v1.AutomaticScaling.Builder builderForValue)4482 public Builder setAutomaticScaling( 4483 com.google.appengine.v1.AutomaticScaling.Builder builderForValue) { 4484 if (automaticScalingBuilder_ == null) { 4485 scaling_ = builderForValue.build(); 4486 onChanged(); 4487 } else { 4488 automaticScalingBuilder_.setMessage(builderForValue.build()); 4489 } 4490 scalingCase_ = 3; 4491 return this; 4492 } 4493 /** 4494 * 4495 * 4496 * <pre> 4497 * Automatic scaling is based on request rate, response latencies, and other 4498 * application metrics. Instances are dynamically created and destroyed as 4499 * needed in order to handle traffic. 4500 * </pre> 4501 * 4502 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4503 */ mergeAutomaticScaling(com.google.appengine.v1.AutomaticScaling value)4504 public Builder mergeAutomaticScaling(com.google.appengine.v1.AutomaticScaling value) { 4505 if (automaticScalingBuilder_ == null) { 4506 if (scalingCase_ == 3 4507 && scaling_ != com.google.appengine.v1.AutomaticScaling.getDefaultInstance()) { 4508 scaling_ = 4509 com.google.appengine.v1.AutomaticScaling.newBuilder( 4510 (com.google.appengine.v1.AutomaticScaling) scaling_) 4511 .mergeFrom(value) 4512 .buildPartial(); 4513 } else { 4514 scaling_ = value; 4515 } 4516 onChanged(); 4517 } else { 4518 if (scalingCase_ == 3) { 4519 automaticScalingBuilder_.mergeFrom(value); 4520 } else { 4521 automaticScalingBuilder_.setMessage(value); 4522 } 4523 } 4524 scalingCase_ = 3; 4525 return this; 4526 } 4527 /** 4528 * 4529 * 4530 * <pre> 4531 * Automatic scaling is based on request rate, response latencies, and other 4532 * application metrics. Instances are dynamically created and destroyed as 4533 * needed in order to handle traffic. 4534 * </pre> 4535 * 4536 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4537 */ clearAutomaticScaling()4538 public Builder clearAutomaticScaling() { 4539 if (automaticScalingBuilder_ == null) { 4540 if (scalingCase_ == 3) { 4541 scalingCase_ = 0; 4542 scaling_ = null; 4543 onChanged(); 4544 } 4545 } else { 4546 if (scalingCase_ == 3) { 4547 scalingCase_ = 0; 4548 scaling_ = null; 4549 } 4550 automaticScalingBuilder_.clear(); 4551 } 4552 return this; 4553 } 4554 /** 4555 * 4556 * 4557 * <pre> 4558 * Automatic scaling is based on request rate, response latencies, and other 4559 * application metrics. Instances are dynamically created and destroyed as 4560 * needed in order to handle traffic. 4561 * </pre> 4562 * 4563 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4564 */ getAutomaticScalingBuilder()4565 public com.google.appengine.v1.AutomaticScaling.Builder getAutomaticScalingBuilder() { 4566 return getAutomaticScalingFieldBuilder().getBuilder(); 4567 } 4568 /** 4569 * 4570 * 4571 * <pre> 4572 * Automatic scaling is based on request rate, response latencies, and other 4573 * application metrics. Instances are dynamically created and destroyed as 4574 * needed in order to handle traffic. 4575 * </pre> 4576 * 4577 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4578 */ 4579 @java.lang.Override getAutomaticScalingOrBuilder()4580 public com.google.appengine.v1.AutomaticScalingOrBuilder getAutomaticScalingOrBuilder() { 4581 if ((scalingCase_ == 3) && (automaticScalingBuilder_ != null)) { 4582 return automaticScalingBuilder_.getMessageOrBuilder(); 4583 } else { 4584 if (scalingCase_ == 3) { 4585 return (com.google.appengine.v1.AutomaticScaling) scaling_; 4586 } 4587 return com.google.appengine.v1.AutomaticScaling.getDefaultInstance(); 4588 } 4589 } 4590 /** 4591 * 4592 * 4593 * <pre> 4594 * Automatic scaling is based on request rate, response latencies, and other 4595 * application metrics. Instances are dynamically created and destroyed as 4596 * needed in order to handle traffic. 4597 * </pre> 4598 * 4599 * <code>.google.appengine.v1.AutomaticScaling automatic_scaling = 3;</code> 4600 */ 4601 private com.google.protobuf.SingleFieldBuilderV3< 4602 com.google.appengine.v1.AutomaticScaling, 4603 com.google.appengine.v1.AutomaticScaling.Builder, 4604 com.google.appengine.v1.AutomaticScalingOrBuilder> getAutomaticScalingFieldBuilder()4605 getAutomaticScalingFieldBuilder() { 4606 if (automaticScalingBuilder_ == null) { 4607 if (!(scalingCase_ == 3)) { 4608 scaling_ = com.google.appengine.v1.AutomaticScaling.getDefaultInstance(); 4609 } 4610 automaticScalingBuilder_ = 4611 new com.google.protobuf.SingleFieldBuilderV3< 4612 com.google.appengine.v1.AutomaticScaling, 4613 com.google.appengine.v1.AutomaticScaling.Builder, 4614 com.google.appengine.v1.AutomaticScalingOrBuilder>( 4615 (com.google.appengine.v1.AutomaticScaling) scaling_, 4616 getParentForChildren(), 4617 isClean()); 4618 scaling_ = null; 4619 } 4620 scalingCase_ = 3; 4621 onChanged(); 4622 return automaticScalingBuilder_; 4623 } 4624 4625 private com.google.protobuf.SingleFieldBuilderV3< 4626 com.google.appengine.v1.BasicScaling, 4627 com.google.appengine.v1.BasicScaling.Builder, 4628 com.google.appengine.v1.BasicScalingOrBuilder> 4629 basicScalingBuilder_; 4630 /** 4631 * 4632 * 4633 * <pre> 4634 * A service with basic scaling will create an instance when the application 4635 * receives a request. The instance will be turned down when the app becomes 4636 * idle. Basic scaling is ideal for work that is intermittent or driven by 4637 * user activity. 4638 * </pre> 4639 * 4640 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4641 * 4642 * @return Whether the basicScaling field is set. 4643 */ 4644 @java.lang.Override hasBasicScaling()4645 public boolean hasBasicScaling() { 4646 return scalingCase_ == 4; 4647 } 4648 /** 4649 * 4650 * 4651 * <pre> 4652 * A service with basic scaling will create an instance when the application 4653 * receives a request. The instance will be turned down when the app becomes 4654 * idle. Basic scaling is ideal for work that is intermittent or driven by 4655 * user activity. 4656 * </pre> 4657 * 4658 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4659 * 4660 * @return The basicScaling. 4661 */ 4662 @java.lang.Override getBasicScaling()4663 public com.google.appengine.v1.BasicScaling getBasicScaling() { 4664 if (basicScalingBuilder_ == null) { 4665 if (scalingCase_ == 4) { 4666 return (com.google.appengine.v1.BasicScaling) scaling_; 4667 } 4668 return com.google.appengine.v1.BasicScaling.getDefaultInstance(); 4669 } else { 4670 if (scalingCase_ == 4) { 4671 return basicScalingBuilder_.getMessage(); 4672 } 4673 return com.google.appengine.v1.BasicScaling.getDefaultInstance(); 4674 } 4675 } 4676 /** 4677 * 4678 * 4679 * <pre> 4680 * A service with basic scaling will create an instance when the application 4681 * receives a request. The instance will be turned down when the app becomes 4682 * idle. Basic scaling is ideal for work that is intermittent or driven by 4683 * user activity. 4684 * </pre> 4685 * 4686 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4687 */ setBasicScaling(com.google.appengine.v1.BasicScaling value)4688 public Builder setBasicScaling(com.google.appengine.v1.BasicScaling value) { 4689 if (basicScalingBuilder_ == null) { 4690 if (value == null) { 4691 throw new NullPointerException(); 4692 } 4693 scaling_ = value; 4694 onChanged(); 4695 } else { 4696 basicScalingBuilder_.setMessage(value); 4697 } 4698 scalingCase_ = 4; 4699 return this; 4700 } 4701 /** 4702 * 4703 * 4704 * <pre> 4705 * A service with basic scaling will create an instance when the application 4706 * receives a request. The instance will be turned down when the app becomes 4707 * idle. Basic scaling is ideal for work that is intermittent or driven by 4708 * user activity. 4709 * </pre> 4710 * 4711 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4712 */ setBasicScaling(com.google.appengine.v1.BasicScaling.Builder builderForValue)4713 public Builder setBasicScaling(com.google.appengine.v1.BasicScaling.Builder builderForValue) { 4714 if (basicScalingBuilder_ == null) { 4715 scaling_ = builderForValue.build(); 4716 onChanged(); 4717 } else { 4718 basicScalingBuilder_.setMessage(builderForValue.build()); 4719 } 4720 scalingCase_ = 4; 4721 return this; 4722 } 4723 /** 4724 * 4725 * 4726 * <pre> 4727 * A service with basic scaling will create an instance when the application 4728 * receives a request. The instance will be turned down when the app becomes 4729 * idle. Basic scaling is ideal for work that is intermittent or driven by 4730 * user activity. 4731 * </pre> 4732 * 4733 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4734 */ mergeBasicScaling(com.google.appengine.v1.BasicScaling value)4735 public Builder mergeBasicScaling(com.google.appengine.v1.BasicScaling value) { 4736 if (basicScalingBuilder_ == null) { 4737 if (scalingCase_ == 4 4738 && scaling_ != com.google.appengine.v1.BasicScaling.getDefaultInstance()) { 4739 scaling_ = 4740 com.google.appengine.v1.BasicScaling.newBuilder( 4741 (com.google.appengine.v1.BasicScaling) scaling_) 4742 .mergeFrom(value) 4743 .buildPartial(); 4744 } else { 4745 scaling_ = value; 4746 } 4747 onChanged(); 4748 } else { 4749 if (scalingCase_ == 4) { 4750 basicScalingBuilder_.mergeFrom(value); 4751 } else { 4752 basicScalingBuilder_.setMessage(value); 4753 } 4754 } 4755 scalingCase_ = 4; 4756 return this; 4757 } 4758 /** 4759 * 4760 * 4761 * <pre> 4762 * A service with basic scaling will create an instance when the application 4763 * receives a request. The instance will be turned down when the app becomes 4764 * idle. Basic scaling is ideal for work that is intermittent or driven by 4765 * user activity. 4766 * </pre> 4767 * 4768 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4769 */ clearBasicScaling()4770 public Builder clearBasicScaling() { 4771 if (basicScalingBuilder_ == null) { 4772 if (scalingCase_ == 4) { 4773 scalingCase_ = 0; 4774 scaling_ = null; 4775 onChanged(); 4776 } 4777 } else { 4778 if (scalingCase_ == 4) { 4779 scalingCase_ = 0; 4780 scaling_ = null; 4781 } 4782 basicScalingBuilder_.clear(); 4783 } 4784 return this; 4785 } 4786 /** 4787 * 4788 * 4789 * <pre> 4790 * A service with basic scaling will create an instance when the application 4791 * receives a request. The instance will be turned down when the app becomes 4792 * idle. Basic scaling is ideal for work that is intermittent or driven by 4793 * user activity. 4794 * </pre> 4795 * 4796 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4797 */ getBasicScalingBuilder()4798 public com.google.appengine.v1.BasicScaling.Builder getBasicScalingBuilder() { 4799 return getBasicScalingFieldBuilder().getBuilder(); 4800 } 4801 /** 4802 * 4803 * 4804 * <pre> 4805 * A service with basic scaling will create an instance when the application 4806 * receives a request. The instance will be turned down when the app becomes 4807 * idle. Basic scaling is ideal for work that is intermittent or driven by 4808 * user activity. 4809 * </pre> 4810 * 4811 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4812 */ 4813 @java.lang.Override getBasicScalingOrBuilder()4814 public com.google.appengine.v1.BasicScalingOrBuilder getBasicScalingOrBuilder() { 4815 if ((scalingCase_ == 4) && (basicScalingBuilder_ != null)) { 4816 return basicScalingBuilder_.getMessageOrBuilder(); 4817 } else { 4818 if (scalingCase_ == 4) { 4819 return (com.google.appengine.v1.BasicScaling) scaling_; 4820 } 4821 return com.google.appengine.v1.BasicScaling.getDefaultInstance(); 4822 } 4823 } 4824 /** 4825 * 4826 * 4827 * <pre> 4828 * A service with basic scaling will create an instance when the application 4829 * receives a request. The instance will be turned down when the app becomes 4830 * idle. Basic scaling is ideal for work that is intermittent or driven by 4831 * user activity. 4832 * </pre> 4833 * 4834 * <code>.google.appengine.v1.BasicScaling basic_scaling = 4;</code> 4835 */ 4836 private com.google.protobuf.SingleFieldBuilderV3< 4837 com.google.appengine.v1.BasicScaling, 4838 com.google.appengine.v1.BasicScaling.Builder, 4839 com.google.appengine.v1.BasicScalingOrBuilder> getBasicScalingFieldBuilder()4840 getBasicScalingFieldBuilder() { 4841 if (basicScalingBuilder_ == null) { 4842 if (!(scalingCase_ == 4)) { 4843 scaling_ = com.google.appengine.v1.BasicScaling.getDefaultInstance(); 4844 } 4845 basicScalingBuilder_ = 4846 new com.google.protobuf.SingleFieldBuilderV3< 4847 com.google.appengine.v1.BasicScaling, 4848 com.google.appengine.v1.BasicScaling.Builder, 4849 com.google.appengine.v1.BasicScalingOrBuilder>( 4850 (com.google.appengine.v1.BasicScaling) scaling_, getParentForChildren(), isClean()); 4851 scaling_ = null; 4852 } 4853 scalingCase_ = 4; 4854 onChanged(); 4855 return basicScalingBuilder_; 4856 } 4857 4858 private com.google.protobuf.SingleFieldBuilderV3< 4859 com.google.appengine.v1.ManualScaling, 4860 com.google.appengine.v1.ManualScaling.Builder, 4861 com.google.appengine.v1.ManualScalingOrBuilder> 4862 manualScalingBuilder_; 4863 /** 4864 * 4865 * 4866 * <pre> 4867 * A service with manual scaling runs continuously, allowing you to perform 4868 * complex initialization and rely on the state of its memory over time. 4869 * Manually scaled versions are sometimes referred to as "backends". 4870 * </pre> 4871 * 4872 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 4873 * 4874 * @return Whether the manualScaling field is set. 4875 */ 4876 @java.lang.Override hasManualScaling()4877 public boolean hasManualScaling() { 4878 return scalingCase_ == 5; 4879 } 4880 /** 4881 * 4882 * 4883 * <pre> 4884 * A service with manual scaling runs continuously, allowing you to perform 4885 * complex initialization and rely on the state of its memory over time. 4886 * Manually scaled versions are sometimes referred to as "backends". 4887 * </pre> 4888 * 4889 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 4890 * 4891 * @return The manualScaling. 4892 */ 4893 @java.lang.Override getManualScaling()4894 public com.google.appengine.v1.ManualScaling getManualScaling() { 4895 if (manualScalingBuilder_ == null) { 4896 if (scalingCase_ == 5) { 4897 return (com.google.appengine.v1.ManualScaling) scaling_; 4898 } 4899 return com.google.appengine.v1.ManualScaling.getDefaultInstance(); 4900 } else { 4901 if (scalingCase_ == 5) { 4902 return manualScalingBuilder_.getMessage(); 4903 } 4904 return com.google.appengine.v1.ManualScaling.getDefaultInstance(); 4905 } 4906 } 4907 /** 4908 * 4909 * 4910 * <pre> 4911 * A service with manual scaling runs continuously, allowing you to perform 4912 * complex initialization and rely on the state of its memory over time. 4913 * Manually scaled versions are sometimes referred to as "backends". 4914 * </pre> 4915 * 4916 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 4917 */ setManualScaling(com.google.appengine.v1.ManualScaling value)4918 public Builder setManualScaling(com.google.appengine.v1.ManualScaling value) { 4919 if (manualScalingBuilder_ == null) { 4920 if (value == null) { 4921 throw new NullPointerException(); 4922 } 4923 scaling_ = value; 4924 onChanged(); 4925 } else { 4926 manualScalingBuilder_.setMessage(value); 4927 } 4928 scalingCase_ = 5; 4929 return this; 4930 } 4931 /** 4932 * 4933 * 4934 * <pre> 4935 * A service with manual scaling runs continuously, allowing you to perform 4936 * complex initialization and rely on the state of its memory over time. 4937 * Manually scaled versions are sometimes referred to as "backends". 4938 * </pre> 4939 * 4940 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 4941 */ setManualScaling(com.google.appengine.v1.ManualScaling.Builder builderForValue)4942 public Builder setManualScaling(com.google.appengine.v1.ManualScaling.Builder builderForValue) { 4943 if (manualScalingBuilder_ == null) { 4944 scaling_ = builderForValue.build(); 4945 onChanged(); 4946 } else { 4947 manualScalingBuilder_.setMessage(builderForValue.build()); 4948 } 4949 scalingCase_ = 5; 4950 return this; 4951 } 4952 /** 4953 * 4954 * 4955 * <pre> 4956 * A service with manual scaling runs continuously, allowing you to perform 4957 * complex initialization and rely on the state of its memory over time. 4958 * Manually scaled versions are sometimes referred to as "backends". 4959 * </pre> 4960 * 4961 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 4962 */ mergeManualScaling(com.google.appengine.v1.ManualScaling value)4963 public Builder mergeManualScaling(com.google.appengine.v1.ManualScaling value) { 4964 if (manualScalingBuilder_ == null) { 4965 if (scalingCase_ == 5 4966 && scaling_ != com.google.appengine.v1.ManualScaling.getDefaultInstance()) { 4967 scaling_ = 4968 com.google.appengine.v1.ManualScaling.newBuilder( 4969 (com.google.appengine.v1.ManualScaling) scaling_) 4970 .mergeFrom(value) 4971 .buildPartial(); 4972 } else { 4973 scaling_ = value; 4974 } 4975 onChanged(); 4976 } else { 4977 if (scalingCase_ == 5) { 4978 manualScalingBuilder_.mergeFrom(value); 4979 } else { 4980 manualScalingBuilder_.setMessage(value); 4981 } 4982 } 4983 scalingCase_ = 5; 4984 return this; 4985 } 4986 /** 4987 * 4988 * 4989 * <pre> 4990 * A service with manual scaling runs continuously, allowing you to perform 4991 * complex initialization and rely on the state of its memory over time. 4992 * Manually scaled versions are sometimes referred to as "backends". 4993 * </pre> 4994 * 4995 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 4996 */ clearManualScaling()4997 public Builder clearManualScaling() { 4998 if (manualScalingBuilder_ == null) { 4999 if (scalingCase_ == 5) { 5000 scalingCase_ = 0; 5001 scaling_ = null; 5002 onChanged(); 5003 } 5004 } else { 5005 if (scalingCase_ == 5) { 5006 scalingCase_ = 0; 5007 scaling_ = null; 5008 } 5009 manualScalingBuilder_.clear(); 5010 } 5011 return this; 5012 } 5013 /** 5014 * 5015 * 5016 * <pre> 5017 * A service with manual scaling runs continuously, allowing you to perform 5018 * complex initialization and rely on the state of its memory over time. 5019 * Manually scaled versions are sometimes referred to as "backends". 5020 * </pre> 5021 * 5022 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 5023 */ getManualScalingBuilder()5024 public com.google.appengine.v1.ManualScaling.Builder getManualScalingBuilder() { 5025 return getManualScalingFieldBuilder().getBuilder(); 5026 } 5027 /** 5028 * 5029 * 5030 * <pre> 5031 * A service with manual scaling runs continuously, allowing you to perform 5032 * complex initialization and rely on the state of its memory over time. 5033 * Manually scaled versions are sometimes referred to as "backends". 5034 * </pre> 5035 * 5036 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 5037 */ 5038 @java.lang.Override getManualScalingOrBuilder()5039 public com.google.appengine.v1.ManualScalingOrBuilder getManualScalingOrBuilder() { 5040 if ((scalingCase_ == 5) && (manualScalingBuilder_ != null)) { 5041 return manualScalingBuilder_.getMessageOrBuilder(); 5042 } else { 5043 if (scalingCase_ == 5) { 5044 return (com.google.appengine.v1.ManualScaling) scaling_; 5045 } 5046 return com.google.appengine.v1.ManualScaling.getDefaultInstance(); 5047 } 5048 } 5049 /** 5050 * 5051 * 5052 * <pre> 5053 * A service with manual scaling runs continuously, allowing you to perform 5054 * complex initialization and rely on the state of its memory over time. 5055 * Manually scaled versions are sometimes referred to as "backends". 5056 * </pre> 5057 * 5058 * <code>.google.appengine.v1.ManualScaling manual_scaling = 5;</code> 5059 */ 5060 private com.google.protobuf.SingleFieldBuilderV3< 5061 com.google.appengine.v1.ManualScaling, 5062 com.google.appengine.v1.ManualScaling.Builder, 5063 com.google.appengine.v1.ManualScalingOrBuilder> getManualScalingFieldBuilder()5064 getManualScalingFieldBuilder() { 5065 if (manualScalingBuilder_ == null) { 5066 if (!(scalingCase_ == 5)) { 5067 scaling_ = com.google.appengine.v1.ManualScaling.getDefaultInstance(); 5068 } 5069 manualScalingBuilder_ = 5070 new com.google.protobuf.SingleFieldBuilderV3< 5071 com.google.appengine.v1.ManualScaling, 5072 com.google.appengine.v1.ManualScaling.Builder, 5073 com.google.appengine.v1.ManualScalingOrBuilder>( 5074 (com.google.appengine.v1.ManualScaling) scaling_, 5075 getParentForChildren(), 5076 isClean()); 5077 scaling_ = null; 5078 } 5079 scalingCase_ = 5; 5080 onChanged(); 5081 return manualScalingBuilder_; 5082 } 5083 5084 private java.util.List<java.lang.Integer> inboundServices_ = java.util.Collections.emptyList(); 5085 ensureInboundServicesIsMutable()5086 private void ensureInboundServicesIsMutable() { 5087 if (!((bitField0_ & 0x00000020) != 0)) { 5088 inboundServices_ = new java.util.ArrayList<java.lang.Integer>(inboundServices_); 5089 bitField0_ |= 0x00000020; 5090 } 5091 } 5092 /** 5093 * 5094 * 5095 * <pre> 5096 * Before an application can receive email or XMPP messages, the application 5097 * must be configured to enable the service. 5098 * </pre> 5099 * 5100 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5101 * 5102 * @return A list containing the inboundServices. 5103 */ getInboundServicesList()5104 public java.util.List<com.google.appengine.v1.InboundServiceType> getInboundServicesList() { 5105 return new com.google.protobuf.Internal.ListAdapter< 5106 java.lang.Integer, com.google.appengine.v1.InboundServiceType>( 5107 inboundServices_, inboundServices_converter_); 5108 } 5109 /** 5110 * 5111 * 5112 * <pre> 5113 * Before an application can receive email or XMPP messages, the application 5114 * must be configured to enable the service. 5115 * </pre> 5116 * 5117 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5118 * 5119 * @return The count of inboundServices. 5120 */ getInboundServicesCount()5121 public int getInboundServicesCount() { 5122 return inboundServices_.size(); 5123 } 5124 /** 5125 * 5126 * 5127 * <pre> 5128 * Before an application can receive email or XMPP messages, the application 5129 * must be configured to enable the service. 5130 * </pre> 5131 * 5132 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5133 * 5134 * @param index The index of the element to return. 5135 * @return The inboundServices at the given index. 5136 */ getInboundServices(int index)5137 public com.google.appengine.v1.InboundServiceType getInboundServices(int index) { 5138 return inboundServices_converter_.convert(inboundServices_.get(index)); 5139 } 5140 /** 5141 * 5142 * 5143 * <pre> 5144 * Before an application can receive email or XMPP messages, the application 5145 * must be configured to enable the service. 5146 * </pre> 5147 * 5148 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5149 * 5150 * @param index The index to set the value at. 5151 * @param value The inboundServices to set. 5152 * @return This builder for chaining. 5153 */ setInboundServices(int index, com.google.appengine.v1.InboundServiceType value)5154 public Builder setInboundServices(int index, com.google.appengine.v1.InboundServiceType value) { 5155 if (value == null) { 5156 throw new NullPointerException(); 5157 } 5158 ensureInboundServicesIsMutable(); 5159 inboundServices_.set(index, value.getNumber()); 5160 onChanged(); 5161 return this; 5162 } 5163 /** 5164 * 5165 * 5166 * <pre> 5167 * Before an application can receive email or XMPP messages, the application 5168 * must be configured to enable the service. 5169 * </pre> 5170 * 5171 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5172 * 5173 * @param value The inboundServices to add. 5174 * @return This builder for chaining. 5175 */ addInboundServices(com.google.appengine.v1.InboundServiceType value)5176 public Builder addInboundServices(com.google.appengine.v1.InboundServiceType value) { 5177 if (value == null) { 5178 throw new NullPointerException(); 5179 } 5180 ensureInboundServicesIsMutable(); 5181 inboundServices_.add(value.getNumber()); 5182 onChanged(); 5183 return this; 5184 } 5185 /** 5186 * 5187 * 5188 * <pre> 5189 * Before an application can receive email or XMPP messages, the application 5190 * must be configured to enable the service. 5191 * </pre> 5192 * 5193 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5194 * 5195 * @param values The inboundServices to add. 5196 * @return This builder for chaining. 5197 */ addAllInboundServices( java.lang.Iterable<? extends com.google.appengine.v1.InboundServiceType> values)5198 public Builder addAllInboundServices( 5199 java.lang.Iterable<? extends com.google.appengine.v1.InboundServiceType> values) { 5200 ensureInboundServicesIsMutable(); 5201 for (com.google.appengine.v1.InboundServiceType value : values) { 5202 inboundServices_.add(value.getNumber()); 5203 } 5204 onChanged(); 5205 return this; 5206 } 5207 /** 5208 * 5209 * 5210 * <pre> 5211 * Before an application can receive email or XMPP messages, the application 5212 * must be configured to enable the service. 5213 * </pre> 5214 * 5215 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5216 * 5217 * @return This builder for chaining. 5218 */ clearInboundServices()5219 public Builder clearInboundServices() { 5220 inboundServices_ = java.util.Collections.emptyList(); 5221 bitField0_ = (bitField0_ & ~0x00000020); 5222 onChanged(); 5223 return this; 5224 } 5225 /** 5226 * 5227 * 5228 * <pre> 5229 * Before an application can receive email or XMPP messages, the application 5230 * must be configured to enable the service. 5231 * </pre> 5232 * 5233 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5234 * 5235 * @return A list containing the enum numeric values on the wire for inboundServices. 5236 */ getInboundServicesValueList()5237 public java.util.List<java.lang.Integer> getInboundServicesValueList() { 5238 return java.util.Collections.unmodifiableList(inboundServices_); 5239 } 5240 /** 5241 * 5242 * 5243 * <pre> 5244 * Before an application can receive email or XMPP messages, the application 5245 * must be configured to enable the service. 5246 * </pre> 5247 * 5248 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5249 * 5250 * @param index The index of the value to return. 5251 * @return The enum numeric value on the wire of inboundServices at the given index. 5252 */ getInboundServicesValue(int index)5253 public int getInboundServicesValue(int index) { 5254 return inboundServices_.get(index); 5255 } 5256 /** 5257 * 5258 * 5259 * <pre> 5260 * Before an application can receive email or XMPP messages, the application 5261 * must be configured to enable the service. 5262 * </pre> 5263 * 5264 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5265 * 5266 * @param index The index to set the value at. 5267 * @param value The enum numeric value on the wire for inboundServices to set. 5268 * @return This builder for chaining. 5269 */ setInboundServicesValue(int index, int value)5270 public Builder setInboundServicesValue(int index, int value) { 5271 ensureInboundServicesIsMutable(); 5272 inboundServices_.set(index, value); 5273 onChanged(); 5274 return this; 5275 } 5276 /** 5277 * 5278 * 5279 * <pre> 5280 * Before an application can receive email or XMPP messages, the application 5281 * must be configured to enable the service. 5282 * </pre> 5283 * 5284 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5285 * 5286 * @param value The enum numeric value on the wire for inboundServices to add. 5287 * @return This builder for chaining. 5288 */ addInboundServicesValue(int value)5289 public Builder addInboundServicesValue(int value) { 5290 ensureInboundServicesIsMutable(); 5291 inboundServices_.add(value); 5292 onChanged(); 5293 return this; 5294 } 5295 /** 5296 * 5297 * 5298 * <pre> 5299 * Before an application can receive email or XMPP messages, the application 5300 * must be configured to enable the service. 5301 * </pre> 5302 * 5303 * <code>repeated .google.appengine.v1.InboundServiceType inbound_services = 6;</code> 5304 * 5305 * @param values The enum numeric values on the wire for inboundServices to add. 5306 * @return This builder for chaining. 5307 */ addAllInboundServicesValue(java.lang.Iterable<java.lang.Integer> values)5308 public Builder addAllInboundServicesValue(java.lang.Iterable<java.lang.Integer> values) { 5309 ensureInboundServicesIsMutable(); 5310 for (int value : values) { 5311 inboundServices_.add(value); 5312 } 5313 onChanged(); 5314 return this; 5315 } 5316 5317 private java.lang.Object instanceClass_ = ""; 5318 /** 5319 * 5320 * 5321 * <pre> 5322 * Instance class that is used to run this version. Valid values are: 5323 * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` 5324 * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` 5325 * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or 5326 * BasicScaling. 5327 * </pre> 5328 * 5329 * <code>string instance_class = 7;</code> 5330 * 5331 * @return The instanceClass. 5332 */ getInstanceClass()5333 public java.lang.String getInstanceClass() { 5334 java.lang.Object ref = instanceClass_; 5335 if (!(ref instanceof java.lang.String)) { 5336 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5337 java.lang.String s = bs.toStringUtf8(); 5338 instanceClass_ = s; 5339 return s; 5340 } else { 5341 return (java.lang.String) ref; 5342 } 5343 } 5344 /** 5345 * 5346 * 5347 * <pre> 5348 * Instance class that is used to run this version. Valid values are: 5349 * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` 5350 * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` 5351 * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or 5352 * BasicScaling. 5353 * </pre> 5354 * 5355 * <code>string instance_class = 7;</code> 5356 * 5357 * @return The bytes for instanceClass. 5358 */ getInstanceClassBytes()5359 public com.google.protobuf.ByteString getInstanceClassBytes() { 5360 java.lang.Object ref = instanceClass_; 5361 if (ref instanceof String) { 5362 com.google.protobuf.ByteString b = 5363 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5364 instanceClass_ = b; 5365 return b; 5366 } else { 5367 return (com.google.protobuf.ByteString) ref; 5368 } 5369 } 5370 /** 5371 * 5372 * 5373 * <pre> 5374 * Instance class that is used to run this version. Valid values are: 5375 * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` 5376 * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` 5377 * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or 5378 * BasicScaling. 5379 * </pre> 5380 * 5381 * <code>string instance_class = 7;</code> 5382 * 5383 * @param value The instanceClass to set. 5384 * @return This builder for chaining. 5385 */ setInstanceClass(java.lang.String value)5386 public Builder setInstanceClass(java.lang.String value) { 5387 if (value == null) { 5388 throw new NullPointerException(); 5389 } 5390 instanceClass_ = value; 5391 bitField0_ |= 0x00000040; 5392 onChanged(); 5393 return this; 5394 } 5395 /** 5396 * 5397 * 5398 * <pre> 5399 * Instance class that is used to run this version. Valid values are: 5400 * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` 5401 * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` 5402 * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or 5403 * BasicScaling. 5404 * </pre> 5405 * 5406 * <code>string instance_class = 7;</code> 5407 * 5408 * @return This builder for chaining. 5409 */ clearInstanceClass()5410 public Builder clearInstanceClass() { 5411 instanceClass_ = getDefaultInstance().getInstanceClass(); 5412 bitField0_ = (bitField0_ & ~0x00000040); 5413 onChanged(); 5414 return this; 5415 } 5416 /** 5417 * 5418 * 5419 * <pre> 5420 * Instance class that is used to run this version. Valid values are: 5421 * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` 5422 * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` 5423 * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or 5424 * BasicScaling. 5425 * </pre> 5426 * 5427 * <code>string instance_class = 7;</code> 5428 * 5429 * @param value The bytes for instanceClass to set. 5430 * @return This builder for chaining. 5431 */ setInstanceClassBytes(com.google.protobuf.ByteString value)5432 public Builder setInstanceClassBytes(com.google.protobuf.ByteString value) { 5433 if (value == null) { 5434 throw new NullPointerException(); 5435 } 5436 checkByteStringIsUtf8(value); 5437 instanceClass_ = value; 5438 bitField0_ |= 0x00000040; 5439 onChanged(); 5440 return this; 5441 } 5442 5443 private com.google.appengine.v1.Network network_; 5444 private com.google.protobuf.SingleFieldBuilderV3< 5445 com.google.appengine.v1.Network, 5446 com.google.appengine.v1.Network.Builder, 5447 com.google.appengine.v1.NetworkOrBuilder> 5448 networkBuilder_; 5449 /** 5450 * 5451 * 5452 * <pre> 5453 * Extra network settings. 5454 * Only applicable in the App Engine flexible environment. 5455 * </pre> 5456 * 5457 * <code>.google.appengine.v1.Network network = 8;</code> 5458 * 5459 * @return Whether the network field is set. 5460 */ hasNetwork()5461 public boolean hasNetwork() { 5462 return ((bitField0_ & 0x00000080) != 0); 5463 } 5464 /** 5465 * 5466 * 5467 * <pre> 5468 * Extra network settings. 5469 * Only applicable in the App Engine flexible environment. 5470 * </pre> 5471 * 5472 * <code>.google.appengine.v1.Network network = 8;</code> 5473 * 5474 * @return The network. 5475 */ getNetwork()5476 public com.google.appengine.v1.Network getNetwork() { 5477 if (networkBuilder_ == null) { 5478 return network_ == null ? com.google.appengine.v1.Network.getDefaultInstance() : network_; 5479 } else { 5480 return networkBuilder_.getMessage(); 5481 } 5482 } 5483 /** 5484 * 5485 * 5486 * <pre> 5487 * Extra network settings. 5488 * Only applicable in the App Engine flexible environment. 5489 * </pre> 5490 * 5491 * <code>.google.appengine.v1.Network network = 8;</code> 5492 */ setNetwork(com.google.appengine.v1.Network value)5493 public Builder setNetwork(com.google.appengine.v1.Network value) { 5494 if (networkBuilder_ == null) { 5495 if (value == null) { 5496 throw new NullPointerException(); 5497 } 5498 network_ = value; 5499 } else { 5500 networkBuilder_.setMessage(value); 5501 } 5502 bitField0_ |= 0x00000080; 5503 onChanged(); 5504 return this; 5505 } 5506 /** 5507 * 5508 * 5509 * <pre> 5510 * Extra network settings. 5511 * Only applicable in the App Engine flexible environment. 5512 * </pre> 5513 * 5514 * <code>.google.appengine.v1.Network network = 8;</code> 5515 */ setNetwork(com.google.appengine.v1.Network.Builder builderForValue)5516 public Builder setNetwork(com.google.appengine.v1.Network.Builder builderForValue) { 5517 if (networkBuilder_ == null) { 5518 network_ = builderForValue.build(); 5519 } else { 5520 networkBuilder_.setMessage(builderForValue.build()); 5521 } 5522 bitField0_ |= 0x00000080; 5523 onChanged(); 5524 return this; 5525 } 5526 /** 5527 * 5528 * 5529 * <pre> 5530 * Extra network settings. 5531 * Only applicable in the App Engine flexible environment. 5532 * </pre> 5533 * 5534 * <code>.google.appengine.v1.Network network = 8;</code> 5535 */ mergeNetwork(com.google.appengine.v1.Network value)5536 public Builder mergeNetwork(com.google.appengine.v1.Network value) { 5537 if (networkBuilder_ == null) { 5538 if (((bitField0_ & 0x00000080) != 0) 5539 && network_ != null 5540 && network_ != com.google.appengine.v1.Network.getDefaultInstance()) { 5541 getNetworkBuilder().mergeFrom(value); 5542 } else { 5543 network_ = value; 5544 } 5545 } else { 5546 networkBuilder_.mergeFrom(value); 5547 } 5548 bitField0_ |= 0x00000080; 5549 onChanged(); 5550 return this; 5551 } 5552 /** 5553 * 5554 * 5555 * <pre> 5556 * Extra network settings. 5557 * Only applicable in the App Engine flexible environment. 5558 * </pre> 5559 * 5560 * <code>.google.appengine.v1.Network network = 8;</code> 5561 */ clearNetwork()5562 public Builder clearNetwork() { 5563 bitField0_ = (bitField0_ & ~0x00000080); 5564 network_ = null; 5565 if (networkBuilder_ != null) { 5566 networkBuilder_.dispose(); 5567 networkBuilder_ = null; 5568 } 5569 onChanged(); 5570 return this; 5571 } 5572 /** 5573 * 5574 * 5575 * <pre> 5576 * Extra network settings. 5577 * Only applicable in the App Engine flexible environment. 5578 * </pre> 5579 * 5580 * <code>.google.appengine.v1.Network network = 8;</code> 5581 */ getNetworkBuilder()5582 public com.google.appengine.v1.Network.Builder getNetworkBuilder() { 5583 bitField0_ |= 0x00000080; 5584 onChanged(); 5585 return getNetworkFieldBuilder().getBuilder(); 5586 } 5587 /** 5588 * 5589 * 5590 * <pre> 5591 * Extra network settings. 5592 * Only applicable in the App Engine flexible environment. 5593 * </pre> 5594 * 5595 * <code>.google.appengine.v1.Network network = 8;</code> 5596 */ getNetworkOrBuilder()5597 public com.google.appengine.v1.NetworkOrBuilder getNetworkOrBuilder() { 5598 if (networkBuilder_ != null) { 5599 return networkBuilder_.getMessageOrBuilder(); 5600 } else { 5601 return network_ == null ? com.google.appengine.v1.Network.getDefaultInstance() : network_; 5602 } 5603 } 5604 /** 5605 * 5606 * 5607 * <pre> 5608 * Extra network settings. 5609 * Only applicable in the App Engine flexible environment. 5610 * </pre> 5611 * 5612 * <code>.google.appengine.v1.Network network = 8;</code> 5613 */ 5614 private com.google.protobuf.SingleFieldBuilderV3< 5615 com.google.appengine.v1.Network, 5616 com.google.appengine.v1.Network.Builder, 5617 com.google.appengine.v1.NetworkOrBuilder> getNetworkFieldBuilder()5618 getNetworkFieldBuilder() { 5619 if (networkBuilder_ == null) { 5620 networkBuilder_ = 5621 new com.google.protobuf.SingleFieldBuilderV3< 5622 com.google.appengine.v1.Network, 5623 com.google.appengine.v1.Network.Builder, 5624 com.google.appengine.v1.NetworkOrBuilder>( 5625 getNetwork(), getParentForChildren(), isClean()); 5626 network_ = null; 5627 } 5628 return networkBuilder_; 5629 } 5630 5631 private com.google.protobuf.LazyStringList zones_ = 5632 com.google.protobuf.LazyStringArrayList.EMPTY; 5633 ensureZonesIsMutable()5634 private void ensureZonesIsMutable() { 5635 if (!((bitField0_ & 0x00000100) != 0)) { 5636 zones_ = new com.google.protobuf.LazyStringArrayList(zones_); 5637 bitField0_ |= 0x00000100; 5638 } 5639 } 5640 /** 5641 * 5642 * 5643 * <pre> 5644 * The Google Compute Engine zones that are supported by this version in the 5645 * App Engine flexible environment. Deprecated. 5646 * </pre> 5647 * 5648 * <code>repeated string zones = 118;</code> 5649 * 5650 * @return A list containing the zones. 5651 */ getZonesList()5652 public com.google.protobuf.ProtocolStringList getZonesList() { 5653 return zones_.getUnmodifiableView(); 5654 } 5655 /** 5656 * 5657 * 5658 * <pre> 5659 * The Google Compute Engine zones that are supported by this version in the 5660 * App Engine flexible environment. Deprecated. 5661 * </pre> 5662 * 5663 * <code>repeated string zones = 118;</code> 5664 * 5665 * @return The count of zones. 5666 */ getZonesCount()5667 public int getZonesCount() { 5668 return zones_.size(); 5669 } 5670 /** 5671 * 5672 * 5673 * <pre> 5674 * The Google Compute Engine zones that are supported by this version in the 5675 * App Engine flexible environment. Deprecated. 5676 * </pre> 5677 * 5678 * <code>repeated string zones = 118;</code> 5679 * 5680 * @param index The index of the element to return. 5681 * @return The zones at the given index. 5682 */ getZones(int index)5683 public java.lang.String getZones(int index) { 5684 return zones_.get(index); 5685 } 5686 /** 5687 * 5688 * 5689 * <pre> 5690 * The Google Compute Engine zones that are supported by this version in the 5691 * App Engine flexible environment. Deprecated. 5692 * </pre> 5693 * 5694 * <code>repeated string zones = 118;</code> 5695 * 5696 * @param index The index of the value to return. 5697 * @return The bytes of the zones at the given index. 5698 */ getZonesBytes(int index)5699 public com.google.protobuf.ByteString getZonesBytes(int index) { 5700 return zones_.getByteString(index); 5701 } 5702 /** 5703 * 5704 * 5705 * <pre> 5706 * The Google Compute Engine zones that are supported by this version in the 5707 * App Engine flexible environment. Deprecated. 5708 * </pre> 5709 * 5710 * <code>repeated string zones = 118;</code> 5711 * 5712 * @param index The index to set the value at. 5713 * @param value The zones to set. 5714 * @return This builder for chaining. 5715 */ setZones(int index, java.lang.String value)5716 public Builder setZones(int index, java.lang.String value) { 5717 if (value == null) { 5718 throw new NullPointerException(); 5719 } 5720 ensureZonesIsMutable(); 5721 zones_.set(index, value); 5722 onChanged(); 5723 return this; 5724 } 5725 /** 5726 * 5727 * 5728 * <pre> 5729 * The Google Compute Engine zones that are supported by this version in the 5730 * App Engine flexible environment. Deprecated. 5731 * </pre> 5732 * 5733 * <code>repeated string zones = 118;</code> 5734 * 5735 * @param value The zones to add. 5736 * @return This builder for chaining. 5737 */ addZones(java.lang.String value)5738 public Builder addZones(java.lang.String value) { 5739 if (value == null) { 5740 throw new NullPointerException(); 5741 } 5742 ensureZonesIsMutable(); 5743 zones_.add(value); 5744 onChanged(); 5745 return this; 5746 } 5747 /** 5748 * 5749 * 5750 * <pre> 5751 * The Google Compute Engine zones that are supported by this version in the 5752 * App Engine flexible environment. Deprecated. 5753 * </pre> 5754 * 5755 * <code>repeated string zones = 118;</code> 5756 * 5757 * @param values The zones to add. 5758 * @return This builder for chaining. 5759 */ addAllZones(java.lang.Iterable<java.lang.String> values)5760 public Builder addAllZones(java.lang.Iterable<java.lang.String> values) { 5761 ensureZonesIsMutable(); 5762 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, zones_); 5763 onChanged(); 5764 return this; 5765 } 5766 /** 5767 * 5768 * 5769 * <pre> 5770 * The Google Compute Engine zones that are supported by this version in the 5771 * App Engine flexible environment. Deprecated. 5772 * </pre> 5773 * 5774 * <code>repeated string zones = 118;</code> 5775 * 5776 * @return This builder for chaining. 5777 */ clearZones()5778 public Builder clearZones() { 5779 zones_ = com.google.protobuf.LazyStringArrayList.EMPTY; 5780 bitField0_ = (bitField0_ & ~0x00000100); 5781 onChanged(); 5782 return this; 5783 } 5784 /** 5785 * 5786 * 5787 * <pre> 5788 * The Google Compute Engine zones that are supported by this version in the 5789 * App Engine flexible environment. Deprecated. 5790 * </pre> 5791 * 5792 * <code>repeated string zones = 118;</code> 5793 * 5794 * @param value The bytes of the zones to add. 5795 * @return This builder for chaining. 5796 */ addZonesBytes(com.google.protobuf.ByteString value)5797 public Builder addZonesBytes(com.google.protobuf.ByteString value) { 5798 if (value == null) { 5799 throw new NullPointerException(); 5800 } 5801 checkByteStringIsUtf8(value); 5802 ensureZonesIsMutable(); 5803 zones_.add(value); 5804 onChanged(); 5805 return this; 5806 } 5807 5808 private com.google.appengine.v1.Resources resources_; 5809 private com.google.protobuf.SingleFieldBuilderV3< 5810 com.google.appengine.v1.Resources, 5811 com.google.appengine.v1.Resources.Builder, 5812 com.google.appengine.v1.ResourcesOrBuilder> 5813 resourcesBuilder_; 5814 /** 5815 * 5816 * 5817 * <pre> 5818 * Machine resources for this version. 5819 * Only applicable in the App Engine flexible environment. 5820 * </pre> 5821 * 5822 * <code>.google.appengine.v1.Resources resources = 9;</code> 5823 * 5824 * @return Whether the resources field is set. 5825 */ hasResources()5826 public boolean hasResources() { 5827 return ((bitField0_ & 0x00000200) != 0); 5828 } 5829 /** 5830 * 5831 * 5832 * <pre> 5833 * Machine resources for this version. 5834 * Only applicable in the App Engine flexible environment. 5835 * </pre> 5836 * 5837 * <code>.google.appengine.v1.Resources resources = 9;</code> 5838 * 5839 * @return The resources. 5840 */ getResources()5841 public com.google.appengine.v1.Resources getResources() { 5842 if (resourcesBuilder_ == null) { 5843 return resources_ == null 5844 ? com.google.appengine.v1.Resources.getDefaultInstance() 5845 : resources_; 5846 } else { 5847 return resourcesBuilder_.getMessage(); 5848 } 5849 } 5850 /** 5851 * 5852 * 5853 * <pre> 5854 * Machine resources for this version. 5855 * Only applicable in the App Engine flexible environment. 5856 * </pre> 5857 * 5858 * <code>.google.appengine.v1.Resources resources = 9;</code> 5859 */ setResources(com.google.appengine.v1.Resources value)5860 public Builder setResources(com.google.appengine.v1.Resources value) { 5861 if (resourcesBuilder_ == null) { 5862 if (value == null) { 5863 throw new NullPointerException(); 5864 } 5865 resources_ = value; 5866 } else { 5867 resourcesBuilder_.setMessage(value); 5868 } 5869 bitField0_ |= 0x00000200; 5870 onChanged(); 5871 return this; 5872 } 5873 /** 5874 * 5875 * 5876 * <pre> 5877 * Machine resources for this version. 5878 * Only applicable in the App Engine flexible environment. 5879 * </pre> 5880 * 5881 * <code>.google.appengine.v1.Resources resources = 9;</code> 5882 */ setResources(com.google.appengine.v1.Resources.Builder builderForValue)5883 public Builder setResources(com.google.appengine.v1.Resources.Builder builderForValue) { 5884 if (resourcesBuilder_ == null) { 5885 resources_ = builderForValue.build(); 5886 } else { 5887 resourcesBuilder_.setMessage(builderForValue.build()); 5888 } 5889 bitField0_ |= 0x00000200; 5890 onChanged(); 5891 return this; 5892 } 5893 /** 5894 * 5895 * 5896 * <pre> 5897 * Machine resources for this version. 5898 * Only applicable in the App Engine flexible environment. 5899 * </pre> 5900 * 5901 * <code>.google.appengine.v1.Resources resources = 9;</code> 5902 */ mergeResources(com.google.appengine.v1.Resources value)5903 public Builder mergeResources(com.google.appengine.v1.Resources value) { 5904 if (resourcesBuilder_ == null) { 5905 if (((bitField0_ & 0x00000200) != 0) 5906 && resources_ != null 5907 && resources_ != com.google.appengine.v1.Resources.getDefaultInstance()) { 5908 getResourcesBuilder().mergeFrom(value); 5909 } else { 5910 resources_ = value; 5911 } 5912 } else { 5913 resourcesBuilder_.mergeFrom(value); 5914 } 5915 bitField0_ |= 0x00000200; 5916 onChanged(); 5917 return this; 5918 } 5919 /** 5920 * 5921 * 5922 * <pre> 5923 * Machine resources for this version. 5924 * Only applicable in the App Engine flexible environment. 5925 * </pre> 5926 * 5927 * <code>.google.appengine.v1.Resources resources = 9;</code> 5928 */ clearResources()5929 public Builder clearResources() { 5930 bitField0_ = (bitField0_ & ~0x00000200); 5931 resources_ = null; 5932 if (resourcesBuilder_ != null) { 5933 resourcesBuilder_.dispose(); 5934 resourcesBuilder_ = null; 5935 } 5936 onChanged(); 5937 return this; 5938 } 5939 /** 5940 * 5941 * 5942 * <pre> 5943 * Machine resources for this version. 5944 * Only applicable in the App Engine flexible environment. 5945 * </pre> 5946 * 5947 * <code>.google.appengine.v1.Resources resources = 9;</code> 5948 */ getResourcesBuilder()5949 public com.google.appengine.v1.Resources.Builder getResourcesBuilder() { 5950 bitField0_ |= 0x00000200; 5951 onChanged(); 5952 return getResourcesFieldBuilder().getBuilder(); 5953 } 5954 /** 5955 * 5956 * 5957 * <pre> 5958 * Machine resources for this version. 5959 * Only applicable in the App Engine flexible environment. 5960 * </pre> 5961 * 5962 * <code>.google.appengine.v1.Resources resources = 9;</code> 5963 */ getResourcesOrBuilder()5964 public com.google.appengine.v1.ResourcesOrBuilder getResourcesOrBuilder() { 5965 if (resourcesBuilder_ != null) { 5966 return resourcesBuilder_.getMessageOrBuilder(); 5967 } else { 5968 return resources_ == null 5969 ? com.google.appengine.v1.Resources.getDefaultInstance() 5970 : resources_; 5971 } 5972 } 5973 /** 5974 * 5975 * 5976 * <pre> 5977 * Machine resources for this version. 5978 * Only applicable in the App Engine flexible environment. 5979 * </pre> 5980 * 5981 * <code>.google.appengine.v1.Resources resources = 9;</code> 5982 */ 5983 private com.google.protobuf.SingleFieldBuilderV3< 5984 com.google.appengine.v1.Resources, 5985 com.google.appengine.v1.Resources.Builder, 5986 com.google.appengine.v1.ResourcesOrBuilder> getResourcesFieldBuilder()5987 getResourcesFieldBuilder() { 5988 if (resourcesBuilder_ == null) { 5989 resourcesBuilder_ = 5990 new com.google.protobuf.SingleFieldBuilderV3< 5991 com.google.appengine.v1.Resources, 5992 com.google.appengine.v1.Resources.Builder, 5993 com.google.appengine.v1.ResourcesOrBuilder>( 5994 getResources(), getParentForChildren(), isClean()); 5995 resources_ = null; 5996 } 5997 return resourcesBuilder_; 5998 } 5999 6000 private java.lang.Object runtime_ = ""; 6001 /** 6002 * 6003 * 6004 * <pre> 6005 * Desired runtime. Example: `python27`. 6006 * </pre> 6007 * 6008 * <code>string runtime = 10;</code> 6009 * 6010 * @return The runtime. 6011 */ getRuntime()6012 public java.lang.String getRuntime() { 6013 java.lang.Object ref = runtime_; 6014 if (!(ref instanceof java.lang.String)) { 6015 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6016 java.lang.String s = bs.toStringUtf8(); 6017 runtime_ = s; 6018 return s; 6019 } else { 6020 return (java.lang.String) ref; 6021 } 6022 } 6023 /** 6024 * 6025 * 6026 * <pre> 6027 * Desired runtime. Example: `python27`. 6028 * </pre> 6029 * 6030 * <code>string runtime = 10;</code> 6031 * 6032 * @return The bytes for runtime. 6033 */ getRuntimeBytes()6034 public com.google.protobuf.ByteString getRuntimeBytes() { 6035 java.lang.Object ref = runtime_; 6036 if (ref instanceof String) { 6037 com.google.protobuf.ByteString b = 6038 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6039 runtime_ = b; 6040 return b; 6041 } else { 6042 return (com.google.protobuf.ByteString) ref; 6043 } 6044 } 6045 /** 6046 * 6047 * 6048 * <pre> 6049 * Desired runtime. Example: `python27`. 6050 * </pre> 6051 * 6052 * <code>string runtime = 10;</code> 6053 * 6054 * @param value The runtime to set. 6055 * @return This builder for chaining. 6056 */ setRuntime(java.lang.String value)6057 public Builder setRuntime(java.lang.String value) { 6058 if (value == null) { 6059 throw new NullPointerException(); 6060 } 6061 runtime_ = value; 6062 bitField0_ |= 0x00000400; 6063 onChanged(); 6064 return this; 6065 } 6066 /** 6067 * 6068 * 6069 * <pre> 6070 * Desired runtime. Example: `python27`. 6071 * </pre> 6072 * 6073 * <code>string runtime = 10;</code> 6074 * 6075 * @return This builder for chaining. 6076 */ clearRuntime()6077 public Builder clearRuntime() { 6078 runtime_ = getDefaultInstance().getRuntime(); 6079 bitField0_ = (bitField0_ & ~0x00000400); 6080 onChanged(); 6081 return this; 6082 } 6083 /** 6084 * 6085 * 6086 * <pre> 6087 * Desired runtime. Example: `python27`. 6088 * </pre> 6089 * 6090 * <code>string runtime = 10;</code> 6091 * 6092 * @param value The bytes for runtime to set. 6093 * @return This builder for chaining. 6094 */ setRuntimeBytes(com.google.protobuf.ByteString value)6095 public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { 6096 if (value == null) { 6097 throw new NullPointerException(); 6098 } 6099 checkByteStringIsUtf8(value); 6100 runtime_ = value; 6101 bitField0_ |= 0x00000400; 6102 onChanged(); 6103 return this; 6104 } 6105 6106 private java.lang.Object runtimeChannel_ = ""; 6107 /** 6108 * 6109 * 6110 * <pre> 6111 * The channel of the runtime to use. Only available for some 6112 * runtimes. Defaults to the `default` channel. 6113 * </pre> 6114 * 6115 * <code>string runtime_channel = 117;</code> 6116 * 6117 * @return The runtimeChannel. 6118 */ getRuntimeChannel()6119 public java.lang.String getRuntimeChannel() { 6120 java.lang.Object ref = runtimeChannel_; 6121 if (!(ref instanceof java.lang.String)) { 6122 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6123 java.lang.String s = bs.toStringUtf8(); 6124 runtimeChannel_ = s; 6125 return s; 6126 } else { 6127 return (java.lang.String) ref; 6128 } 6129 } 6130 /** 6131 * 6132 * 6133 * <pre> 6134 * The channel of the runtime to use. Only available for some 6135 * runtimes. Defaults to the `default` channel. 6136 * </pre> 6137 * 6138 * <code>string runtime_channel = 117;</code> 6139 * 6140 * @return The bytes for runtimeChannel. 6141 */ getRuntimeChannelBytes()6142 public com.google.protobuf.ByteString getRuntimeChannelBytes() { 6143 java.lang.Object ref = runtimeChannel_; 6144 if (ref instanceof String) { 6145 com.google.protobuf.ByteString b = 6146 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6147 runtimeChannel_ = b; 6148 return b; 6149 } else { 6150 return (com.google.protobuf.ByteString) ref; 6151 } 6152 } 6153 /** 6154 * 6155 * 6156 * <pre> 6157 * The channel of the runtime to use. Only available for some 6158 * runtimes. Defaults to the `default` channel. 6159 * </pre> 6160 * 6161 * <code>string runtime_channel = 117;</code> 6162 * 6163 * @param value The runtimeChannel to set. 6164 * @return This builder for chaining. 6165 */ setRuntimeChannel(java.lang.String value)6166 public Builder setRuntimeChannel(java.lang.String value) { 6167 if (value == null) { 6168 throw new NullPointerException(); 6169 } 6170 runtimeChannel_ = value; 6171 bitField0_ |= 0x00000800; 6172 onChanged(); 6173 return this; 6174 } 6175 /** 6176 * 6177 * 6178 * <pre> 6179 * The channel of the runtime to use. Only available for some 6180 * runtimes. Defaults to the `default` channel. 6181 * </pre> 6182 * 6183 * <code>string runtime_channel = 117;</code> 6184 * 6185 * @return This builder for chaining. 6186 */ clearRuntimeChannel()6187 public Builder clearRuntimeChannel() { 6188 runtimeChannel_ = getDefaultInstance().getRuntimeChannel(); 6189 bitField0_ = (bitField0_ & ~0x00000800); 6190 onChanged(); 6191 return this; 6192 } 6193 /** 6194 * 6195 * 6196 * <pre> 6197 * The channel of the runtime to use. Only available for some 6198 * runtimes. Defaults to the `default` channel. 6199 * </pre> 6200 * 6201 * <code>string runtime_channel = 117;</code> 6202 * 6203 * @param value The bytes for runtimeChannel to set. 6204 * @return This builder for chaining. 6205 */ setRuntimeChannelBytes(com.google.protobuf.ByteString value)6206 public Builder setRuntimeChannelBytes(com.google.protobuf.ByteString value) { 6207 if (value == null) { 6208 throw new NullPointerException(); 6209 } 6210 checkByteStringIsUtf8(value); 6211 runtimeChannel_ = value; 6212 bitField0_ |= 0x00000800; 6213 onChanged(); 6214 return this; 6215 } 6216 6217 private boolean threadsafe_; 6218 /** 6219 * 6220 * 6221 * <pre> 6222 * Whether multiple requests can be dispatched to this version at once. 6223 * </pre> 6224 * 6225 * <code>bool threadsafe = 11;</code> 6226 * 6227 * @return The threadsafe. 6228 */ 6229 @java.lang.Override getThreadsafe()6230 public boolean getThreadsafe() { 6231 return threadsafe_; 6232 } 6233 /** 6234 * 6235 * 6236 * <pre> 6237 * Whether multiple requests can be dispatched to this version at once. 6238 * </pre> 6239 * 6240 * <code>bool threadsafe = 11;</code> 6241 * 6242 * @param value The threadsafe to set. 6243 * @return This builder for chaining. 6244 */ setThreadsafe(boolean value)6245 public Builder setThreadsafe(boolean value) { 6246 6247 threadsafe_ = value; 6248 bitField0_ |= 0x00001000; 6249 onChanged(); 6250 return this; 6251 } 6252 /** 6253 * 6254 * 6255 * <pre> 6256 * Whether multiple requests can be dispatched to this version at once. 6257 * </pre> 6258 * 6259 * <code>bool threadsafe = 11;</code> 6260 * 6261 * @return This builder for chaining. 6262 */ clearThreadsafe()6263 public Builder clearThreadsafe() { 6264 bitField0_ = (bitField0_ & ~0x00001000); 6265 threadsafe_ = false; 6266 onChanged(); 6267 return this; 6268 } 6269 6270 private boolean vm_; 6271 /** 6272 * 6273 * 6274 * <pre> 6275 * Whether to deploy this version in a container on a virtual machine. 6276 * </pre> 6277 * 6278 * <code>bool vm = 12;</code> 6279 * 6280 * @return The vm. 6281 */ 6282 @java.lang.Override getVm()6283 public boolean getVm() { 6284 return vm_; 6285 } 6286 /** 6287 * 6288 * 6289 * <pre> 6290 * Whether to deploy this version in a container on a virtual machine. 6291 * </pre> 6292 * 6293 * <code>bool vm = 12;</code> 6294 * 6295 * @param value The vm to set. 6296 * @return This builder for chaining. 6297 */ setVm(boolean value)6298 public Builder setVm(boolean value) { 6299 6300 vm_ = value; 6301 bitField0_ |= 0x00002000; 6302 onChanged(); 6303 return this; 6304 } 6305 /** 6306 * 6307 * 6308 * <pre> 6309 * Whether to deploy this version in a container on a virtual machine. 6310 * </pre> 6311 * 6312 * <code>bool vm = 12;</code> 6313 * 6314 * @return This builder for chaining. 6315 */ clearVm()6316 public Builder clearVm() { 6317 bitField0_ = (bitField0_ & ~0x00002000); 6318 vm_ = false; 6319 onChanged(); 6320 return this; 6321 } 6322 6323 private boolean appEngineApis_; 6324 /** 6325 * 6326 * 6327 * <pre> 6328 * Allows App Engine second generation runtimes to access the legacy bundled 6329 * services. 6330 * </pre> 6331 * 6332 * <code>bool app_engine_apis = 128;</code> 6333 * 6334 * @return The appEngineApis. 6335 */ 6336 @java.lang.Override getAppEngineApis()6337 public boolean getAppEngineApis() { 6338 return appEngineApis_; 6339 } 6340 /** 6341 * 6342 * 6343 * <pre> 6344 * Allows App Engine second generation runtimes to access the legacy bundled 6345 * services. 6346 * </pre> 6347 * 6348 * <code>bool app_engine_apis = 128;</code> 6349 * 6350 * @param value The appEngineApis to set. 6351 * @return This builder for chaining. 6352 */ setAppEngineApis(boolean value)6353 public Builder setAppEngineApis(boolean value) { 6354 6355 appEngineApis_ = value; 6356 bitField0_ |= 0x00004000; 6357 onChanged(); 6358 return this; 6359 } 6360 /** 6361 * 6362 * 6363 * <pre> 6364 * Allows App Engine second generation runtimes to access the legacy bundled 6365 * services. 6366 * </pre> 6367 * 6368 * <code>bool app_engine_apis = 128;</code> 6369 * 6370 * @return This builder for chaining. 6371 */ clearAppEngineApis()6372 public Builder clearAppEngineApis() { 6373 bitField0_ = (bitField0_ & ~0x00004000); 6374 appEngineApis_ = false; 6375 onChanged(); 6376 return this; 6377 } 6378 6379 private com.google.protobuf.MapField<java.lang.String, java.lang.String> betaSettings_; 6380 6381 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetBetaSettings()6382 internalGetBetaSettings() { 6383 if (betaSettings_ == null) { 6384 return com.google.protobuf.MapField.emptyMapField( 6385 BetaSettingsDefaultEntryHolder.defaultEntry); 6386 } 6387 return betaSettings_; 6388 } 6389 6390 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableBetaSettings()6391 internalGetMutableBetaSettings() { 6392 if (betaSettings_ == null) { 6393 betaSettings_ = 6394 com.google.protobuf.MapField.newMapField(BetaSettingsDefaultEntryHolder.defaultEntry); 6395 } 6396 if (!betaSettings_.isMutable()) { 6397 betaSettings_ = betaSettings_.copy(); 6398 } 6399 bitField0_ |= 0x00008000; 6400 onChanged(); 6401 return betaSettings_; 6402 } 6403 getBetaSettingsCount()6404 public int getBetaSettingsCount() { 6405 return internalGetBetaSettings().getMap().size(); 6406 } 6407 /** 6408 * 6409 * 6410 * <pre> 6411 * Metadata settings that are supplied to this version to enable 6412 * beta runtime features. 6413 * </pre> 6414 * 6415 * <code>map<string, string> beta_settings = 13;</code> 6416 */ 6417 @java.lang.Override containsBetaSettings(java.lang.String key)6418 public boolean containsBetaSettings(java.lang.String key) { 6419 if (key == null) { 6420 throw new NullPointerException("map key"); 6421 } 6422 return internalGetBetaSettings().getMap().containsKey(key); 6423 } 6424 /** Use {@link #getBetaSettingsMap()} instead. */ 6425 @java.lang.Override 6426 @java.lang.Deprecated getBetaSettings()6427 public java.util.Map<java.lang.String, java.lang.String> getBetaSettings() { 6428 return getBetaSettingsMap(); 6429 } 6430 /** 6431 * 6432 * 6433 * <pre> 6434 * Metadata settings that are supplied to this version to enable 6435 * beta runtime features. 6436 * </pre> 6437 * 6438 * <code>map<string, string> beta_settings = 13;</code> 6439 */ 6440 @java.lang.Override getBetaSettingsMap()6441 public java.util.Map<java.lang.String, java.lang.String> getBetaSettingsMap() { 6442 return internalGetBetaSettings().getMap(); 6443 } 6444 /** 6445 * 6446 * 6447 * <pre> 6448 * Metadata settings that are supplied to this version to enable 6449 * beta runtime features. 6450 * </pre> 6451 * 6452 * <code>map<string, string> beta_settings = 13;</code> 6453 */ 6454 @java.lang.Override getBetaSettingsOrDefault( java.lang.String key, java.lang.String defaultValue)6455 public /* nullable */ java.lang.String getBetaSettingsOrDefault( 6456 java.lang.String key, 6457 /* nullable */ 6458 java.lang.String defaultValue) { 6459 if (key == null) { 6460 throw new NullPointerException("map key"); 6461 } 6462 java.util.Map<java.lang.String, java.lang.String> map = internalGetBetaSettings().getMap(); 6463 return map.containsKey(key) ? map.get(key) : defaultValue; 6464 } 6465 /** 6466 * 6467 * 6468 * <pre> 6469 * Metadata settings that are supplied to this version to enable 6470 * beta runtime features. 6471 * </pre> 6472 * 6473 * <code>map<string, string> beta_settings = 13;</code> 6474 */ 6475 @java.lang.Override getBetaSettingsOrThrow(java.lang.String key)6476 public java.lang.String getBetaSettingsOrThrow(java.lang.String key) { 6477 if (key == null) { 6478 throw new NullPointerException("map key"); 6479 } 6480 java.util.Map<java.lang.String, java.lang.String> map = internalGetBetaSettings().getMap(); 6481 if (!map.containsKey(key)) { 6482 throw new java.lang.IllegalArgumentException(); 6483 } 6484 return map.get(key); 6485 } 6486 clearBetaSettings()6487 public Builder clearBetaSettings() { 6488 bitField0_ = (bitField0_ & ~0x00008000); 6489 internalGetMutableBetaSettings().getMutableMap().clear(); 6490 return this; 6491 } 6492 /** 6493 * 6494 * 6495 * <pre> 6496 * Metadata settings that are supplied to this version to enable 6497 * beta runtime features. 6498 * </pre> 6499 * 6500 * <code>map<string, string> beta_settings = 13;</code> 6501 */ removeBetaSettings(java.lang.String key)6502 public Builder removeBetaSettings(java.lang.String key) { 6503 if (key == null) { 6504 throw new NullPointerException("map key"); 6505 } 6506 internalGetMutableBetaSettings().getMutableMap().remove(key); 6507 return this; 6508 } 6509 /** Use alternate mutation accessors instead. */ 6510 @java.lang.Deprecated getMutableBetaSettings()6511 public java.util.Map<java.lang.String, java.lang.String> getMutableBetaSettings() { 6512 bitField0_ |= 0x00008000; 6513 return internalGetMutableBetaSettings().getMutableMap(); 6514 } 6515 /** 6516 * 6517 * 6518 * <pre> 6519 * Metadata settings that are supplied to this version to enable 6520 * beta runtime features. 6521 * </pre> 6522 * 6523 * <code>map<string, string> beta_settings = 13;</code> 6524 */ putBetaSettings(java.lang.String key, java.lang.String value)6525 public Builder putBetaSettings(java.lang.String key, java.lang.String value) { 6526 if (key == null) { 6527 throw new NullPointerException("map key"); 6528 } 6529 if (value == null) { 6530 throw new NullPointerException("map value"); 6531 } 6532 internalGetMutableBetaSettings().getMutableMap().put(key, value); 6533 bitField0_ |= 0x00008000; 6534 return this; 6535 } 6536 /** 6537 * 6538 * 6539 * <pre> 6540 * Metadata settings that are supplied to this version to enable 6541 * beta runtime features. 6542 * </pre> 6543 * 6544 * <code>map<string, string> beta_settings = 13;</code> 6545 */ putAllBetaSettings(java.util.Map<java.lang.String, java.lang.String> values)6546 public Builder putAllBetaSettings(java.util.Map<java.lang.String, java.lang.String> values) { 6547 internalGetMutableBetaSettings().getMutableMap().putAll(values); 6548 bitField0_ |= 0x00008000; 6549 return this; 6550 } 6551 6552 private java.lang.Object env_ = ""; 6553 /** 6554 * 6555 * 6556 * <pre> 6557 * App Engine execution environment for this version. 6558 * Defaults to `standard`. 6559 * </pre> 6560 * 6561 * <code>string env = 14;</code> 6562 * 6563 * @return The env. 6564 */ getEnv()6565 public java.lang.String getEnv() { 6566 java.lang.Object ref = env_; 6567 if (!(ref instanceof java.lang.String)) { 6568 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6569 java.lang.String s = bs.toStringUtf8(); 6570 env_ = s; 6571 return s; 6572 } else { 6573 return (java.lang.String) ref; 6574 } 6575 } 6576 /** 6577 * 6578 * 6579 * <pre> 6580 * App Engine execution environment for this version. 6581 * Defaults to `standard`. 6582 * </pre> 6583 * 6584 * <code>string env = 14;</code> 6585 * 6586 * @return The bytes for env. 6587 */ getEnvBytes()6588 public com.google.protobuf.ByteString getEnvBytes() { 6589 java.lang.Object ref = env_; 6590 if (ref instanceof String) { 6591 com.google.protobuf.ByteString b = 6592 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6593 env_ = b; 6594 return b; 6595 } else { 6596 return (com.google.protobuf.ByteString) ref; 6597 } 6598 } 6599 /** 6600 * 6601 * 6602 * <pre> 6603 * App Engine execution environment for this version. 6604 * Defaults to `standard`. 6605 * </pre> 6606 * 6607 * <code>string env = 14;</code> 6608 * 6609 * @param value The env to set. 6610 * @return This builder for chaining. 6611 */ setEnv(java.lang.String value)6612 public Builder setEnv(java.lang.String value) { 6613 if (value == null) { 6614 throw new NullPointerException(); 6615 } 6616 env_ = value; 6617 bitField0_ |= 0x00010000; 6618 onChanged(); 6619 return this; 6620 } 6621 /** 6622 * 6623 * 6624 * <pre> 6625 * App Engine execution environment for this version. 6626 * Defaults to `standard`. 6627 * </pre> 6628 * 6629 * <code>string env = 14;</code> 6630 * 6631 * @return This builder for chaining. 6632 */ clearEnv()6633 public Builder clearEnv() { 6634 env_ = getDefaultInstance().getEnv(); 6635 bitField0_ = (bitField0_ & ~0x00010000); 6636 onChanged(); 6637 return this; 6638 } 6639 /** 6640 * 6641 * 6642 * <pre> 6643 * App Engine execution environment for this version. 6644 * Defaults to `standard`. 6645 * </pre> 6646 * 6647 * <code>string env = 14;</code> 6648 * 6649 * @param value The bytes for env to set. 6650 * @return This builder for chaining. 6651 */ setEnvBytes(com.google.protobuf.ByteString value)6652 public Builder setEnvBytes(com.google.protobuf.ByteString value) { 6653 if (value == null) { 6654 throw new NullPointerException(); 6655 } 6656 checkByteStringIsUtf8(value); 6657 env_ = value; 6658 bitField0_ |= 0x00010000; 6659 onChanged(); 6660 return this; 6661 } 6662 6663 private int servingStatus_ = 0; 6664 /** 6665 * 6666 * 6667 * <pre> 6668 * Current serving status of this version. Only the versions with a 6669 * `SERVING` status create instances and can be billed. 6670 * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. 6671 * </pre> 6672 * 6673 * <code>.google.appengine.v1.ServingStatus serving_status = 15;</code> 6674 * 6675 * @return The enum numeric value on the wire for servingStatus. 6676 */ 6677 @java.lang.Override getServingStatusValue()6678 public int getServingStatusValue() { 6679 return servingStatus_; 6680 } 6681 /** 6682 * 6683 * 6684 * <pre> 6685 * Current serving status of this version. Only the versions with a 6686 * `SERVING` status create instances and can be billed. 6687 * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. 6688 * </pre> 6689 * 6690 * <code>.google.appengine.v1.ServingStatus serving_status = 15;</code> 6691 * 6692 * @param value The enum numeric value on the wire for servingStatus to set. 6693 * @return This builder for chaining. 6694 */ setServingStatusValue(int value)6695 public Builder setServingStatusValue(int value) { 6696 servingStatus_ = value; 6697 bitField0_ |= 0x00020000; 6698 onChanged(); 6699 return this; 6700 } 6701 /** 6702 * 6703 * 6704 * <pre> 6705 * Current serving status of this version. Only the versions with a 6706 * `SERVING` status create instances and can be billed. 6707 * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. 6708 * </pre> 6709 * 6710 * <code>.google.appengine.v1.ServingStatus serving_status = 15;</code> 6711 * 6712 * @return The servingStatus. 6713 */ 6714 @java.lang.Override getServingStatus()6715 public com.google.appengine.v1.ServingStatus getServingStatus() { 6716 com.google.appengine.v1.ServingStatus result = 6717 com.google.appengine.v1.ServingStatus.forNumber(servingStatus_); 6718 return result == null ? com.google.appengine.v1.ServingStatus.UNRECOGNIZED : result; 6719 } 6720 /** 6721 * 6722 * 6723 * <pre> 6724 * Current serving status of this version. Only the versions with a 6725 * `SERVING` status create instances and can be billed. 6726 * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. 6727 * </pre> 6728 * 6729 * <code>.google.appengine.v1.ServingStatus serving_status = 15;</code> 6730 * 6731 * @param value The servingStatus to set. 6732 * @return This builder for chaining. 6733 */ setServingStatus(com.google.appengine.v1.ServingStatus value)6734 public Builder setServingStatus(com.google.appengine.v1.ServingStatus value) { 6735 if (value == null) { 6736 throw new NullPointerException(); 6737 } 6738 bitField0_ |= 0x00020000; 6739 servingStatus_ = value.getNumber(); 6740 onChanged(); 6741 return this; 6742 } 6743 /** 6744 * 6745 * 6746 * <pre> 6747 * Current serving status of this version. Only the versions with a 6748 * `SERVING` status create instances and can be billed. 6749 * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. 6750 * </pre> 6751 * 6752 * <code>.google.appengine.v1.ServingStatus serving_status = 15;</code> 6753 * 6754 * @return This builder for chaining. 6755 */ clearServingStatus()6756 public Builder clearServingStatus() { 6757 bitField0_ = (bitField0_ & ~0x00020000); 6758 servingStatus_ = 0; 6759 onChanged(); 6760 return this; 6761 } 6762 6763 private java.lang.Object createdBy_ = ""; 6764 /** 6765 * 6766 * 6767 * <pre> 6768 * Email address of the user who created this version. 6769 * @OutputOnly 6770 * </pre> 6771 * 6772 * <code>string created_by = 16;</code> 6773 * 6774 * @return The createdBy. 6775 */ getCreatedBy()6776 public java.lang.String getCreatedBy() { 6777 java.lang.Object ref = createdBy_; 6778 if (!(ref instanceof java.lang.String)) { 6779 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6780 java.lang.String s = bs.toStringUtf8(); 6781 createdBy_ = s; 6782 return s; 6783 } else { 6784 return (java.lang.String) ref; 6785 } 6786 } 6787 /** 6788 * 6789 * 6790 * <pre> 6791 * Email address of the user who created this version. 6792 * @OutputOnly 6793 * </pre> 6794 * 6795 * <code>string created_by = 16;</code> 6796 * 6797 * @return The bytes for createdBy. 6798 */ getCreatedByBytes()6799 public com.google.protobuf.ByteString getCreatedByBytes() { 6800 java.lang.Object ref = createdBy_; 6801 if (ref instanceof String) { 6802 com.google.protobuf.ByteString b = 6803 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6804 createdBy_ = b; 6805 return b; 6806 } else { 6807 return (com.google.protobuf.ByteString) ref; 6808 } 6809 } 6810 /** 6811 * 6812 * 6813 * <pre> 6814 * Email address of the user who created this version. 6815 * @OutputOnly 6816 * </pre> 6817 * 6818 * <code>string created_by = 16;</code> 6819 * 6820 * @param value The createdBy to set. 6821 * @return This builder for chaining. 6822 */ setCreatedBy(java.lang.String value)6823 public Builder setCreatedBy(java.lang.String value) { 6824 if (value == null) { 6825 throw new NullPointerException(); 6826 } 6827 createdBy_ = value; 6828 bitField0_ |= 0x00040000; 6829 onChanged(); 6830 return this; 6831 } 6832 /** 6833 * 6834 * 6835 * <pre> 6836 * Email address of the user who created this version. 6837 * @OutputOnly 6838 * </pre> 6839 * 6840 * <code>string created_by = 16;</code> 6841 * 6842 * @return This builder for chaining. 6843 */ clearCreatedBy()6844 public Builder clearCreatedBy() { 6845 createdBy_ = getDefaultInstance().getCreatedBy(); 6846 bitField0_ = (bitField0_ & ~0x00040000); 6847 onChanged(); 6848 return this; 6849 } 6850 /** 6851 * 6852 * 6853 * <pre> 6854 * Email address of the user who created this version. 6855 * @OutputOnly 6856 * </pre> 6857 * 6858 * <code>string created_by = 16;</code> 6859 * 6860 * @param value The bytes for createdBy to set. 6861 * @return This builder for chaining. 6862 */ setCreatedByBytes(com.google.protobuf.ByteString value)6863 public Builder setCreatedByBytes(com.google.protobuf.ByteString value) { 6864 if (value == null) { 6865 throw new NullPointerException(); 6866 } 6867 checkByteStringIsUtf8(value); 6868 createdBy_ = value; 6869 bitField0_ |= 0x00040000; 6870 onChanged(); 6871 return this; 6872 } 6873 6874 private com.google.protobuf.Timestamp createTime_; 6875 private com.google.protobuf.SingleFieldBuilderV3< 6876 com.google.protobuf.Timestamp, 6877 com.google.protobuf.Timestamp.Builder, 6878 com.google.protobuf.TimestampOrBuilder> 6879 createTimeBuilder_; 6880 /** 6881 * 6882 * 6883 * <pre> 6884 * Time that this version was created. 6885 * @OutputOnly 6886 * </pre> 6887 * 6888 * <code>.google.protobuf.Timestamp create_time = 17;</code> 6889 * 6890 * @return Whether the createTime field is set. 6891 */ hasCreateTime()6892 public boolean hasCreateTime() { 6893 return ((bitField0_ & 0x00080000) != 0); 6894 } 6895 /** 6896 * 6897 * 6898 * <pre> 6899 * Time that this version was created. 6900 * @OutputOnly 6901 * </pre> 6902 * 6903 * <code>.google.protobuf.Timestamp create_time = 17;</code> 6904 * 6905 * @return The createTime. 6906 */ getCreateTime()6907 public com.google.protobuf.Timestamp getCreateTime() { 6908 if (createTimeBuilder_ == null) { 6909 return createTime_ == null 6910 ? com.google.protobuf.Timestamp.getDefaultInstance() 6911 : createTime_; 6912 } else { 6913 return createTimeBuilder_.getMessage(); 6914 } 6915 } 6916 /** 6917 * 6918 * 6919 * <pre> 6920 * Time that this version was created. 6921 * @OutputOnly 6922 * </pre> 6923 * 6924 * <code>.google.protobuf.Timestamp create_time = 17;</code> 6925 */ setCreateTime(com.google.protobuf.Timestamp value)6926 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 6927 if (createTimeBuilder_ == null) { 6928 if (value == null) { 6929 throw new NullPointerException(); 6930 } 6931 createTime_ = value; 6932 } else { 6933 createTimeBuilder_.setMessage(value); 6934 } 6935 bitField0_ |= 0x00080000; 6936 onChanged(); 6937 return this; 6938 } 6939 /** 6940 * 6941 * 6942 * <pre> 6943 * Time that this version was created. 6944 * @OutputOnly 6945 * </pre> 6946 * 6947 * <code>.google.protobuf.Timestamp create_time = 17;</code> 6948 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)6949 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 6950 if (createTimeBuilder_ == null) { 6951 createTime_ = builderForValue.build(); 6952 } else { 6953 createTimeBuilder_.setMessage(builderForValue.build()); 6954 } 6955 bitField0_ |= 0x00080000; 6956 onChanged(); 6957 return this; 6958 } 6959 /** 6960 * 6961 * 6962 * <pre> 6963 * Time that this version was created. 6964 * @OutputOnly 6965 * </pre> 6966 * 6967 * <code>.google.protobuf.Timestamp create_time = 17;</code> 6968 */ mergeCreateTime(com.google.protobuf.Timestamp value)6969 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 6970 if (createTimeBuilder_ == null) { 6971 if (((bitField0_ & 0x00080000) != 0) 6972 && createTime_ != null 6973 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 6974 getCreateTimeBuilder().mergeFrom(value); 6975 } else { 6976 createTime_ = value; 6977 } 6978 } else { 6979 createTimeBuilder_.mergeFrom(value); 6980 } 6981 bitField0_ |= 0x00080000; 6982 onChanged(); 6983 return this; 6984 } 6985 /** 6986 * 6987 * 6988 * <pre> 6989 * Time that this version was created. 6990 * @OutputOnly 6991 * </pre> 6992 * 6993 * <code>.google.protobuf.Timestamp create_time = 17;</code> 6994 */ clearCreateTime()6995 public Builder clearCreateTime() { 6996 bitField0_ = (bitField0_ & ~0x00080000); 6997 createTime_ = null; 6998 if (createTimeBuilder_ != null) { 6999 createTimeBuilder_.dispose(); 7000 createTimeBuilder_ = null; 7001 } 7002 onChanged(); 7003 return this; 7004 } 7005 /** 7006 * 7007 * 7008 * <pre> 7009 * Time that this version was created. 7010 * @OutputOnly 7011 * </pre> 7012 * 7013 * <code>.google.protobuf.Timestamp create_time = 17;</code> 7014 */ getCreateTimeBuilder()7015 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 7016 bitField0_ |= 0x00080000; 7017 onChanged(); 7018 return getCreateTimeFieldBuilder().getBuilder(); 7019 } 7020 /** 7021 * 7022 * 7023 * <pre> 7024 * Time that this version was created. 7025 * @OutputOnly 7026 * </pre> 7027 * 7028 * <code>.google.protobuf.Timestamp create_time = 17;</code> 7029 */ getCreateTimeOrBuilder()7030 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 7031 if (createTimeBuilder_ != null) { 7032 return createTimeBuilder_.getMessageOrBuilder(); 7033 } else { 7034 return createTime_ == null 7035 ? com.google.protobuf.Timestamp.getDefaultInstance() 7036 : createTime_; 7037 } 7038 } 7039 /** 7040 * 7041 * 7042 * <pre> 7043 * Time that this version was created. 7044 * @OutputOnly 7045 * </pre> 7046 * 7047 * <code>.google.protobuf.Timestamp create_time = 17;</code> 7048 */ 7049 private com.google.protobuf.SingleFieldBuilderV3< 7050 com.google.protobuf.Timestamp, 7051 com.google.protobuf.Timestamp.Builder, 7052 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()7053 getCreateTimeFieldBuilder() { 7054 if (createTimeBuilder_ == null) { 7055 createTimeBuilder_ = 7056 new com.google.protobuf.SingleFieldBuilderV3< 7057 com.google.protobuf.Timestamp, 7058 com.google.protobuf.Timestamp.Builder, 7059 com.google.protobuf.TimestampOrBuilder>( 7060 getCreateTime(), getParentForChildren(), isClean()); 7061 createTime_ = null; 7062 } 7063 return createTimeBuilder_; 7064 } 7065 7066 private long diskUsageBytes_; 7067 /** 7068 * 7069 * 7070 * <pre> 7071 * Total size in bytes of all the files that are included in this version 7072 * and currently hosted on the App Engine disk. 7073 * @OutputOnly 7074 * </pre> 7075 * 7076 * <code>int64 disk_usage_bytes = 18;</code> 7077 * 7078 * @return The diskUsageBytes. 7079 */ 7080 @java.lang.Override getDiskUsageBytes()7081 public long getDiskUsageBytes() { 7082 return diskUsageBytes_; 7083 } 7084 /** 7085 * 7086 * 7087 * <pre> 7088 * Total size in bytes of all the files that are included in this version 7089 * and currently hosted on the App Engine disk. 7090 * @OutputOnly 7091 * </pre> 7092 * 7093 * <code>int64 disk_usage_bytes = 18;</code> 7094 * 7095 * @param value The diskUsageBytes to set. 7096 * @return This builder for chaining. 7097 */ setDiskUsageBytes(long value)7098 public Builder setDiskUsageBytes(long value) { 7099 7100 diskUsageBytes_ = value; 7101 bitField0_ |= 0x00100000; 7102 onChanged(); 7103 return this; 7104 } 7105 /** 7106 * 7107 * 7108 * <pre> 7109 * Total size in bytes of all the files that are included in this version 7110 * and currently hosted on the App Engine disk. 7111 * @OutputOnly 7112 * </pre> 7113 * 7114 * <code>int64 disk_usage_bytes = 18;</code> 7115 * 7116 * @return This builder for chaining. 7117 */ clearDiskUsageBytes()7118 public Builder clearDiskUsageBytes() { 7119 bitField0_ = (bitField0_ & ~0x00100000); 7120 diskUsageBytes_ = 0L; 7121 onChanged(); 7122 return this; 7123 } 7124 7125 private java.lang.Object runtimeApiVersion_ = ""; 7126 /** 7127 * 7128 * 7129 * <pre> 7130 * The version of the API in the given runtime environment. Please see the 7131 * app.yaml reference for valid values at 7132 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref 7133 * </pre> 7134 * 7135 * <code>string runtime_api_version = 21;</code> 7136 * 7137 * @return The runtimeApiVersion. 7138 */ getRuntimeApiVersion()7139 public java.lang.String getRuntimeApiVersion() { 7140 java.lang.Object ref = runtimeApiVersion_; 7141 if (!(ref instanceof java.lang.String)) { 7142 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 7143 java.lang.String s = bs.toStringUtf8(); 7144 runtimeApiVersion_ = s; 7145 return s; 7146 } else { 7147 return (java.lang.String) ref; 7148 } 7149 } 7150 /** 7151 * 7152 * 7153 * <pre> 7154 * The version of the API in the given runtime environment. Please see the 7155 * app.yaml reference for valid values at 7156 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref 7157 * </pre> 7158 * 7159 * <code>string runtime_api_version = 21;</code> 7160 * 7161 * @return The bytes for runtimeApiVersion. 7162 */ getRuntimeApiVersionBytes()7163 public com.google.protobuf.ByteString getRuntimeApiVersionBytes() { 7164 java.lang.Object ref = runtimeApiVersion_; 7165 if (ref instanceof String) { 7166 com.google.protobuf.ByteString b = 7167 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 7168 runtimeApiVersion_ = b; 7169 return b; 7170 } else { 7171 return (com.google.protobuf.ByteString) ref; 7172 } 7173 } 7174 /** 7175 * 7176 * 7177 * <pre> 7178 * The version of the API in the given runtime environment. Please see the 7179 * app.yaml reference for valid values at 7180 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref 7181 * </pre> 7182 * 7183 * <code>string runtime_api_version = 21;</code> 7184 * 7185 * @param value The runtimeApiVersion to set. 7186 * @return This builder for chaining. 7187 */ setRuntimeApiVersion(java.lang.String value)7188 public Builder setRuntimeApiVersion(java.lang.String value) { 7189 if (value == null) { 7190 throw new NullPointerException(); 7191 } 7192 runtimeApiVersion_ = value; 7193 bitField0_ |= 0x00200000; 7194 onChanged(); 7195 return this; 7196 } 7197 /** 7198 * 7199 * 7200 * <pre> 7201 * The version of the API in the given runtime environment. Please see the 7202 * app.yaml reference for valid values at 7203 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref 7204 * </pre> 7205 * 7206 * <code>string runtime_api_version = 21;</code> 7207 * 7208 * @return This builder for chaining. 7209 */ clearRuntimeApiVersion()7210 public Builder clearRuntimeApiVersion() { 7211 runtimeApiVersion_ = getDefaultInstance().getRuntimeApiVersion(); 7212 bitField0_ = (bitField0_ & ~0x00200000); 7213 onChanged(); 7214 return this; 7215 } 7216 /** 7217 * 7218 * 7219 * <pre> 7220 * The version of the API in the given runtime environment. Please see the 7221 * app.yaml reference for valid values at 7222 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref 7223 * </pre> 7224 * 7225 * <code>string runtime_api_version = 21;</code> 7226 * 7227 * @param value The bytes for runtimeApiVersion to set. 7228 * @return This builder for chaining. 7229 */ setRuntimeApiVersionBytes(com.google.protobuf.ByteString value)7230 public Builder setRuntimeApiVersionBytes(com.google.protobuf.ByteString value) { 7231 if (value == null) { 7232 throw new NullPointerException(); 7233 } 7234 checkByteStringIsUtf8(value); 7235 runtimeApiVersion_ = value; 7236 bitField0_ |= 0x00200000; 7237 onChanged(); 7238 return this; 7239 } 7240 7241 private java.lang.Object runtimeMainExecutablePath_ = ""; 7242 /** 7243 * 7244 * 7245 * <pre> 7246 * The path or name of the app's main executable. 7247 * </pre> 7248 * 7249 * <code>string runtime_main_executable_path = 22;</code> 7250 * 7251 * @return The runtimeMainExecutablePath. 7252 */ getRuntimeMainExecutablePath()7253 public java.lang.String getRuntimeMainExecutablePath() { 7254 java.lang.Object ref = runtimeMainExecutablePath_; 7255 if (!(ref instanceof java.lang.String)) { 7256 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 7257 java.lang.String s = bs.toStringUtf8(); 7258 runtimeMainExecutablePath_ = s; 7259 return s; 7260 } else { 7261 return (java.lang.String) ref; 7262 } 7263 } 7264 /** 7265 * 7266 * 7267 * <pre> 7268 * The path or name of the app's main executable. 7269 * </pre> 7270 * 7271 * <code>string runtime_main_executable_path = 22;</code> 7272 * 7273 * @return The bytes for runtimeMainExecutablePath. 7274 */ getRuntimeMainExecutablePathBytes()7275 public com.google.protobuf.ByteString getRuntimeMainExecutablePathBytes() { 7276 java.lang.Object ref = runtimeMainExecutablePath_; 7277 if (ref instanceof String) { 7278 com.google.protobuf.ByteString b = 7279 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 7280 runtimeMainExecutablePath_ = b; 7281 return b; 7282 } else { 7283 return (com.google.protobuf.ByteString) ref; 7284 } 7285 } 7286 /** 7287 * 7288 * 7289 * <pre> 7290 * The path or name of the app's main executable. 7291 * </pre> 7292 * 7293 * <code>string runtime_main_executable_path = 22;</code> 7294 * 7295 * @param value The runtimeMainExecutablePath to set. 7296 * @return This builder for chaining. 7297 */ setRuntimeMainExecutablePath(java.lang.String value)7298 public Builder setRuntimeMainExecutablePath(java.lang.String value) { 7299 if (value == null) { 7300 throw new NullPointerException(); 7301 } 7302 runtimeMainExecutablePath_ = value; 7303 bitField0_ |= 0x00400000; 7304 onChanged(); 7305 return this; 7306 } 7307 /** 7308 * 7309 * 7310 * <pre> 7311 * The path or name of the app's main executable. 7312 * </pre> 7313 * 7314 * <code>string runtime_main_executable_path = 22;</code> 7315 * 7316 * @return This builder for chaining. 7317 */ clearRuntimeMainExecutablePath()7318 public Builder clearRuntimeMainExecutablePath() { 7319 runtimeMainExecutablePath_ = getDefaultInstance().getRuntimeMainExecutablePath(); 7320 bitField0_ = (bitField0_ & ~0x00400000); 7321 onChanged(); 7322 return this; 7323 } 7324 /** 7325 * 7326 * 7327 * <pre> 7328 * The path or name of the app's main executable. 7329 * </pre> 7330 * 7331 * <code>string runtime_main_executable_path = 22;</code> 7332 * 7333 * @param value The bytes for runtimeMainExecutablePath to set. 7334 * @return This builder for chaining. 7335 */ setRuntimeMainExecutablePathBytes(com.google.protobuf.ByteString value)7336 public Builder setRuntimeMainExecutablePathBytes(com.google.protobuf.ByteString value) { 7337 if (value == null) { 7338 throw new NullPointerException(); 7339 } 7340 checkByteStringIsUtf8(value); 7341 runtimeMainExecutablePath_ = value; 7342 bitField0_ |= 0x00400000; 7343 onChanged(); 7344 return this; 7345 } 7346 7347 private java.lang.Object serviceAccount_ = ""; 7348 /** 7349 * 7350 * 7351 * <pre> 7352 * The identity that the deployed version will run as. 7353 * Admin API will use the App Engine Appspot service account as default if 7354 * this field is neither provided in app.yaml file nor through CLI flag. 7355 * </pre> 7356 * 7357 * <code>string service_account = 127;</code> 7358 * 7359 * @return The serviceAccount. 7360 */ getServiceAccount()7361 public java.lang.String getServiceAccount() { 7362 java.lang.Object ref = serviceAccount_; 7363 if (!(ref instanceof java.lang.String)) { 7364 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 7365 java.lang.String s = bs.toStringUtf8(); 7366 serviceAccount_ = s; 7367 return s; 7368 } else { 7369 return (java.lang.String) ref; 7370 } 7371 } 7372 /** 7373 * 7374 * 7375 * <pre> 7376 * The identity that the deployed version will run as. 7377 * Admin API will use the App Engine Appspot service account as default if 7378 * this field is neither provided in app.yaml file nor through CLI flag. 7379 * </pre> 7380 * 7381 * <code>string service_account = 127;</code> 7382 * 7383 * @return The bytes for serviceAccount. 7384 */ getServiceAccountBytes()7385 public com.google.protobuf.ByteString getServiceAccountBytes() { 7386 java.lang.Object ref = serviceAccount_; 7387 if (ref instanceof String) { 7388 com.google.protobuf.ByteString b = 7389 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 7390 serviceAccount_ = b; 7391 return b; 7392 } else { 7393 return (com.google.protobuf.ByteString) ref; 7394 } 7395 } 7396 /** 7397 * 7398 * 7399 * <pre> 7400 * The identity that the deployed version will run as. 7401 * Admin API will use the App Engine Appspot service account as default if 7402 * this field is neither provided in app.yaml file nor through CLI flag. 7403 * </pre> 7404 * 7405 * <code>string service_account = 127;</code> 7406 * 7407 * @param value The serviceAccount to set. 7408 * @return This builder for chaining. 7409 */ setServiceAccount(java.lang.String value)7410 public Builder setServiceAccount(java.lang.String value) { 7411 if (value == null) { 7412 throw new NullPointerException(); 7413 } 7414 serviceAccount_ = value; 7415 bitField0_ |= 0x00800000; 7416 onChanged(); 7417 return this; 7418 } 7419 /** 7420 * 7421 * 7422 * <pre> 7423 * The identity that the deployed version will run as. 7424 * Admin API will use the App Engine Appspot service account as default if 7425 * this field is neither provided in app.yaml file nor through CLI flag. 7426 * </pre> 7427 * 7428 * <code>string service_account = 127;</code> 7429 * 7430 * @return This builder for chaining. 7431 */ clearServiceAccount()7432 public Builder clearServiceAccount() { 7433 serviceAccount_ = getDefaultInstance().getServiceAccount(); 7434 bitField0_ = (bitField0_ & ~0x00800000); 7435 onChanged(); 7436 return this; 7437 } 7438 /** 7439 * 7440 * 7441 * <pre> 7442 * The identity that the deployed version will run as. 7443 * Admin API will use the App Engine Appspot service account as default if 7444 * this field is neither provided in app.yaml file nor through CLI flag. 7445 * </pre> 7446 * 7447 * <code>string service_account = 127;</code> 7448 * 7449 * @param value The bytes for serviceAccount to set. 7450 * @return This builder for chaining. 7451 */ setServiceAccountBytes(com.google.protobuf.ByteString value)7452 public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { 7453 if (value == null) { 7454 throw new NullPointerException(); 7455 } 7456 checkByteStringIsUtf8(value); 7457 serviceAccount_ = value; 7458 bitField0_ |= 0x00800000; 7459 onChanged(); 7460 return this; 7461 } 7462 7463 private java.util.List<com.google.appengine.v1.UrlMap> handlers_ = 7464 java.util.Collections.emptyList(); 7465 ensureHandlersIsMutable()7466 private void ensureHandlersIsMutable() { 7467 if (!((bitField0_ & 0x01000000) != 0)) { 7468 handlers_ = new java.util.ArrayList<com.google.appengine.v1.UrlMap>(handlers_); 7469 bitField0_ |= 0x01000000; 7470 } 7471 } 7472 7473 private com.google.protobuf.RepeatedFieldBuilderV3< 7474 com.google.appengine.v1.UrlMap, 7475 com.google.appengine.v1.UrlMap.Builder, 7476 com.google.appengine.v1.UrlMapOrBuilder> 7477 handlersBuilder_; 7478 7479 /** 7480 * 7481 * 7482 * <pre> 7483 * An ordered list of URL-matching patterns that should be applied to incoming 7484 * requests. The first matching URL handles the request and other request 7485 * handlers are not attempted. 7486 * Only returned in `GET` requests if `view=FULL` is set. 7487 * </pre> 7488 * 7489 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7490 */ getHandlersList()7491 public java.util.List<com.google.appengine.v1.UrlMap> getHandlersList() { 7492 if (handlersBuilder_ == null) { 7493 return java.util.Collections.unmodifiableList(handlers_); 7494 } else { 7495 return handlersBuilder_.getMessageList(); 7496 } 7497 } 7498 /** 7499 * 7500 * 7501 * <pre> 7502 * An ordered list of URL-matching patterns that should be applied to incoming 7503 * requests. The first matching URL handles the request and other request 7504 * handlers are not attempted. 7505 * Only returned in `GET` requests if `view=FULL` is set. 7506 * </pre> 7507 * 7508 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7509 */ getHandlersCount()7510 public int getHandlersCount() { 7511 if (handlersBuilder_ == null) { 7512 return handlers_.size(); 7513 } else { 7514 return handlersBuilder_.getCount(); 7515 } 7516 } 7517 /** 7518 * 7519 * 7520 * <pre> 7521 * An ordered list of URL-matching patterns that should be applied to incoming 7522 * requests. The first matching URL handles the request and other request 7523 * handlers are not attempted. 7524 * Only returned in `GET` requests if `view=FULL` is set. 7525 * </pre> 7526 * 7527 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7528 */ getHandlers(int index)7529 public com.google.appengine.v1.UrlMap getHandlers(int index) { 7530 if (handlersBuilder_ == null) { 7531 return handlers_.get(index); 7532 } else { 7533 return handlersBuilder_.getMessage(index); 7534 } 7535 } 7536 /** 7537 * 7538 * 7539 * <pre> 7540 * An ordered list of URL-matching patterns that should be applied to incoming 7541 * requests. The first matching URL handles the request and other request 7542 * handlers are not attempted. 7543 * Only returned in `GET` requests if `view=FULL` is set. 7544 * </pre> 7545 * 7546 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7547 */ setHandlers(int index, com.google.appengine.v1.UrlMap value)7548 public Builder setHandlers(int index, com.google.appengine.v1.UrlMap value) { 7549 if (handlersBuilder_ == null) { 7550 if (value == null) { 7551 throw new NullPointerException(); 7552 } 7553 ensureHandlersIsMutable(); 7554 handlers_.set(index, value); 7555 onChanged(); 7556 } else { 7557 handlersBuilder_.setMessage(index, value); 7558 } 7559 return this; 7560 } 7561 /** 7562 * 7563 * 7564 * <pre> 7565 * An ordered list of URL-matching patterns that should be applied to incoming 7566 * requests. The first matching URL handles the request and other request 7567 * handlers are not attempted. 7568 * Only returned in `GET` requests if `view=FULL` is set. 7569 * </pre> 7570 * 7571 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7572 */ setHandlers(int index, com.google.appengine.v1.UrlMap.Builder builderForValue)7573 public Builder setHandlers(int index, com.google.appengine.v1.UrlMap.Builder builderForValue) { 7574 if (handlersBuilder_ == null) { 7575 ensureHandlersIsMutable(); 7576 handlers_.set(index, builderForValue.build()); 7577 onChanged(); 7578 } else { 7579 handlersBuilder_.setMessage(index, builderForValue.build()); 7580 } 7581 return this; 7582 } 7583 /** 7584 * 7585 * 7586 * <pre> 7587 * An ordered list of URL-matching patterns that should be applied to incoming 7588 * requests. The first matching URL handles the request and other request 7589 * handlers are not attempted. 7590 * Only returned in `GET` requests if `view=FULL` is set. 7591 * </pre> 7592 * 7593 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7594 */ addHandlers(com.google.appengine.v1.UrlMap value)7595 public Builder addHandlers(com.google.appengine.v1.UrlMap value) { 7596 if (handlersBuilder_ == null) { 7597 if (value == null) { 7598 throw new NullPointerException(); 7599 } 7600 ensureHandlersIsMutable(); 7601 handlers_.add(value); 7602 onChanged(); 7603 } else { 7604 handlersBuilder_.addMessage(value); 7605 } 7606 return this; 7607 } 7608 /** 7609 * 7610 * 7611 * <pre> 7612 * An ordered list of URL-matching patterns that should be applied to incoming 7613 * requests. The first matching URL handles the request and other request 7614 * handlers are not attempted. 7615 * Only returned in `GET` requests if `view=FULL` is set. 7616 * </pre> 7617 * 7618 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7619 */ addHandlers(int index, com.google.appengine.v1.UrlMap value)7620 public Builder addHandlers(int index, com.google.appengine.v1.UrlMap value) { 7621 if (handlersBuilder_ == null) { 7622 if (value == null) { 7623 throw new NullPointerException(); 7624 } 7625 ensureHandlersIsMutable(); 7626 handlers_.add(index, value); 7627 onChanged(); 7628 } else { 7629 handlersBuilder_.addMessage(index, value); 7630 } 7631 return this; 7632 } 7633 /** 7634 * 7635 * 7636 * <pre> 7637 * An ordered list of URL-matching patterns that should be applied to incoming 7638 * requests. The first matching URL handles the request and other request 7639 * handlers are not attempted. 7640 * Only returned in `GET` requests if `view=FULL` is set. 7641 * </pre> 7642 * 7643 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7644 */ addHandlers(com.google.appengine.v1.UrlMap.Builder builderForValue)7645 public Builder addHandlers(com.google.appengine.v1.UrlMap.Builder builderForValue) { 7646 if (handlersBuilder_ == null) { 7647 ensureHandlersIsMutable(); 7648 handlers_.add(builderForValue.build()); 7649 onChanged(); 7650 } else { 7651 handlersBuilder_.addMessage(builderForValue.build()); 7652 } 7653 return this; 7654 } 7655 /** 7656 * 7657 * 7658 * <pre> 7659 * An ordered list of URL-matching patterns that should be applied to incoming 7660 * requests. The first matching URL handles the request and other request 7661 * handlers are not attempted. 7662 * Only returned in `GET` requests if `view=FULL` is set. 7663 * </pre> 7664 * 7665 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7666 */ addHandlers(int index, com.google.appengine.v1.UrlMap.Builder builderForValue)7667 public Builder addHandlers(int index, com.google.appengine.v1.UrlMap.Builder builderForValue) { 7668 if (handlersBuilder_ == null) { 7669 ensureHandlersIsMutable(); 7670 handlers_.add(index, builderForValue.build()); 7671 onChanged(); 7672 } else { 7673 handlersBuilder_.addMessage(index, builderForValue.build()); 7674 } 7675 return this; 7676 } 7677 /** 7678 * 7679 * 7680 * <pre> 7681 * An ordered list of URL-matching patterns that should be applied to incoming 7682 * requests. The first matching URL handles the request and other request 7683 * handlers are not attempted. 7684 * Only returned in `GET` requests if `view=FULL` is set. 7685 * </pre> 7686 * 7687 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7688 */ addAllHandlers( java.lang.Iterable<? extends com.google.appengine.v1.UrlMap> values)7689 public Builder addAllHandlers( 7690 java.lang.Iterable<? extends com.google.appengine.v1.UrlMap> values) { 7691 if (handlersBuilder_ == null) { 7692 ensureHandlersIsMutable(); 7693 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, handlers_); 7694 onChanged(); 7695 } else { 7696 handlersBuilder_.addAllMessages(values); 7697 } 7698 return this; 7699 } 7700 /** 7701 * 7702 * 7703 * <pre> 7704 * An ordered list of URL-matching patterns that should be applied to incoming 7705 * requests. The first matching URL handles the request and other request 7706 * handlers are not attempted. 7707 * Only returned in `GET` requests if `view=FULL` is set. 7708 * </pre> 7709 * 7710 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7711 */ clearHandlers()7712 public Builder clearHandlers() { 7713 if (handlersBuilder_ == null) { 7714 handlers_ = java.util.Collections.emptyList(); 7715 bitField0_ = (bitField0_ & ~0x01000000); 7716 onChanged(); 7717 } else { 7718 handlersBuilder_.clear(); 7719 } 7720 return this; 7721 } 7722 /** 7723 * 7724 * 7725 * <pre> 7726 * An ordered list of URL-matching patterns that should be applied to incoming 7727 * requests. The first matching URL handles the request and other request 7728 * handlers are not attempted. 7729 * Only returned in `GET` requests if `view=FULL` is set. 7730 * </pre> 7731 * 7732 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7733 */ removeHandlers(int index)7734 public Builder removeHandlers(int index) { 7735 if (handlersBuilder_ == null) { 7736 ensureHandlersIsMutable(); 7737 handlers_.remove(index); 7738 onChanged(); 7739 } else { 7740 handlersBuilder_.remove(index); 7741 } 7742 return this; 7743 } 7744 /** 7745 * 7746 * 7747 * <pre> 7748 * An ordered list of URL-matching patterns that should be applied to incoming 7749 * requests. The first matching URL handles the request and other request 7750 * handlers are not attempted. 7751 * Only returned in `GET` requests if `view=FULL` is set. 7752 * </pre> 7753 * 7754 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7755 */ getHandlersBuilder(int index)7756 public com.google.appengine.v1.UrlMap.Builder getHandlersBuilder(int index) { 7757 return getHandlersFieldBuilder().getBuilder(index); 7758 } 7759 /** 7760 * 7761 * 7762 * <pre> 7763 * An ordered list of URL-matching patterns that should be applied to incoming 7764 * requests. The first matching URL handles the request and other request 7765 * handlers are not attempted. 7766 * Only returned in `GET` requests if `view=FULL` is set. 7767 * </pre> 7768 * 7769 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7770 */ getHandlersOrBuilder(int index)7771 public com.google.appengine.v1.UrlMapOrBuilder getHandlersOrBuilder(int index) { 7772 if (handlersBuilder_ == null) { 7773 return handlers_.get(index); 7774 } else { 7775 return handlersBuilder_.getMessageOrBuilder(index); 7776 } 7777 } 7778 /** 7779 * 7780 * 7781 * <pre> 7782 * An ordered list of URL-matching patterns that should be applied to incoming 7783 * requests. The first matching URL handles the request and other request 7784 * handlers are not attempted. 7785 * Only returned in `GET` requests if `view=FULL` is set. 7786 * </pre> 7787 * 7788 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7789 */ 7790 public java.util.List<? extends com.google.appengine.v1.UrlMapOrBuilder> getHandlersOrBuilderList()7791 getHandlersOrBuilderList() { 7792 if (handlersBuilder_ != null) { 7793 return handlersBuilder_.getMessageOrBuilderList(); 7794 } else { 7795 return java.util.Collections.unmodifiableList(handlers_); 7796 } 7797 } 7798 /** 7799 * 7800 * 7801 * <pre> 7802 * An ordered list of URL-matching patterns that should be applied to incoming 7803 * requests. The first matching URL handles the request and other request 7804 * handlers are not attempted. 7805 * Only returned in `GET` requests if `view=FULL` is set. 7806 * </pre> 7807 * 7808 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7809 */ addHandlersBuilder()7810 public com.google.appengine.v1.UrlMap.Builder addHandlersBuilder() { 7811 return getHandlersFieldBuilder() 7812 .addBuilder(com.google.appengine.v1.UrlMap.getDefaultInstance()); 7813 } 7814 /** 7815 * 7816 * 7817 * <pre> 7818 * An ordered list of URL-matching patterns that should be applied to incoming 7819 * requests. The first matching URL handles the request and other request 7820 * handlers are not attempted. 7821 * Only returned in `GET` requests if `view=FULL` is set. 7822 * </pre> 7823 * 7824 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7825 */ addHandlersBuilder(int index)7826 public com.google.appengine.v1.UrlMap.Builder addHandlersBuilder(int index) { 7827 return getHandlersFieldBuilder() 7828 .addBuilder(index, com.google.appengine.v1.UrlMap.getDefaultInstance()); 7829 } 7830 /** 7831 * 7832 * 7833 * <pre> 7834 * An ordered list of URL-matching patterns that should be applied to incoming 7835 * requests. The first matching URL handles the request and other request 7836 * handlers are not attempted. 7837 * Only returned in `GET` requests if `view=FULL` is set. 7838 * </pre> 7839 * 7840 * <code>repeated .google.appengine.v1.UrlMap handlers = 100;</code> 7841 */ getHandlersBuilderList()7842 public java.util.List<com.google.appengine.v1.UrlMap.Builder> getHandlersBuilderList() { 7843 return getHandlersFieldBuilder().getBuilderList(); 7844 } 7845 7846 private com.google.protobuf.RepeatedFieldBuilderV3< 7847 com.google.appengine.v1.UrlMap, 7848 com.google.appengine.v1.UrlMap.Builder, 7849 com.google.appengine.v1.UrlMapOrBuilder> getHandlersFieldBuilder()7850 getHandlersFieldBuilder() { 7851 if (handlersBuilder_ == null) { 7852 handlersBuilder_ = 7853 new com.google.protobuf.RepeatedFieldBuilderV3< 7854 com.google.appengine.v1.UrlMap, 7855 com.google.appengine.v1.UrlMap.Builder, 7856 com.google.appengine.v1.UrlMapOrBuilder>( 7857 handlers_, ((bitField0_ & 0x01000000) != 0), getParentForChildren(), isClean()); 7858 handlers_ = null; 7859 } 7860 return handlersBuilder_; 7861 } 7862 7863 private java.util.List<com.google.appengine.v1.ErrorHandler> errorHandlers_ = 7864 java.util.Collections.emptyList(); 7865 ensureErrorHandlersIsMutable()7866 private void ensureErrorHandlersIsMutable() { 7867 if (!((bitField0_ & 0x02000000) != 0)) { 7868 errorHandlers_ = 7869 new java.util.ArrayList<com.google.appengine.v1.ErrorHandler>(errorHandlers_); 7870 bitField0_ |= 0x02000000; 7871 } 7872 } 7873 7874 private com.google.protobuf.RepeatedFieldBuilderV3< 7875 com.google.appengine.v1.ErrorHandler, 7876 com.google.appengine.v1.ErrorHandler.Builder, 7877 com.google.appengine.v1.ErrorHandlerOrBuilder> 7878 errorHandlersBuilder_; 7879 7880 /** 7881 * 7882 * 7883 * <pre> 7884 * Custom static error pages. Limited to 10KB per page. 7885 * Only returned in `GET` requests if `view=FULL` is set. 7886 * </pre> 7887 * 7888 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 7889 */ getErrorHandlersList()7890 public java.util.List<com.google.appengine.v1.ErrorHandler> getErrorHandlersList() { 7891 if (errorHandlersBuilder_ == null) { 7892 return java.util.Collections.unmodifiableList(errorHandlers_); 7893 } else { 7894 return errorHandlersBuilder_.getMessageList(); 7895 } 7896 } 7897 /** 7898 * 7899 * 7900 * <pre> 7901 * Custom static error pages. Limited to 10KB per page. 7902 * Only returned in `GET` requests if `view=FULL` is set. 7903 * </pre> 7904 * 7905 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 7906 */ getErrorHandlersCount()7907 public int getErrorHandlersCount() { 7908 if (errorHandlersBuilder_ == null) { 7909 return errorHandlers_.size(); 7910 } else { 7911 return errorHandlersBuilder_.getCount(); 7912 } 7913 } 7914 /** 7915 * 7916 * 7917 * <pre> 7918 * Custom static error pages. Limited to 10KB per page. 7919 * Only returned in `GET` requests if `view=FULL` is set. 7920 * </pre> 7921 * 7922 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 7923 */ getErrorHandlers(int index)7924 public com.google.appengine.v1.ErrorHandler getErrorHandlers(int index) { 7925 if (errorHandlersBuilder_ == null) { 7926 return errorHandlers_.get(index); 7927 } else { 7928 return errorHandlersBuilder_.getMessage(index); 7929 } 7930 } 7931 /** 7932 * 7933 * 7934 * <pre> 7935 * Custom static error pages. Limited to 10KB per page. 7936 * Only returned in `GET` requests if `view=FULL` is set. 7937 * </pre> 7938 * 7939 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 7940 */ setErrorHandlers(int index, com.google.appengine.v1.ErrorHandler value)7941 public Builder setErrorHandlers(int index, com.google.appengine.v1.ErrorHandler value) { 7942 if (errorHandlersBuilder_ == null) { 7943 if (value == null) { 7944 throw new NullPointerException(); 7945 } 7946 ensureErrorHandlersIsMutable(); 7947 errorHandlers_.set(index, value); 7948 onChanged(); 7949 } else { 7950 errorHandlersBuilder_.setMessage(index, value); 7951 } 7952 return this; 7953 } 7954 /** 7955 * 7956 * 7957 * <pre> 7958 * Custom static error pages. Limited to 10KB per page. 7959 * Only returned in `GET` requests if `view=FULL` is set. 7960 * </pre> 7961 * 7962 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 7963 */ setErrorHandlers( int index, com.google.appengine.v1.ErrorHandler.Builder builderForValue)7964 public Builder setErrorHandlers( 7965 int index, com.google.appengine.v1.ErrorHandler.Builder builderForValue) { 7966 if (errorHandlersBuilder_ == null) { 7967 ensureErrorHandlersIsMutable(); 7968 errorHandlers_.set(index, builderForValue.build()); 7969 onChanged(); 7970 } else { 7971 errorHandlersBuilder_.setMessage(index, builderForValue.build()); 7972 } 7973 return this; 7974 } 7975 /** 7976 * 7977 * 7978 * <pre> 7979 * Custom static error pages. Limited to 10KB per page. 7980 * Only returned in `GET` requests if `view=FULL` is set. 7981 * </pre> 7982 * 7983 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 7984 */ addErrorHandlers(com.google.appengine.v1.ErrorHandler value)7985 public Builder addErrorHandlers(com.google.appengine.v1.ErrorHandler value) { 7986 if (errorHandlersBuilder_ == null) { 7987 if (value == null) { 7988 throw new NullPointerException(); 7989 } 7990 ensureErrorHandlersIsMutable(); 7991 errorHandlers_.add(value); 7992 onChanged(); 7993 } else { 7994 errorHandlersBuilder_.addMessage(value); 7995 } 7996 return this; 7997 } 7998 /** 7999 * 8000 * 8001 * <pre> 8002 * Custom static error pages. Limited to 10KB per page. 8003 * Only returned in `GET` requests if `view=FULL` is set. 8004 * </pre> 8005 * 8006 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8007 */ addErrorHandlers(int index, com.google.appengine.v1.ErrorHandler value)8008 public Builder addErrorHandlers(int index, com.google.appengine.v1.ErrorHandler value) { 8009 if (errorHandlersBuilder_ == null) { 8010 if (value == null) { 8011 throw new NullPointerException(); 8012 } 8013 ensureErrorHandlersIsMutable(); 8014 errorHandlers_.add(index, value); 8015 onChanged(); 8016 } else { 8017 errorHandlersBuilder_.addMessage(index, value); 8018 } 8019 return this; 8020 } 8021 /** 8022 * 8023 * 8024 * <pre> 8025 * Custom static error pages. Limited to 10KB per page. 8026 * Only returned in `GET` requests if `view=FULL` is set. 8027 * </pre> 8028 * 8029 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8030 */ addErrorHandlers(com.google.appengine.v1.ErrorHandler.Builder builderForValue)8031 public Builder addErrorHandlers(com.google.appengine.v1.ErrorHandler.Builder builderForValue) { 8032 if (errorHandlersBuilder_ == null) { 8033 ensureErrorHandlersIsMutable(); 8034 errorHandlers_.add(builderForValue.build()); 8035 onChanged(); 8036 } else { 8037 errorHandlersBuilder_.addMessage(builderForValue.build()); 8038 } 8039 return this; 8040 } 8041 /** 8042 * 8043 * 8044 * <pre> 8045 * Custom static error pages. Limited to 10KB per page. 8046 * Only returned in `GET` requests if `view=FULL` is set. 8047 * </pre> 8048 * 8049 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8050 */ addErrorHandlers( int index, com.google.appengine.v1.ErrorHandler.Builder builderForValue)8051 public Builder addErrorHandlers( 8052 int index, com.google.appengine.v1.ErrorHandler.Builder builderForValue) { 8053 if (errorHandlersBuilder_ == null) { 8054 ensureErrorHandlersIsMutable(); 8055 errorHandlers_.add(index, builderForValue.build()); 8056 onChanged(); 8057 } else { 8058 errorHandlersBuilder_.addMessage(index, builderForValue.build()); 8059 } 8060 return this; 8061 } 8062 /** 8063 * 8064 * 8065 * <pre> 8066 * Custom static error pages. Limited to 10KB per page. 8067 * Only returned in `GET` requests if `view=FULL` is set. 8068 * </pre> 8069 * 8070 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8071 */ addAllErrorHandlers( java.lang.Iterable<? extends com.google.appengine.v1.ErrorHandler> values)8072 public Builder addAllErrorHandlers( 8073 java.lang.Iterable<? extends com.google.appengine.v1.ErrorHandler> values) { 8074 if (errorHandlersBuilder_ == null) { 8075 ensureErrorHandlersIsMutable(); 8076 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorHandlers_); 8077 onChanged(); 8078 } else { 8079 errorHandlersBuilder_.addAllMessages(values); 8080 } 8081 return this; 8082 } 8083 /** 8084 * 8085 * 8086 * <pre> 8087 * Custom static error pages. Limited to 10KB per page. 8088 * Only returned in `GET` requests if `view=FULL` is set. 8089 * </pre> 8090 * 8091 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8092 */ clearErrorHandlers()8093 public Builder clearErrorHandlers() { 8094 if (errorHandlersBuilder_ == null) { 8095 errorHandlers_ = java.util.Collections.emptyList(); 8096 bitField0_ = (bitField0_ & ~0x02000000); 8097 onChanged(); 8098 } else { 8099 errorHandlersBuilder_.clear(); 8100 } 8101 return this; 8102 } 8103 /** 8104 * 8105 * 8106 * <pre> 8107 * Custom static error pages. Limited to 10KB per page. 8108 * Only returned in `GET` requests if `view=FULL` is set. 8109 * </pre> 8110 * 8111 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8112 */ removeErrorHandlers(int index)8113 public Builder removeErrorHandlers(int index) { 8114 if (errorHandlersBuilder_ == null) { 8115 ensureErrorHandlersIsMutable(); 8116 errorHandlers_.remove(index); 8117 onChanged(); 8118 } else { 8119 errorHandlersBuilder_.remove(index); 8120 } 8121 return this; 8122 } 8123 /** 8124 * 8125 * 8126 * <pre> 8127 * Custom static error pages. Limited to 10KB per page. 8128 * Only returned in `GET` requests if `view=FULL` is set. 8129 * </pre> 8130 * 8131 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8132 */ getErrorHandlersBuilder(int index)8133 public com.google.appengine.v1.ErrorHandler.Builder getErrorHandlersBuilder(int index) { 8134 return getErrorHandlersFieldBuilder().getBuilder(index); 8135 } 8136 /** 8137 * 8138 * 8139 * <pre> 8140 * Custom static error pages. Limited to 10KB per page. 8141 * Only returned in `GET` requests if `view=FULL` is set. 8142 * </pre> 8143 * 8144 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8145 */ getErrorHandlersOrBuilder(int index)8146 public com.google.appengine.v1.ErrorHandlerOrBuilder getErrorHandlersOrBuilder(int index) { 8147 if (errorHandlersBuilder_ == null) { 8148 return errorHandlers_.get(index); 8149 } else { 8150 return errorHandlersBuilder_.getMessageOrBuilder(index); 8151 } 8152 } 8153 /** 8154 * 8155 * 8156 * <pre> 8157 * Custom static error pages. Limited to 10KB per page. 8158 * Only returned in `GET` requests if `view=FULL` is set. 8159 * </pre> 8160 * 8161 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8162 */ 8163 public java.util.List<? extends com.google.appengine.v1.ErrorHandlerOrBuilder> getErrorHandlersOrBuilderList()8164 getErrorHandlersOrBuilderList() { 8165 if (errorHandlersBuilder_ != null) { 8166 return errorHandlersBuilder_.getMessageOrBuilderList(); 8167 } else { 8168 return java.util.Collections.unmodifiableList(errorHandlers_); 8169 } 8170 } 8171 /** 8172 * 8173 * 8174 * <pre> 8175 * Custom static error pages. Limited to 10KB per page. 8176 * Only returned in `GET` requests if `view=FULL` is set. 8177 * </pre> 8178 * 8179 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8180 */ addErrorHandlersBuilder()8181 public com.google.appengine.v1.ErrorHandler.Builder addErrorHandlersBuilder() { 8182 return getErrorHandlersFieldBuilder() 8183 .addBuilder(com.google.appengine.v1.ErrorHandler.getDefaultInstance()); 8184 } 8185 /** 8186 * 8187 * 8188 * <pre> 8189 * Custom static error pages. Limited to 10KB per page. 8190 * Only returned in `GET` requests if `view=FULL` is set. 8191 * </pre> 8192 * 8193 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8194 */ addErrorHandlersBuilder(int index)8195 public com.google.appengine.v1.ErrorHandler.Builder addErrorHandlersBuilder(int index) { 8196 return getErrorHandlersFieldBuilder() 8197 .addBuilder(index, com.google.appengine.v1.ErrorHandler.getDefaultInstance()); 8198 } 8199 /** 8200 * 8201 * 8202 * <pre> 8203 * Custom static error pages. Limited to 10KB per page. 8204 * Only returned in `GET` requests if `view=FULL` is set. 8205 * </pre> 8206 * 8207 * <code>repeated .google.appengine.v1.ErrorHandler error_handlers = 101;</code> 8208 */ 8209 public java.util.List<com.google.appengine.v1.ErrorHandler.Builder> getErrorHandlersBuilderList()8210 getErrorHandlersBuilderList() { 8211 return getErrorHandlersFieldBuilder().getBuilderList(); 8212 } 8213 8214 private com.google.protobuf.RepeatedFieldBuilderV3< 8215 com.google.appengine.v1.ErrorHandler, 8216 com.google.appengine.v1.ErrorHandler.Builder, 8217 com.google.appengine.v1.ErrorHandlerOrBuilder> getErrorHandlersFieldBuilder()8218 getErrorHandlersFieldBuilder() { 8219 if (errorHandlersBuilder_ == null) { 8220 errorHandlersBuilder_ = 8221 new com.google.protobuf.RepeatedFieldBuilderV3< 8222 com.google.appengine.v1.ErrorHandler, 8223 com.google.appengine.v1.ErrorHandler.Builder, 8224 com.google.appengine.v1.ErrorHandlerOrBuilder>( 8225 errorHandlers_, 8226 ((bitField0_ & 0x02000000) != 0), 8227 getParentForChildren(), 8228 isClean()); 8229 errorHandlers_ = null; 8230 } 8231 return errorHandlersBuilder_; 8232 } 8233 8234 private java.util.List<com.google.appengine.v1.Library> libraries_ = 8235 java.util.Collections.emptyList(); 8236 ensureLibrariesIsMutable()8237 private void ensureLibrariesIsMutable() { 8238 if (!((bitField0_ & 0x04000000) != 0)) { 8239 libraries_ = new java.util.ArrayList<com.google.appengine.v1.Library>(libraries_); 8240 bitField0_ |= 0x04000000; 8241 } 8242 } 8243 8244 private com.google.protobuf.RepeatedFieldBuilderV3< 8245 com.google.appengine.v1.Library, 8246 com.google.appengine.v1.Library.Builder, 8247 com.google.appengine.v1.LibraryOrBuilder> 8248 librariesBuilder_; 8249 8250 /** 8251 * 8252 * 8253 * <pre> 8254 * Configuration for third-party Python runtime libraries that are required 8255 * by the application. 8256 * Only returned in `GET` requests if `view=FULL` is set. 8257 * </pre> 8258 * 8259 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8260 */ getLibrariesList()8261 public java.util.List<com.google.appengine.v1.Library> getLibrariesList() { 8262 if (librariesBuilder_ == null) { 8263 return java.util.Collections.unmodifiableList(libraries_); 8264 } else { 8265 return librariesBuilder_.getMessageList(); 8266 } 8267 } 8268 /** 8269 * 8270 * 8271 * <pre> 8272 * Configuration for third-party Python runtime libraries that are required 8273 * by the application. 8274 * Only returned in `GET` requests if `view=FULL` is set. 8275 * </pre> 8276 * 8277 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8278 */ getLibrariesCount()8279 public int getLibrariesCount() { 8280 if (librariesBuilder_ == null) { 8281 return libraries_.size(); 8282 } else { 8283 return librariesBuilder_.getCount(); 8284 } 8285 } 8286 /** 8287 * 8288 * 8289 * <pre> 8290 * Configuration for third-party Python runtime libraries that are required 8291 * by the application. 8292 * Only returned in `GET` requests if `view=FULL` is set. 8293 * </pre> 8294 * 8295 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8296 */ getLibraries(int index)8297 public com.google.appengine.v1.Library getLibraries(int index) { 8298 if (librariesBuilder_ == null) { 8299 return libraries_.get(index); 8300 } else { 8301 return librariesBuilder_.getMessage(index); 8302 } 8303 } 8304 /** 8305 * 8306 * 8307 * <pre> 8308 * Configuration for third-party Python runtime libraries that are required 8309 * by the application. 8310 * Only returned in `GET` requests if `view=FULL` is set. 8311 * </pre> 8312 * 8313 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8314 */ setLibraries(int index, com.google.appengine.v1.Library value)8315 public Builder setLibraries(int index, com.google.appengine.v1.Library value) { 8316 if (librariesBuilder_ == null) { 8317 if (value == null) { 8318 throw new NullPointerException(); 8319 } 8320 ensureLibrariesIsMutable(); 8321 libraries_.set(index, value); 8322 onChanged(); 8323 } else { 8324 librariesBuilder_.setMessage(index, value); 8325 } 8326 return this; 8327 } 8328 /** 8329 * 8330 * 8331 * <pre> 8332 * Configuration for third-party Python runtime libraries that are required 8333 * by the application. 8334 * Only returned in `GET` requests if `view=FULL` is set. 8335 * </pre> 8336 * 8337 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8338 */ setLibraries( int index, com.google.appengine.v1.Library.Builder builderForValue)8339 public Builder setLibraries( 8340 int index, com.google.appengine.v1.Library.Builder builderForValue) { 8341 if (librariesBuilder_ == null) { 8342 ensureLibrariesIsMutable(); 8343 libraries_.set(index, builderForValue.build()); 8344 onChanged(); 8345 } else { 8346 librariesBuilder_.setMessage(index, builderForValue.build()); 8347 } 8348 return this; 8349 } 8350 /** 8351 * 8352 * 8353 * <pre> 8354 * Configuration for third-party Python runtime libraries that are required 8355 * by the application. 8356 * Only returned in `GET` requests if `view=FULL` is set. 8357 * </pre> 8358 * 8359 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8360 */ addLibraries(com.google.appengine.v1.Library value)8361 public Builder addLibraries(com.google.appengine.v1.Library value) { 8362 if (librariesBuilder_ == null) { 8363 if (value == null) { 8364 throw new NullPointerException(); 8365 } 8366 ensureLibrariesIsMutable(); 8367 libraries_.add(value); 8368 onChanged(); 8369 } else { 8370 librariesBuilder_.addMessage(value); 8371 } 8372 return this; 8373 } 8374 /** 8375 * 8376 * 8377 * <pre> 8378 * Configuration for third-party Python runtime libraries that are required 8379 * by the application. 8380 * Only returned in `GET` requests if `view=FULL` is set. 8381 * </pre> 8382 * 8383 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8384 */ addLibraries(int index, com.google.appengine.v1.Library value)8385 public Builder addLibraries(int index, com.google.appengine.v1.Library value) { 8386 if (librariesBuilder_ == null) { 8387 if (value == null) { 8388 throw new NullPointerException(); 8389 } 8390 ensureLibrariesIsMutable(); 8391 libraries_.add(index, value); 8392 onChanged(); 8393 } else { 8394 librariesBuilder_.addMessage(index, value); 8395 } 8396 return this; 8397 } 8398 /** 8399 * 8400 * 8401 * <pre> 8402 * Configuration for third-party Python runtime libraries that are required 8403 * by the application. 8404 * Only returned in `GET` requests if `view=FULL` is set. 8405 * </pre> 8406 * 8407 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8408 */ addLibraries(com.google.appengine.v1.Library.Builder builderForValue)8409 public Builder addLibraries(com.google.appengine.v1.Library.Builder builderForValue) { 8410 if (librariesBuilder_ == null) { 8411 ensureLibrariesIsMutable(); 8412 libraries_.add(builderForValue.build()); 8413 onChanged(); 8414 } else { 8415 librariesBuilder_.addMessage(builderForValue.build()); 8416 } 8417 return this; 8418 } 8419 /** 8420 * 8421 * 8422 * <pre> 8423 * Configuration for third-party Python runtime libraries that are required 8424 * by the application. 8425 * Only returned in `GET` requests if `view=FULL` is set. 8426 * </pre> 8427 * 8428 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8429 */ addLibraries( int index, com.google.appengine.v1.Library.Builder builderForValue)8430 public Builder addLibraries( 8431 int index, com.google.appengine.v1.Library.Builder builderForValue) { 8432 if (librariesBuilder_ == null) { 8433 ensureLibrariesIsMutable(); 8434 libraries_.add(index, builderForValue.build()); 8435 onChanged(); 8436 } else { 8437 librariesBuilder_.addMessage(index, builderForValue.build()); 8438 } 8439 return this; 8440 } 8441 /** 8442 * 8443 * 8444 * <pre> 8445 * Configuration for third-party Python runtime libraries that are required 8446 * by the application. 8447 * Only returned in `GET` requests if `view=FULL` is set. 8448 * </pre> 8449 * 8450 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8451 */ addAllLibraries( java.lang.Iterable<? extends com.google.appengine.v1.Library> values)8452 public Builder addAllLibraries( 8453 java.lang.Iterable<? extends com.google.appengine.v1.Library> values) { 8454 if (librariesBuilder_ == null) { 8455 ensureLibrariesIsMutable(); 8456 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, libraries_); 8457 onChanged(); 8458 } else { 8459 librariesBuilder_.addAllMessages(values); 8460 } 8461 return this; 8462 } 8463 /** 8464 * 8465 * 8466 * <pre> 8467 * Configuration for third-party Python runtime libraries that are required 8468 * by the application. 8469 * Only returned in `GET` requests if `view=FULL` is set. 8470 * </pre> 8471 * 8472 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8473 */ clearLibraries()8474 public Builder clearLibraries() { 8475 if (librariesBuilder_ == null) { 8476 libraries_ = java.util.Collections.emptyList(); 8477 bitField0_ = (bitField0_ & ~0x04000000); 8478 onChanged(); 8479 } else { 8480 librariesBuilder_.clear(); 8481 } 8482 return this; 8483 } 8484 /** 8485 * 8486 * 8487 * <pre> 8488 * Configuration for third-party Python runtime libraries that are required 8489 * by the application. 8490 * Only returned in `GET` requests if `view=FULL` is set. 8491 * </pre> 8492 * 8493 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8494 */ removeLibraries(int index)8495 public Builder removeLibraries(int index) { 8496 if (librariesBuilder_ == null) { 8497 ensureLibrariesIsMutable(); 8498 libraries_.remove(index); 8499 onChanged(); 8500 } else { 8501 librariesBuilder_.remove(index); 8502 } 8503 return this; 8504 } 8505 /** 8506 * 8507 * 8508 * <pre> 8509 * Configuration for third-party Python runtime libraries that are required 8510 * by the application. 8511 * Only returned in `GET` requests if `view=FULL` is set. 8512 * </pre> 8513 * 8514 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8515 */ getLibrariesBuilder(int index)8516 public com.google.appengine.v1.Library.Builder getLibrariesBuilder(int index) { 8517 return getLibrariesFieldBuilder().getBuilder(index); 8518 } 8519 /** 8520 * 8521 * 8522 * <pre> 8523 * Configuration for third-party Python runtime libraries that are required 8524 * by the application. 8525 * Only returned in `GET` requests if `view=FULL` is set. 8526 * </pre> 8527 * 8528 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8529 */ getLibrariesOrBuilder(int index)8530 public com.google.appengine.v1.LibraryOrBuilder getLibrariesOrBuilder(int index) { 8531 if (librariesBuilder_ == null) { 8532 return libraries_.get(index); 8533 } else { 8534 return librariesBuilder_.getMessageOrBuilder(index); 8535 } 8536 } 8537 /** 8538 * 8539 * 8540 * <pre> 8541 * Configuration for third-party Python runtime libraries that are required 8542 * by the application. 8543 * Only returned in `GET` requests if `view=FULL` is set. 8544 * </pre> 8545 * 8546 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8547 */ 8548 public java.util.List<? extends com.google.appengine.v1.LibraryOrBuilder> getLibrariesOrBuilderList()8549 getLibrariesOrBuilderList() { 8550 if (librariesBuilder_ != null) { 8551 return librariesBuilder_.getMessageOrBuilderList(); 8552 } else { 8553 return java.util.Collections.unmodifiableList(libraries_); 8554 } 8555 } 8556 /** 8557 * 8558 * 8559 * <pre> 8560 * Configuration for third-party Python runtime libraries that are required 8561 * by the application. 8562 * Only returned in `GET` requests if `view=FULL` is set. 8563 * </pre> 8564 * 8565 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8566 */ addLibrariesBuilder()8567 public com.google.appengine.v1.Library.Builder addLibrariesBuilder() { 8568 return getLibrariesFieldBuilder() 8569 .addBuilder(com.google.appengine.v1.Library.getDefaultInstance()); 8570 } 8571 /** 8572 * 8573 * 8574 * <pre> 8575 * Configuration for third-party Python runtime libraries that are required 8576 * by the application. 8577 * Only returned in `GET` requests if `view=FULL` is set. 8578 * </pre> 8579 * 8580 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8581 */ addLibrariesBuilder(int index)8582 public com.google.appengine.v1.Library.Builder addLibrariesBuilder(int index) { 8583 return getLibrariesFieldBuilder() 8584 .addBuilder(index, com.google.appengine.v1.Library.getDefaultInstance()); 8585 } 8586 /** 8587 * 8588 * 8589 * <pre> 8590 * Configuration for third-party Python runtime libraries that are required 8591 * by the application. 8592 * Only returned in `GET` requests if `view=FULL` is set. 8593 * </pre> 8594 * 8595 * <code>repeated .google.appengine.v1.Library libraries = 102;</code> 8596 */ getLibrariesBuilderList()8597 public java.util.List<com.google.appengine.v1.Library.Builder> getLibrariesBuilderList() { 8598 return getLibrariesFieldBuilder().getBuilderList(); 8599 } 8600 8601 private com.google.protobuf.RepeatedFieldBuilderV3< 8602 com.google.appengine.v1.Library, 8603 com.google.appengine.v1.Library.Builder, 8604 com.google.appengine.v1.LibraryOrBuilder> getLibrariesFieldBuilder()8605 getLibrariesFieldBuilder() { 8606 if (librariesBuilder_ == null) { 8607 librariesBuilder_ = 8608 new com.google.protobuf.RepeatedFieldBuilderV3< 8609 com.google.appengine.v1.Library, 8610 com.google.appengine.v1.Library.Builder, 8611 com.google.appengine.v1.LibraryOrBuilder>( 8612 libraries_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); 8613 libraries_ = null; 8614 } 8615 return librariesBuilder_; 8616 } 8617 8618 private com.google.appengine.v1.ApiConfigHandler apiConfig_; 8619 private com.google.protobuf.SingleFieldBuilderV3< 8620 com.google.appengine.v1.ApiConfigHandler, 8621 com.google.appengine.v1.ApiConfigHandler.Builder, 8622 com.google.appengine.v1.ApiConfigHandlerOrBuilder> 8623 apiConfigBuilder_; 8624 /** 8625 * 8626 * 8627 * <pre> 8628 * Serving configuration for 8629 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8630 * Only returned in `GET` requests if `view=FULL` is set. 8631 * </pre> 8632 * 8633 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8634 * 8635 * @return Whether the apiConfig field is set. 8636 */ hasApiConfig()8637 public boolean hasApiConfig() { 8638 return ((bitField0_ & 0x08000000) != 0); 8639 } 8640 /** 8641 * 8642 * 8643 * <pre> 8644 * Serving configuration for 8645 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8646 * Only returned in `GET` requests if `view=FULL` is set. 8647 * </pre> 8648 * 8649 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8650 * 8651 * @return The apiConfig. 8652 */ getApiConfig()8653 public com.google.appengine.v1.ApiConfigHandler getApiConfig() { 8654 if (apiConfigBuilder_ == null) { 8655 return apiConfig_ == null 8656 ? com.google.appengine.v1.ApiConfigHandler.getDefaultInstance() 8657 : apiConfig_; 8658 } else { 8659 return apiConfigBuilder_.getMessage(); 8660 } 8661 } 8662 /** 8663 * 8664 * 8665 * <pre> 8666 * Serving configuration for 8667 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8668 * Only returned in `GET` requests if `view=FULL` is set. 8669 * </pre> 8670 * 8671 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8672 */ setApiConfig(com.google.appengine.v1.ApiConfigHandler value)8673 public Builder setApiConfig(com.google.appengine.v1.ApiConfigHandler value) { 8674 if (apiConfigBuilder_ == null) { 8675 if (value == null) { 8676 throw new NullPointerException(); 8677 } 8678 apiConfig_ = value; 8679 } else { 8680 apiConfigBuilder_.setMessage(value); 8681 } 8682 bitField0_ |= 0x08000000; 8683 onChanged(); 8684 return this; 8685 } 8686 /** 8687 * 8688 * 8689 * <pre> 8690 * Serving configuration for 8691 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8692 * Only returned in `GET` requests if `view=FULL` is set. 8693 * </pre> 8694 * 8695 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8696 */ setApiConfig(com.google.appengine.v1.ApiConfigHandler.Builder builderForValue)8697 public Builder setApiConfig(com.google.appengine.v1.ApiConfigHandler.Builder builderForValue) { 8698 if (apiConfigBuilder_ == null) { 8699 apiConfig_ = builderForValue.build(); 8700 } else { 8701 apiConfigBuilder_.setMessage(builderForValue.build()); 8702 } 8703 bitField0_ |= 0x08000000; 8704 onChanged(); 8705 return this; 8706 } 8707 /** 8708 * 8709 * 8710 * <pre> 8711 * Serving configuration for 8712 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8713 * Only returned in `GET` requests if `view=FULL` is set. 8714 * </pre> 8715 * 8716 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8717 */ mergeApiConfig(com.google.appengine.v1.ApiConfigHandler value)8718 public Builder mergeApiConfig(com.google.appengine.v1.ApiConfigHandler value) { 8719 if (apiConfigBuilder_ == null) { 8720 if (((bitField0_ & 0x08000000) != 0) 8721 && apiConfig_ != null 8722 && apiConfig_ != com.google.appengine.v1.ApiConfigHandler.getDefaultInstance()) { 8723 getApiConfigBuilder().mergeFrom(value); 8724 } else { 8725 apiConfig_ = value; 8726 } 8727 } else { 8728 apiConfigBuilder_.mergeFrom(value); 8729 } 8730 bitField0_ |= 0x08000000; 8731 onChanged(); 8732 return this; 8733 } 8734 /** 8735 * 8736 * 8737 * <pre> 8738 * Serving configuration for 8739 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8740 * Only returned in `GET` requests if `view=FULL` is set. 8741 * </pre> 8742 * 8743 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8744 */ clearApiConfig()8745 public Builder clearApiConfig() { 8746 bitField0_ = (bitField0_ & ~0x08000000); 8747 apiConfig_ = null; 8748 if (apiConfigBuilder_ != null) { 8749 apiConfigBuilder_.dispose(); 8750 apiConfigBuilder_ = null; 8751 } 8752 onChanged(); 8753 return this; 8754 } 8755 /** 8756 * 8757 * 8758 * <pre> 8759 * Serving configuration for 8760 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8761 * Only returned in `GET` requests if `view=FULL` is set. 8762 * </pre> 8763 * 8764 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8765 */ getApiConfigBuilder()8766 public com.google.appengine.v1.ApiConfigHandler.Builder getApiConfigBuilder() { 8767 bitField0_ |= 0x08000000; 8768 onChanged(); 8769 return getApiConfigFieldBuilder().getBuilder(); 8770 } 8771 /** 8772 * 8773 * 8774 * <pre> 8775 * Serving configuration for 8776 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8777 * Only returned in `GET` requests if `view=FULL` is set. 8778 * </pre> 8779 * 8780 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8781 */ getApiConfigOrBuilder()8782 public com.google.appengine.v1.ApiConfigHandlerOrBuilder getApiConfigOrBuilder() { 8783 if (apiConfigBuilder_ != null) { 8784 return apiConfigBuilder_.getMessageOrBuilder(); 8785 } else { 8786 return apiConfig_ == null 8787 ? com.google.appengine.v1.ApiConfigHandler.getDefaultInstance() 8788 : apiConfig_; 8789 } 8790 } 8791 /** 8792 * 8793 * 8794 * <pre> 8795 * Serving configuration for 8796 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). 8797 * Only returned in `GET` requests if `view=FULL` is set. 8798 * </pre> 8799 * 8800 * <code>.google.appengine.v1.ApiConfigHandler api_config = 103;</code> 8801 */ 8802 private com.google.protobuf.SingleFieldBuilderV3< 8803 com.google.appengine.v1.ApiConfigHandler, 8804 com.google.appengine.v1.ApiConfigHandler.Builder, 8805 com.google.appengine.v1.ApiConfigHandlerOrBuilder> getApiConfigFieldBuilder()8806 getApiConfigFieldBuilder() { 8807 if (apiConfigBuilder_ == null) { 8808 apiConfigBuilder_ = 8809 new com.google.protobuf.SingleFieldBuilderV3< 8810 com.google.appengine.v1.ApiConfigHandler, 8811 com.google.appengine.v1.ApiConfigHandler.Builder, 8812 com.google.appengine.v1.ApiConfigHandlerOrBuilder>( 8813 getApiConfig(), getParentForChildren(), isClean()); 8814 apiConfig_ = null; 8815 } 8816 return apiConfigBuilder_; 8817 } 8818 8819 private com.google.protobuf.MapField<java.lang.String, java.lang.String> envVariables_; 8820 8821 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetEnvVariables()8822 internalGetEnvVariables() { 8823 if (envVariables_ == null) { 8824 return com.google.protobuf.MapField.emptyMapField( 8825 EnvVariablesDefaultEntryHolder.defaultEntry); 8826 } 8827 return envVariables_; 8828 } 8829 8830 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableEnvVariables()8831 internalGetMutableEnvVariables() { 8832 if (envVariables_ == null) { 8833 envVariables_ = 8834 com.google.protobuf.MapField.newMapField(EnvVariablesDefaultEntryHolder.defaultEntry); 8835 } 8836 if (!envVariables_.isMutable()) { 8837 envVariables_ = envVariables_.copy(); 8838 } 8839 bitField0_ |= 0x10000000; 8840 onChanged(); 8841 return envVariables_; 8842 } 8843 getEnvVariablesCount()8844 public int getEnvVariablesCount() { 8845 return internalGetEnvVariables().getMap().size(); 8846 } 8847 /** 8848 * 8849 * 8850 * <pre> 8851 * Environment variables available to the application. 8852 * Only returned in `GET` requests if `view=FULL` is set. 8853 * </pre> 8854 * 8855 * <code>map<string, string> env_variables = 104;</code> 8856 */ 8857 @java.lang.Override containsEnvVariables(java.lang.String key)8858 public boolean containsEnvVariables(java.lang.String key) { 8859 if (key == null) { 8860 throw new NullPointerException("map key"); 8861 } 8862 return internalGetEnvVariables().getMap().containsKey(key); 8863 } 8864 /** Use {@link #getEnvVariablesMap()} instead. */ 8865 @java.lang.Override 8866 @java.lang.Deprecated getEnvVariables()8867 public java.util.Map<java.lang.String, java.lang.String> getEnvVariables() { 8868 return getEnvVariablesMap(); 8869 } 8870 /** 8871 * 8872 * 8873 * <pre> 8874 * Environment variables available to the application. 8875 * Only returned in `GET` requests if `view=FULL` is set. 8876 * </pre> 8877 * 8878 * <code>map<string, string> env_variables = 104;</code> 8879 */ 8880 @java.lang.Override getEnvVariablesMap()8881 public java.util.Map<java.lang.String, java.lang.String> getEnvVariablesMap() { 8882 return internalGetEnvVariables().getMap(); 8883 } 8884 /** 8885 * 8886 * 8887 * <pre> 8888 * Environment variables available to the application. 8889 * Only returned in `GET` requests if `view=FULL` is set. 8890 * </pre> 8891 * 8892 * <code>map<string, string> env_variables = 104;</code> 8893 */ 8894 @java.lang.Override getEnvVariablesOrDefault( java.lang.String key, java.lang.String defaultValue)8895 public /* nullable */ java.lang.String getEnvVariablesOrDefault( 8896 java.lang.String key, 8897 /* nullable */ 8898 java.lang.String defaultValue) { 8899 if (key == null) { 8900 throw new NullPointerException("map key"); 8901 } 8902 java.util.Map<java.lang.String, java.lang.String> map = internalGetEnvVariables().getMap(); 8903 return map.containsKey(key) ? map.get(key) : defaultValue; 8904 } 8905 /** 8906 * 8907 * 8908 * <pre> 8909 * Environment variables available to the application. 8910 * Only returned in `GET` requests if `view=FULL` is set. 8911 * </pre> 8912 * 8913 * <code>map<string, string> env_variables = 104;</code> 8914 */ 8915 @java.lang.Override getEnvVariablesOrThrow(java.lang.String key)8916 public java.lang.String getEnvVariablesOrThrow(java.lang.String key) { 8917 if (key == null) { 8918 throw new NullPointerException("map key"); 8919 } 8920 java.util.Map<java.lang.String, java.lang.String> map = internalGetEnvVariables().getMap(); 8921 if (!map.containsKey(key)) { 8922 throw new java.lang.IllegalArgumentException(); 8923 } 8924 return map.get(key); 8925 } 8926 clearEnvVariables()8927 public Builder clearEnvVariables() { 8928 bitField0_ = (bitField0_ & ~0x10000000); 8929 internalGetMutableEnvVariables().getMutableMap().clear(); 8930 return this; 8931 } 8932 /** 8933 * 8934 * 8935 * <pre> 8936 * Environment variables available to the application. 8937 * Only returned in `GET` requests if `view=FULL` is set. 8938 * </pre> 8939 * 8940 * <code>map<string, string> env_variables = 104;</code> 8941 */ removeEnvVariables(java.lang.String key)8942 public Builder removeEnvVariables(java.lang.String key) { 8943 if (key == null) { 8944 throw new NullPointerException("map key"); 8945 } 8946 internalGetMutableEnvVariables().getMutableMap().remove(key); 8947 return this; 8948 } 8949 /** Use alternate mutation accessors instead. */ 8950 @java.lang.Deprecated getMutableEnvVariables()8951 public java.util.Map<java.lang.String, java.lang.String> getMutableEnvVariables() { 8952 bitField0_ |= 0x10000000; 8953 return internalGetMutableEnvVariables().getMutableMap(); 8954 } 8955 /** 8956 * 8957 * 8958 * <pre> 8959 * Environment variables available to the application. 8960 * Only returned in `GET` requests if `view=FULL` is set. 8961 * </pre> 8962 * 8963 * <code>map<string, string> env_variables = 104;</code> 8964 */ putEnvVariables(java.lang.String key, java.lang.String value)8965 public Builder putEnvVariables(java.lang.String key, java.lang.String value) { 8966 if (key == null) { 8967 throw new NullPointerException("map key"); 8968 } 8969 if (value == null) { 8970 throw new NullPointerException("map value"); 8971 } 8972 internalGetMutableEnvVariables().getMutableMap().put(key, value); 8973 bitField0_ |= 0x10000000; 8974 return this; 8975 } 8976 /** 8977 * 8978 * 8979 * <pre> 8980 * Environment variables available to the application. 8981 * Only returned in `GET` requests if `view=FULL` is set. 8982 * </pre> 8983 * 8984 * <code>map<string, string> env_variables = 104;</code> 8985 */ putAllEnvVariables(java.util.Map<java.lang.String, java.lang.String> values)8986 public Builder putAllEnvVariables(java.util.Map<java.lang.String, java.lang.String> values) { 8987 internalGetMutableEnvVariables().getMutableMap().putAll(values); 8988 bitField0_ |= 0x10000000; 8989 return this; 8990 } 8991 8992 private com.google.protobuf.MapField<java.lang.String, java.lang.String> buildEnvVariables_; 8993 8994 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetBuildEnvVariables()8995 internalGetBuildEnvVariables() { 8996 if (buildEnvVariables_ == null) { 8997 return com.google.protobuf.MapField.emptyMapField( 8998 BuildEnvVariablesDefaultEntryHolder.defaultEntry); 8999 } 9000 return buildEnvVariables_; 9001 } 9002 9003 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableBuildEnvVariables()9004 internalGetMutableBuildEnvVariables() { 9005 if (buildEnvVariables_ == null) { 9006 buildEnvVariables_ = 9007 com.google.protobuf.MapField.newMapField( 9008 BuildEnvVariablesDefaultEntryHolder.defaultEntry); 9009 } 9010 if (!buildEnvVariables_.isMutable()) { 9011 buildEnvVariables_ = buildEnvVariables_.copy(); 9012 } 9013 bitField0_ |= 0x20000000; 9014 onChanged(); 9015 return buildEnvVariables_; 9016 } 9017 getBuildEnvVariablesCount()9018 public int getBuildEnvVariablesCount() { 9019 return internalGetBuildEnvVariables().getMap().size(); 9020 } 9021 /** 9022 * 9023 * 9024 * <pre> 9025 * Environment variables available to the build environment. 9026 * Only returned in `GET` requests if `view=FULL` is set. 9027 * </pre> 9028 * 9029 * <code>map<string, string> build_env_variables = 125;</code> 9030 */ 9031 @java.lang.Override containsBuildEnvVariables(java.lang.String key)9032 public boolean containsBuildEnvVariables(java.lang.String key) { 9033 if (key == null) { 9034 throw new NullPointerException("map key"); 9035 } 9036 return internalGetBuildEnvVariables().getMap().containsKey(key); 9037 } 9038 /** Use {@link #getBuildEnvVariablesMap()} instead. */ 9039 @java.lang.Override 9040 @java.lang.Deprecated getBuildEnvVariables()9041 public java.util.Map<java.lang.String, java.lang.String> getBuildEnvVariables() { 9042 return getBuildEnvVariablesMap(); 9043 } 9044 /** 9045 * 9046 * 9047 * <pre> 9048 * Environment variables available to the build environment. 9049 * Only returned in `GET` requests if `view=FULL` is set. 9050 * </pre> 9051 * 9052 * <code>map<string, string> build_env_variables = 125;</code> 9053 */ 9054 @java.lang.Override getBuildEnvVariablesMap()9055 public java.util.Map<java.lang.String, java.lang.String> getBuildEnvVariablesMap() { 9056 return internalGetBuildEnvVariables().getMap(); 9057 } 9058 /** 9059 * 9060 * 9061 * <pre> 9062 * Environment variables available to the build environment. 9063 * Only returned in `GET` requests if `view=FULL` is set. 9064 * </pre> 9065 * 9066 * <code>map<string, string> build_env_variables = 125;</code> 9067 */ 9068 @java.lang.Override getBuildEnvVariablesOrDefault( java.lang.String key, java.lang.String defaultValue)9069 public /* nullable */ java.lang.String getBuildEnvVariablesOrDefault( 9070 java.lang.String key, 9071 /* nullable */ 9072 java.lang.String defaultValue) { 9073 if (key == null) { 9074 throw new NullPointerException("map key"); 9075 } 9076 java.util.Map<java.lang.String, java.lang.String> map = 9077 internalGetBuildEnvVariables().getMap(); 9078 return map.containsKey(key) ? map.get(key) : defaultValue; 9079 } 9080 /** 9081 * 9082 * 9083 * <pre> 9084 * Environment variables available to the build environment. 9085 * Only returned in `GET` requests if `view=FULL` is set. 9086 * </pre> 9087 * 9088 * <code>map<string, string> build_env_variables = 125;</code> 9089 */ 9090 @java.lang.Override getBuildEnvVariablesOrThrow(java.lang.String key)9091 public java.lang.String getBuildEnvVariablesOrThrow(java.lang.String key) { 9092 if (key == null) { 9093 throw new NullPointerException("map key"); 9094 } 9095 java.util.Map<java.lang.String, java.lang.String> map = 9096 internalGetBuildEnvVariables().getMap(); 9097 if (!map.containsKey(key)) { 9098 throw new java.lang.IllegalArgumentException(); 9099 } 9100 return map.get(key); 9101 } 9102 clearBuildEnvVariables()9103 public Builder clearBuildEnvVariables() { 9104 bitField0_ = (bitField0_ & ~0x20000000); 9105 internalGetMutableBuildEnvVariables().getMutableMap().clear(); 9106 return this; 9107 } 9108 /** 9109 * 9110 * 9111 * <pre> 9112 * Environment variables available to the build environment. 9113 * Only returned in `GET` requests if `view=FULL` is set. 9114 * </pre> 9115 * 9116 * <code>map<string, string> build_env_variables = 125;</code> 9117 */ removeBuildEnvVariables(java.lang.String key)9118 public Builder removeBuildEnvVariables(java.lang.String key) { 9119 if (key == null) { 9120 throw new NullPointerException("map key"); 9121 } 9122 internalGetMutableBuildEnvVariables().getMutableMap().remove(key); 9123 return this; 9124 } 9125 /** Use alternate mutation accessors instead. */ 9126 @java.lang.Deprecated getMutableBuildEnvVariables()9127 public java.util.Map<java.lang.String, java.lang.String> getMutableBuildEnvVariables() { 9128 bitField0_ |= 0x20000000; 9129 return internalGetMutableBuildEnvVariables().getMutableMap(); 9130 } 9131 /** 9132 * 9133 * 9134 * <pre> 9135 * Environment variables available to the build environment. 9136 * Only returned in `GET` requests if `view=FULL` is set. 9137 * </pre> 9138 * 9139 * <code>map<string, string> build_env_variables = 125;</code> 9140 */ putBuildEnvVariables(java.lang.String key, java.lang.String value)9141 public Builder putBuildEnvVariables(java.lang.String key, java.lang.String value) { 9142 if (key == null) { 9143 throw new NullPointerException("map key"); 9144 } 9145 if (value == null) { 9146 throw new NullPointerException("map value"); 9147 } 9148 internalGetMutableBuildEnvVariables().getMutableMap().put(key, value); 9149 bitField0_ |= 0x20000000; 9150 return this; 9151 } 9152 /** 9153 * 9154 * 9155 * <pre> 9156 * Environment variables available to the build environment. 9157 * Only returned in `GET` requests if `view=FULL` is set. 9158 * </pre> 9159 * 9160 * <code>map<string, string> build_env_variables = 125;</code> 9161 */ putAllBuildEnvVariables( java.util.Map<java.lang.String, java.lang.String> values)9162 public Builder putAllBuildEnvVariables( 9163 java.util.Map<java.lang.String, java.lang.String> values) { 9164 internalGetMutableBuildEnvVariables().getMutableMap().putAll(values); 9165 bitField0_ |= 0x20000000; 9166 return this; 9167 } 9168 9169 private com.google.protobuf.Duration defaultExpiration_; 9170 private com.google.protobuf.SingleFieldBuilderV3< 9171 com.google.protobuf.Duration, 9172 com.google.protobuf.Duration.Builder, 9173 com.google.protobuf.DurationOrBuilder> 9174 defaultExpirationBuilder_; 9175 /** 9176 * 9177 * 9178 * <pre> 9179 * Duration that static files should be cached by web proxies and browsers. 9180 * Only applicable if the corresponding 9181 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9182 * does not specify its own expiration time. 9183 * Only returned in `GET` requests if `view=FULL` is set. 9184 * </pre> 9185 * 9186 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9187 * 9188 * @return Whether the defaultExpiration field is set. 9189 */ hasDefaultExpiration()9190 public boolean hasDefaultExpiration() { 9191 return ((bitField0_ & 0x40000000) != 0); 9192 } 9193 /** 9194 * 9195 * 9196 * <pre> 9197 * Duration that static files should be cached by web proxies and browsers. 9198 * Only applicable if the corresponding 9199 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9200 * does not specify its own expiration time. 9201 * Only returned in `GET` requests if `view=FULL` is set. 9202 * </pre> 9203 * 9204 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9205 * 9206 * @return The defaultExpiration. 9207 */ getDefaultExpiration()9208 public com.google.protobuf.Duration getDefaultExpiration() { 9209 if (defaultExpirationBuilder_ == null) { 9210 return defaultExpiration_ == null 9211 ? com.google.protobuf.Duration.getDefaultInstance() 9212 : defaultExpiration_; 9213 } else { 9214 return defaultExpirationBuilder_.getMessage(); 9215 } 9216 } 9217 /** 9218 * 9219 * 9220 * <pre> 9221 * Duration that static files should be cached by web proxies and browsers. 9222 * Only applicable if the corresponding 9223 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9224 * does not specify its own expiration time. 9225 * Only returned in `GET` requests if `view=FULL` is set. 9226 * </pre> 9227 * 9228 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9229 */ setDefaultExpiration(com.google.protobuf.Duration value)9230 public Builder setDefaultExpiration(com.google.protobuf.Duration value) { 9231 if (defaultExpirationBuilder_ == null) { 9232 if (value == null) { 9233 throw new NullPointerException(); 9234 } 9235 defaultExpiration_ = value; 9236 } else { 9237 defaultExpirationBuilder_.setMessage(value); 9238 } 9239 bitField0_ |= 0x40000000; 9240 onChanged(); 9241 return this; 9242 } 9243 /** 9244 * 9245 * 9246 * <pre> 9247 * Duration that static files should be cached by web proxies and browsers. 9248 * Only applicable if the corresponding 9249 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9250 * does not specify its own expiration time. 9251 * Only returned in `GET` requests if `view=FULL` is set. 9252 * </pre> 9253 * 9254 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9255 */ setDefaultExpiration(com.google.protobuf.Duration.Builder builderForValue)9256 public Builder setDefaultExpiration(com.google.protobuf.Duration.Builder builderForValue) { 9257 if (defaultExpirationBuilder_ == null) { 9258 defaultExpiration_ = builderForValue.build(); 9259 } else { 9260 defaultExpirationBuilder_.setMessage(builderForValue.build()); 9261 } 9262 bitField0_ |= 0x40000000; 9263 onChanged(); 9264 return this; 9265 } 9266 /** 9267 * 9268 * 9269 * <pre> 9270 * Duration that static files should be cached by web proxies and browsers. 9271 * Only applicable if the corresponding 9272 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9273 * does not specify its own expiration time. 9274 * Only returned in `GET` requests if `view=FULL` is set. 9275 * </pre> 9276 * 9277 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9278 */ mergeDefaultExpiration(com.google.protobuf.Duration value)9279 public Builder mergeDefaultExpiration(com.google.protobuf.Duration value) { 9280 if (defaultExpirationBuilder_ == null) { 9281 if (((bitField0_ & 0x40000000) != 0) 9282 && defaultExpiration_ != null 9283 && defaultExpiration_ != com.google.protobuf.Duration.getDefaultInstance()) { 9284 getDefaultExpirationBuilder().mergeFrom(value); 9285 } else { 9286 defaultExpiration_ = value; 9287 } 9288 } else { 9289 defaultExpirationBuilder_.mergeFrom(value); 9290 } 9291 bitField0_ |= 0x40000000; 9292 onChanged(); 9293 return this; 9294 } 9295 /** 9296 * 9297 * 9298 * <pre> 9299 * Duration that static files should be cached by web proxies and browsers. 9300 * Only applicable if the corresponding 9301 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9302 * does not specify its own expiration time. 9303 * Only returned in `GET` requests if `view=FULL` is set. 9304 * </pre> 9305 * 9306 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9307 */ clearDefaultExpiration()9308 public Builder clearDefaultExpiration() { 9309 bitField0_ = (bitField0_ & ~0x40000000); 9310 defaultExpiration_ = null; 9311 if (defaultExpirationBuilder_ != null) { 9312 defaultExpirationBuilder_.dispose(); 9313 defaultExpirationBuilder_ = null; 9314 } 9315 onChanged(); 9316 return this; 9317 } 9318 /** 9319 * 9320 * 9321 * <pre> 9322 * Duration that static files should be cached by web proxies and browsers. 9323 * Only applicable if the corresponding 9324 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9325 * does not specify its own expiration time. 9326 * Only returned in `GET` requests if `view=FULL` is set. 9327 * </pre> 9328 * 9329 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9330 */ getDefaultExpirationBuilder()9331 public com.google.protobuf.Duration.Builder getDefaultExpirationBuilder() { 9332 bitField0_ |= 0x40000000; 9333 onChanged(); 9334 return getDefaultExpirationFieldBuilder().getBuilder(); 9335 } 9336 /** 9337 * 9338 * 9339 * <pre> 9340 * Duration that static files should be cached by web proxies and browsers. 9341 * Only applicable if the corresponding 9342 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9343 * does not specify its own expiration time. 9344 * Only returned in `GET` requests if `view=FULL` is set. 9345 * </pre> 9346 * 9347 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9348 */ getDefaultExpirationOrBuilder()9349 public com.google.protobuf.DurationOrBuilder getDefaultExpirationOrBuilder() { 9350 if (defaultExpirationBuilder_ != null) { 9351 return defaultExpirationBuilder_.getMessageOrBuilder(); 9352 } else { 9353 return defaultExpiration_ == null 9354 ? com.google.protobuf.Duration.getDefaultInstance() 9355 : defaultExpiration_; 9356 } 9357 } 9358 /** 9359 * 9360 * 9361 * <pre> 9362 * Duration that static files should be cached by web proxies and browsers. 9363 * Only applicable if the corresponding 9364 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) 9365 * does not specify its own expiration time. 9366 * Only returned in `GET` requests if `view=FULL` is set. 9367 * </pre> 9368 * 9369 * <code>.google.protobuf.Duration default_expiration = 105;</code> 9370 */ 9371 private com.google.protobuf.SingleFieldBuilderV3< 9372 com.google.protobuf.Duration, 9373 com.google.protobuf.Duration.Builder, 9374 com.google.protobuf.DurationOrBuilder> getDefaultExpirationFieldBuilder()9375 getDefaultExpirationFieldBuilder() { 9376 if (defaultExpirationBuilder_ == null) { 9377 defaultExpirationBuilder_ = 9378 new com.google.protobuf.SingleFieldBuilderV3< 9379 com.google.protobuf.Duration, 9380 com.google.protobuf.Duration.Builder, 9381 com.google.protobuf.DurationOrBuilder>( 9382 getDefaultExpiration(), getParentForChildren(), isClean()); 9383 defaultExpiration_ = null; 9384 } 9385 return defaultExpirationBuilder_; 9386 } 9387 9388 private com.google.appengine.v1.HealthCheck healthCheck_; 9389 private com.google.protobuf.SingleFieldBuilderV3< 9390 com.google.appengine.v1.HealthCheck, 9391 com.google.appengine.v1.HealthCheck.Builder, 9392 com.google.appengine.v1.HealthCheckOrBuilder> 9393 healthCheckBuilder_; 9394 /** 9395 * 9396 * 9397 * <pre> 9398 * Configures health checking for instances. Unhealthy instances are 9399 * stopped and replaced with new instances. 9400 * Only applicable in the App Engine flexible environment. 9401 * Only returned in `GET` requests if `view=FULL` is set. 9402 * </pre> 9403 * 9404 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9405 * 9406 * @return Whether the healthCheck field is set. 9407 */ hasHealthCheck()9408 public boolean hasHealthCheck() { 9409 return ((bitField0_ & 0x80000000) != 0); 9410 } 9411 /** 9412 * 9413 * 9414 * <pre> 9415 * Configures health checking for instances. Unhealthy instances are 9416 * stopped and replaced with new instances. 9417 * Only applicable in the App Engine flexible environment. 9418 * Only returned in `GET` requests if `view=FULL` is set. 9419 * </pre> 9420 * 9421 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9422 * 9423 * @return The healthCheck. 9424 */ getHealthCheck()9425 public com.google.appengine.v1.HealthCheck getHealthCheck() { 9426 if (healthCheckBuilder_ == null) { 9427 return healthCheck_ == null 9428 ? com.google.appengine.v1.HealthCheck.getDefaultInstance() 9429 : healthCheck_; 9430 } else { 9431 return healthCheckBuilder_.getMessage(); 9432 } 9433 } 9434 /** 9435 * 9436 * 9437 * <pre> 9438 * Configures health checking for instances. Unhealthy instances are 9439 * stopped and replaced with new instances. 9440 * Only applicable in the App Engine flexible environment. 9441 * Only returned in `GET` requests if `view=FULL` is set. 9442 * </pre> 9443 * 9444 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9445 */ setHealthCheck(com.google.appengine.v1.HealthCheck value)9446 public Builder setHealthCheck(com.google.appengine.v1.HealthCheck value) { 9447 if (healthCheckBuilder_ == null) { 9448 if (value == null) { 9449 throw new NullPointerException(); 9450 } 9451 healthCheck_ = value; 9452 } else { 9453 healthCheckBuilder_.setMessage(value); 9454 } 9455 bitField0_ |= 0x80000000; 9456 onChanged(); 9457 return this; 9458 } 9459 /** 9460 * 9461 * 9462 * <pre> 9463 * Configures health checking for instances. Unhealthy instances are 9464 * stopped and replaced with new instances. 9465 * Only applicable in the App Engine flexible environment. 9466 * Only returned in `GET` requests if `view=FULL` is set. 9467 * </pre> 9468 * 9469 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9470 */ setHealthCheck(com.google.appengine.v1.HealthCheck.Builder builderForValue)9471 public Builder setHealthCheck(com.google.appengine.v1.HealthCheck.Builder builderForValue) { 9472 if (healthCheckBuilder_ == null) { 9473 healthCheck_ = builderForValue.build(); 9474 } else { 9475 healthCheckBuilder_.setMessage(builderForValue.build()); 9476 } 9477 bitField0_ |= 0x80000000; 9478 onChanged(); 9479 return this; 9480 } 9481 /** 9482 * 9483 * 9484 * <pre> 9485 * Configures health checking for instances. Unhealthy instances are 9486 * stopped and replaced with new instances. 9487 * Only applicable in the App Engine flexible environment. 9488 * Only returned in `GET` requests if `view=FULL` is set. 9489 * </pre> 9490 * 9491 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9492 */ mergeHealthCheck(com.google.appengine.v1.HealthCheck value)9493 public Builder mergeHealthCheck(com.google.appengine.v1.HealthCheck value) { 9494 if (healthCheckBuilder_ == null) { 9495 if (((bitField0_ & 0x80000000) != 0) 9496 && healthCheck_ != null 9497 && healthCheck_ != com.google.appengine.v1.HealthCheck.getDefaultInstance()) { 9498 getHealthCheckBuilder().mergeFrom(value); 9499 } else { 9500 healthCheck_ = value; 9501 } 9502 } else { 9503 healthCheckBuilder_.mergeFrom(value); 9504 } 9505 bitField0_ |= 0x80000000; 9506 onChanged(); 9507 return this; 9508 } 9509 /** 9510 * 9511 * 9512 * <pre> 9513 * Configures health checking for instances. Unhealthy instances are 9514 * stopped and replaced with new instances. 9515 * Only applicable in the App Engine flexible environment. 9516 * Only returned in `GET` requests if `view=FULL` is set. 9517 * </pre> 9518 * 9519 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9520 */ clearHealthCheck()9521 public Builder clearHealthCheck() { 9522 bitField0_ = (bitField0_ & ~0x80000000); 9523 healthCheck_ = null; 9524 if (healthCheckBuilder_ != null) { 9525 healthCheckBuilder_.dispose(); 9526 healthCheckBuilder_ = null; 9527 } 9528 onChanged(); 9529 return this; 9530 } 9531 /** 9532 * 9533 * 9534 * <pre> 9535 * Configures health checking for instances. Unhealthy instances are 9536 * stopped and replaced with new instances. 9537 * Only applicable in the App Engine flexible environment. 9538 * Only returned in `GET` requests if `view=FULL` is set. 9539 * </pre> 9540 * 9541 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9542 */ getHealthCheckBuilder()9543 public com.google.appengine.v1.HealthCheck.Builder getHealthCheckBuilder() { 9544 bitField0_ |= 0x80000000; 9545 onChanged(); 9546 return getHealthCheckFieldBuilder().getBuilder(); 9547 } 9548 /** 9549 * 9550 * 9551 * <pre> 9552 * Configures health checking for instances. Unhealthy instances are 9553 * stopped and replaced with new instances. 9554 * Only applicable in the App Engine flexible environment. 9555 * Only returned in `GET` requests if `view=FULL` is set. 9556 * </pre> 9557 * 9558 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9559 */ getHealthCheckOrBuilder()9560 public com.google.appengine.v1.HealthCheckOrBuilder getHealthCheckOrBuilder() { 9561 if (healthCheckBuilder_ != null) { 9562 return healthCheckBuilder_.getMessageOrBuilder(); 9563 } else { 9564 return healthCheck_ == null 9565 ? com.google.appengine.v1.HealthCheck.getDefaultInstance() 9566 : healthCheck_; 9567 } 9568 } 9569 /** 9570 * 9571 * 9572 * <pre> 9573 * Configures health checking for instances. Unhealthy instances are 9574 * stopped and replaced with new instances. 9575 * Only applicable in the App Engine flexible environment. 9576 * Only returned in `GET` requests if `view=FULL` is set. 9577 * </pre> 9578 * 9579 * <code>.google.appengine.v1.HealthCheck health_check = 106;</code> 9580 */ 9581 private com.google.protobuf.SingleFieldBuilderV3< 9582 com.google.appengine.v1.HealthCheck, 9583 com.google.appengine.v1.HealthCheck.Builder, 9584 com.google.appengine.v1.HealthCheckOrBuilder> getHealthCheckFieldBuilder()9585 getHealthCheckFieldBuilder() { 9586 if (healthCheckBuilder_ == null) { 9587 healthCheckBuilder_ = 9588 new com.google.protobuf.SingleFieldBuilderV3< 9589 com.google.appengine.v1.HealthCheck, 9590 com.google.appengine.v1.HealthCheck.Builder, 9591 com.google.appengine.v1.HealthCheckOrBuilder>( 9592 getHealthCheck(), getParentForChildren(), isClean()); 9593 healthCheck_ = null; 9594 } 9595 return healthCheckBuilder_; 9596 } 9597 9598 private com.google.appengine.v1.ReadinessCheck readinessCheck_; 9599 private com.google.protobuf.SingleFieldBuilderV3< 9600 com.google.appengine.v1.ReadinessCheck, 9601 com.google.appengine.v1.ReadinessCheck.Builder, 9602 com.google.appengine.v1.ReadinessCheckOrBuilder> 9603 readinessCheckBuilder_; 9604 /** 9605 * 9606 * 9607 * <pre> 9608 * Configures readiness health checking for instances. 9609 * Unhealthy instances are not put into the backend traffic rotation. 9610 * Only returned in `GET` requests if `view=FULL` is set. 9611 * </pre> 9612 * 9613 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9614 * 9615 * @return Whether the readinessCheck field is set. 9616 */ hasReadinessCheck()9617 public boolean hasReadinessCheck() { 9618 return ((bitField1_ & 0x00000001) != 0); 9619 } 9620 /** 9621 * 9622 * 9623 * <pre> 9624 * Configures readiness health checking for instances. 9625 * Unhealthy instances are not put into the backend traffic rotation. 9626 * Only returned in `GET` requests if `view=FULL` is set. 9627 * </pre> 9628 * 9629 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9630 * 9631 * @return The readinessCheck. 9632 */ getReadinessCheck()9633 public com.google.appengine.v1.ReadinessCheck getReadinessCheck() { 9634 if (readinessCheckBuilder_ == null) { 9635 return readinessCheck_ == null 9636 ? com.google.appengine.v1.ReadinessCheck.getDefaultInstance() 9637 : readinessCheck_; 9638 } else { 9639 return readinessCheckBuilder_.getMessage(); 9640 } 9641 } 9642 /** 9643 * 9644 * 9645 * <pre> 9646 * Configures readiness health checking for instances. 9647 * Unhealthy instances are not put into the backend traffic rotation. 9648 * Only returned in `GET` requests if `view=FULL` is set. 9649 * </pre> 9650 * 9651 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9652 */ setReadinessCheck(com.google.appengine.v1.ReadinessCheck value)9653 public Builder setReadinessCheck(com.google.appengine.v1.ReadinessCheck value) { 9654 if (readinessCheckBuilder_ == null) { 9655 if (value == null) { 9656 throw new NullPointerException(); 9657 } 9658 readinessCheck_ = value; 9659 } else { 9660 readinessCheckBuilder_.setMessage(value); 9661 } 9662 bitField1_ |= 0x00000001; 9663 onChanged(); 9664 return this; 9665 } 9666 /** 9667 * 9668 * 9669 * <pre> 9670 * Configures readiness health checking for instances. 9671 * Unhealthy instances are not put into the backend traffic rotation. 9672 * Only returned in `GET` requests if `view=FULL` is set. 9673 * </pre> 9674 * 9675 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9676 */ setReadinessCheck( com.google.appengine.v1.ReadinessCheck.Builder builderForValue)9677 public Builder setReadinessCheck( 9678 com.google.appengine.v1.ReadinessCheck.Builder builderForValue) { 9679 if (readinessCheckBuilder_ == null) { 9680 readinessCheck_ = builderForValue.build(); 9681 } else { 9682 readinessCheckBuilder_.setMessage(builderForValue.build()); 9683 } 9684 bitField1_ |= 0x00000001; 9685 onChanged(); 9686 return this; 9687 } 9688 /** 9689 * 9690 * 9691 * <pre> 9692 * Configures readiness health checking for instances. 9693 * Unhealthy instances are not put into the backend traffic rotation. 9694 * Only returned in `GET` requests if `view=FULL` is set. 9695 * </pre> 9696 * 9697 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9698 */ mergeReadinessCheck(com.google.appengine.v1.ReadinessCheck value)9699 public Builder mergeReadinessCheck(com.google.appengine.v1.ReadinessCheck value) { 9700 if (readinessCheckBuilder_ == null) { 9701 if (((bitField1_ & 0x00000001) != 0) 9702 && readinessCheck_ != null 9703 && readinessCheck_ != com.google.appengine.v1.ReadinessCheck.getDefaultInstance()) { 9704 getReadinessCheckBuilder().mergeFrom(value); 9705 } else { 9706 readinessCheck_ = value; 9707 } 9708 } else { 9709 readinessCheckBuilder_.mergeFrom(value); 9710 } 9711 bitField1_ |= 0x00000001; 9712 onChanged(); 9713 return this; 9714 } 9715 /** 9716 * 9717 * 9718 * <pre> 9719 * Configures readiness health checking for instances. 9720 * Unhealthy instances are not put into the backend traffic rotation. 9721 * Only returned in `GET` requests if `view=FULL` is set. 9722 * </pre> 9723 * 9724 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9725 */ clearReadinessCheck()9726 public Builder clearReadinessCheck() { 9727 bitField1_ = (bitField1_ & ~0x00000001); 9728 readinessCheck_ = null; 9729 if (readinessCheckBuilder_ != null) { 9730 readinessCheckBuilder_.dispose(); 9731 readinessCheckBuilder_ = null; 9732 } 9733 onChanged(); 9734 return this; 9735 } 9736 /** 9737 * 9738 * 9739 * <pre> 9740 * Configures readiness health checking for instances. 9741 * Unhealthy instances are not put into the backend traffic rotation. 9742 * Only returned in `GET` requests if `view=FULL` is set. 9743 * </pre> 9744 * 9745 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9746 */ getReadinessCheckBuilder()9747 public com.google.appengine.v1.ReadinessCheck.Builder getReadinessCheckBuilder() { 9748 bitField1_ |= 0x00000001; 9749 onChanged(); 9750 return getReadinessCheckFieldBuilder().getBuilder(); 9751 } 9752 /** 9753 * 9754 * 9755 * <pre> 9756 * Configures readiness health checking for instances. 9757 * Unhealthy instances are not put into the backend traffic rotation. 9758 * Only returned in `GET` requests if `view=FULL` is set. 9759 * </pre> 9760 * 9761 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9762 */ getReadinessCheckOrBuilder()9763 public com.google.appengine.v1.ReadinessCheckOrBuilder getReadinessCheckOrBuilder() { 9764 if (readinessCheckBuilder_ != null) { 9765 return readinessCheckBuilder_.getMessageOrBuilder(); 9766 } else { 9767 return readinessCheck_ == null 9768 ? com.google.appengine.v1.ReadinessCheck.getDefaultInstance() 9769 : readinessCheck_; 9770 } 9771 } 9772 /** 9773 * 9774 * 9775 * <pre> 9776 * Configures readiness health checking for instances. 9777 * Unhealthy instances are not put into the backend traffic rotation. 9778 * Only returned in `GET` requests if `view=FULL` is set. 9779 * </pre> 9780 * 9781 * <code>.google.appengine.v1.ReadinessCheck readiness_check = 112;</code> 9782 */ 9783 private com.google.protobuf.SingleFieldBuilderV3< 9784 com.google.appengine.v1.ReadinessCheck, 9785 com.google.appengine.v1.ReadinessCheck.Builder, 9786 com.google.appengine.v1.ReadinessCheckOrBuilder> getReadinessCheckFieldBuilder()9787 getReadinessCheckFieldBuilder() { 9788 if (readinessCheckBuilder_ == null) { 9789 readinessCheckBuilder_ = 9790 new com.google.protobuf.SingleFieldBuilderV3< 9791 com.google.appengine.v1.ReadinessCheck, 9792 com.google.appengine.v1.ReadinessCheck.Builder, 9793 com.google.appengine.v1.ReadinessCheckOrBuilder>( 9794 getReadinessCheck(), getParentForChildren(), isClean()); 9795 readinessCheck_ = null; 9796 } 9797 return readinessCheckBuilder_; 9798 } 9799 9800 private com.google.appengine.v1.LivenessCheck livenessCheck_; 9801 private com.google.protobuf.SingleFieldBuilderV3< 9802 com.google.appengine.v1.LivenessCheck, 9803 com.google.appengine.v1.LivenessCheck.Builder, 9804 com.google.appengine.v1.LivenessCheckOrBuilder> 9805 livenessCheckBuilder_; 9806 /** 9807 * 9808 * 9809 * <pre> 9810 * Configures liveness health checking for instances. 9811 * Unhealthy instances are stopped and replaced with new instances 9812 * Only returned in `GET` requests if `view=FULL` is set. 9813 * </pre> 9814 * 9815 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9816 * 9817 * @return Whether the livenessCheck field is set. 9818 */ hasLivenessCheck()9819 public boolean hasLivenessCheck() { 9820 return ((bitField1_ & 0x00000002) != 0); 9821 } 9822 /** 9823 * 9824 * 9825 * <pre> 9826 * Configures liveness health checking for instances. 9827 * Unhealthy instances are stopped and replaced with new instances 9828 * Only returned in `GET` requests if `view=FULL` is set. 9829 * </pre> 9830 * 9831 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9832 * 9833 * @return The livenessCheck. 9834 */ getLivenessCheck()9835 public com.google.appengine.v1.LivenessCheck getLivenessCheck() { 9836 if (livenessCheckBuilder_ == null) { 9837 return livenessCheck_ == null 9838 ? com.google.appengine.v1.LivenessCheck.getDefaultInstance() 9839 : livenessCheck_; 9840 } else { 9841 return livenessCheckBuilder_.getMessage(); 9842 } 9843 } 9844 /** 9845 * 9846 * 9847 * <pre> 9848 * Configures liveness health checking for instances. 9849 * Unhealthy instances are stopped and replaced with new instances 9850 * Only returned in `GET` requests if `view=FULL` is set. 9851 * </pre> 9852 * 9853 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9854 */ setLivenessCheck(com.google.appengine.v1.LivenessCheck value)9855 public Builder setLivenessCheck(com.google.appengine.v1.LivenessCheck value) { 9856 if (livenessCheckBuilder_ == null) { 9857 if (value == null) { 9858 throw new NullPointerException(); 9859 } 9860 livenessCheck_ = value; 9861 } else { 9862 livenessCheckBuilder_.setMessage(value); 9863 } 9864 bitField1_ |= 0x00000002; 9865 onChanged(); 9866 return this; 9867 } 9868 /** 9869 * 9870 * 9871 * <pre> 9872 * Configures liveness health checking for instances. 9873 * Unhealthy instances are stopped and replaced with new instances 9874 * Only returned in `GET` requests if `view=FULL` is set. 9875 * </pre> 9876 * 9877 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9878 */ setLivenessCheck(com.google.appengine.v1.LivenessCheck.Builder builderForValue)9879 public Builder setLivenessCheck(com.google.appengine.v1.LivenessCheck.Builder builderForValue) { 9880 if (livenessCheckBuilder_ == null) { 9881 livenessCheck_ = builderForValue.build(); 9882 } else { 9883 livenessCheckBuilder_.setMessage(builderForValue.build()); 9884 } 9885 bitField1_ |= 0x00000002; 9886 onChanged(); 9887 return this; 9888 } 9889 /** 9890 * 9891 * 9892 * <pre> 9893 * Configures liveness health checking for instances. 9894 * Unhealthy instances are stopped and replaced with new instances 9895 * Only returned in `GET` requests if `view=FULL` is set. 9896 * </pre> 9897 * 9898 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9899 */ mergeLivenessCheck(com.google.appengine.v1.LivenessCheck value)9900 public Builder mergeLivenessCheck(com.google.appengine.v1.LivenessCheck value) { 9901 if (livenessCheckBuilder_ == null) { 9902 if (((bitField1_ & 0x00000002) != 0) 9903 && livenessCheck_ != null 9904 && livenessCheck_ != com.google.appengine.v1.LivenessCheck.getDefaultInstance()) { 9905 getLivenessCheckBuilder().mergeFrom(value); 9906 } else { 9907 livenessCheck_ = value; 9908 } 9909 } else { 9910 livenessCheckBuilder_.mergeFrom(value); 9911 } 9912 bitField1_ |= 0x00000002; 9913 onChanged(); 9914 return this; 9915 } 9916 /** 9917 * 9918 * 9919 * <pre> 9920 * Configures liveness health checking for instances. 9921 * Unhealthy instances are stopped and replaced with new instances 9922 * Only returned in `GET` requests if `view=FULL` is set. 9923 * </pre> 9924 * 9925 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9926 */ clearLivenessCheck()9927 public Builder clearLivenessCheck() { 9928 bitField1_ = (bitField1_ & ~0x00000002); 9929 livenessCheck_ = null; 9930 if (livenessCheckBuilder_ != null) { 9931 livenessCheckBuilder_.dispose(); 9932 livenessCheckBuilder_ = null; 9933 } 9934 onChanged(); 9935 return this; 9936 } 9937 /** 9938 * 9939 * 9940 * <pre> 9941 * Configures liveness health checking for instances. 9942 * Unhealthy instances are stopped and replaced with new instances 9943 * Only returned in `GET` requests if `view=FULL` is set. 9944 * </pre> 9945 * 9946 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9947 */ getLivenessCheckBuilder()9948 public com.google.appengine.v1.LivenessCheck.Builder getLivenessCheckBuilder() { 9949 bitField1_ |= 0x00000002; 9950 onChanged(); 9951 return getLivenessCheckFieldBuilder().getBuilder(); 9952 } 9953 /** 9954 * 9955 * 9956 * <pre> 9957 * Configures liveness health checking for instances. 9958 * Unhealthy instances are stopped and replaced with new instances 9959 * Only returned in `GET` requests if `view=FULL` is set. 9960 * </pre> 9961 * 9962 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9963 */ getLivenessCheckOrBuilder()9964 public com.google.appengine.v1.LivenessCheckOrBuilder getLivenessCheckOrBuilder() { 9965 if (livenessCheckBuilder_ != null) { 9966 return livenessCheckBuilder_.getMessageOrBuilder(); 9967 } else { 9968 return livenessCheck_ == null 9969 ? com.google.appengine.v1.LivenessCheck.getDefaultInstance() 9970 : livenessCheck_; 9971 } 9972 } 9973 /** 9974 * 9975 * 9976 * <pre> 9977 * Configures liveness health checking for instances. 9978 * Unhealthy instances are stopped and replaced with new instances 9979 * Only returned in `GET` requests if `view=FULL` is set. 9980 * </pre> 9981 * 9982 * <code>.google.appengine.v1.LivenessCheck liveness_check = 113;</code> 9983 */ 9984 private com.google.protobuf.SingleFieldBuilderV3< 9985 com.google.appengine.v1.LivenessCheck, 9986 com.google.appengine.v1.LivenessCheck.Builder, 9987 com.google.appengine.v1.LivenessCheckOrBuilder> getLivenessCheckFieldBuilder()9988 getLivenessCheckFieldBuilder() { 9989 if (livenessCheckBuilder_ == null) { 9990 livenessCheckBuilder_ = 9991 new com.google.protobuf.SingleFieldBuilderV3< 9992 com.google.appengine.v1.LivenessCheck, 9993 com.google.appengine.v1.LivenessCheck.Builder, 9994 com.google.appengine.v1.LivenessCheckOrBuilder>( 9995 getLivenessCheck(), getParentForChildren(), isClean()); 9996 livenessCheck_ = null; 9997 } 9998 return livenessCheckBuilder_; 9999 } 10000 10001 private java.lang.Object nobuildFilesRegex_ = ""; 10002 /** 10003 * 10004 * 10005 * <pre> 10006 * Files that match this pattern will not be built into this version. 10007 * Only applicable for Go runtimes. 10008 * Only returned in `GET` requests if `view=FULL` is set. 10009 * </pre> 10010 * 10011 * <code>string nobuild_files_regex = 107;</code> 10012 * 10013 * @return The nobuildFilesRegex. 10014 */ getNobuildFilesRegex()10015 public java.lang.String getNobuildFilesRegex() { 10016 java.lang.Object ref = nobuildFilesRegex_; 10017 if (!(ref instanceof java.lang.String)) { 10018 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 10019 java.lang.String s = bs.toStringUtf8(); 10020 nobuildFilesRegex_ = s; 10021 return s; 10022 } else { 10023 return (java.lang.String) ref; 10024 } 10025 } 10026 /** 10027 * 10028 * 10029 * <pre> 10030 * Files that match this pattern will not be built into this version. 10031 * Only applicable for Go runtimes. 10032 * Only returned in `GET` requests if `view=FULL` is set. 10033 * </pre> 10034 * 10035 * <code>string nobuild_files_regex = 107;</code> 10036 * 10037 * @return The bytes for nobuildFilesRegex. 10038 */ getNobuildFilesRegexBytes()10039 public com.google.protobuf.ByteString getNobuildFilesRegexBytes() { 10040 java.lang.Object ref = nobuildFilesRegex_; 10041 if (ref instanceof String) { 10042 com.google.protobuf.ByteString b = 10043 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 10044 nobuildFilesRegex_ = b; 10045 return b; 10046 } else { 10047 return (com.google.protobuf.ByteString) ref; 10048 } 10049 } 10050 /** 10051 * 10052 * 10053 * <pre> 10054 * Files that match this pattern will not be built into this version. 10055 * Only applicable for Go runtimes. 10056 * Only returned in `GET` requests if `view=FULL` is set. 10057 * </pre> 10058 * 10059 * <code>string nobuild_files_regex = 107;</code> 10060 * 10061 * @param value The nobuildFilesRegex to set. 10062 * @return This builder for chaining. 10063 */ setNobuildFilesRegex(java.lang.String value)10064 public Builder setNobuildFilesRegex(java.lang.String value) { 10065 if (value == null) { 10066 throw new NullPointerException(); 10067 } 10068 nobuildFilesRegex_ = value; 10069 bitField1_ |= 0x00000004; 10070 onChanged(); 10071 return this; 10072 } 10073 /** 10074 * 10075 * 10076 * <pre> 10077 * Files that match this pattern will not be built into this version. 10078 * Only applicable for Go runtimes. 10079 * Only returned in `GET` requests if `view=FULL` is set. 10080 * </pre> 10081 * 10082 * <code>string nobuild_files_regex = 107;</code> 10083 * 10084 * @return This builder for chaining. 10085 */ clearNobuildFilesRegex()10086 public Builder clearNobuildFilesRegex() { 10087 nobuildFilesRegex_ = getDefaultInstance().getNobuildFilesRegex(); 10088 bitField1_ = (bitField1_ & ~0x00000004); 10089 onChanged(); 10090 return this; 10091 } 10092 /** 10093 * 10094 * 10095 * <pre> 10096 * Files that match this pattern will not be built into this version. 10097 * Only applicable for Go runtimes. 10098 * Only returned in `GET` requests if `view=FULL` is set. 10099 * </pre> 10100 * 10101 * <code>string nobuild_files_regex = 107;</code> 10102 * 10103 * @param value The bytes for nobuildFilesRegex to set. 10104 * @return This builder for chaining. 10105 */ setNobuildFilesRegexBytes(com.google.protobuf.ByteString value)10106 public Builder setNobuildFilesRegexBytes(com.google.protobuf.ByteString value) { 10107 if (value == null) { 10108 throw new NullPointerException(); 10109 } 10110 checkByteStringIsUtf8(value); 10111 nobuildFilesRegex_ = value; 10112 bitField1_ |= 0x00000004; 10113 onChanged(); 10114 return this; 10115 } 10116 10117 private com.google.appengine.v1.Deployment deployment_; 10118 private com.google.protobuf.SingleFieldBuilderV3< 10119 com.google.appengine.v1.Deployment, 10120 com.google.appengine.v1.Deployment.Builder, 10121 com.google.appengine.v1.DeploymentOrBuilder> 10122 deploymentBuilder_; 10123 /** 10124 * 10125 * 10126 * <pre> 10127 * Code and application artifacts that make up this version. 10128 * Only returned in `GET` requests if `view=FULL` is set. 10129 * </pre> 10130 * 10131 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10132 * 10133 * @return Whether the deployment field is set. 10134 */ hasDeployment()10135 public boolean hasDeployment() { 10136 return ((bitField1_ & 0x00000008) != 0); 10137 } 10138 /** 10139 * 10140 * 10141 * <pre> 10142 * Code and application artifacts that make up this version. 10143 * Only returned in `GET` requests if `view=FULL` is set. 10144 * </pre> 10145 * 10146 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10147 * 10148 * @return The deployment. 10149 */ getDeployment()10150 public com.google.appengine.v1.Deployment getDeployment() { 10151 if (deploymentBuilder_ == null) { 10152 return deployment_ == null 10153 ? com.google.appengine.v1.Deployment.getDefaultInstance() 10154 : deployment_; 10155 } else { 10156 return deploymentBuilder_.getMessage(); 10157 } 10158 } 10159 /** 10160 * 10161 * 10162 * <pre> 10163 * Code and application artifacts that make up this version. 10164 * Only returned in `GET` requests if `view=FULL` is set. 10165 * </pre> 10166 * 10167 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10168 */ setDeployment(com.google.appengine.v1.Deployment value)10169 public Builder setDeployment(com.google.appengine.v1.Deployment value) { 10170 if (deploymentBuilder_ == null) { 10171 if (value == null) { 10172 throw new NullPointerException(); 10173 } 10174 deployment_ = value; 10175 } else { 10176 deploymentBuilder_.setMessage(value); 10177 } 10178 bitField1_ |= 0x00000008; 10179 onChanged(); 10180 return this; 10181 } 10182 /** 10183 * 10184 * 10185 * <pre> 10186 * Code and application artifacts that make up this version. 10187 * Only returned in `GET` requests if `view=FULL` is set. 10188 * </pre> 10189 * 10190 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10191 */ setDeployment(com.google.appengine.v1.Deployment.Builder builderForValue)10192 public Builder setDeployment(com.google.appengine.v1.Deployment.Builder builderForValue) { 10193 if (deploymentBuilder_ == null) { 10194 deployment_ = builderForValue.build(); 10195 } else { 10196 deploymentBuilder_.setMessage(builderForValue.build()); 10197 } 10198 bitField1_ |= 0x00000008; 10199 onChanged(); 10200 return this; 10201 } 10202 /** 10203 * 10204 * 10205 * <pre> 10206 * Code and application artifacts that make up this version. 10207 * Only returned in `GET` requests if `view=FULL` is set. 10208 * </pre> 10209 * 10210 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10211 */ mergeDeployment(com.google.appengine.v1.Deployment value)10212 public Builder mergeDeployment(com.google.appengine.v1.Deployment value) { 10213 if (deploymentBuilder_ == null) { 10214 if (((bitField1_ & 0x00000008) != 0) 10215 && deployment_ != null 10216 && deployment_ != com.google.appengine.v1.Deployment.getDefaultInstance()) { 10217 getDeploymentBuilder().mergeFrom(value); 10218 } else { 10219 deployment_ = value; 10220 } 10221 } else { 10222 deploymentBuilder_.mergeFrom(value); 10223 } 10224 bitField1_ |= 0x00000008; 10225 onChanged(); 10226 return this; 10227 } 10228 /** 10229 * 10230 * 10231 * <pre> 10232 * Code and application artifacts that make up this version. 10233 * Only returned in `GET` requests if `view=FULL` is set. 10234 * </pre> 10235 * 10236 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10237 */ clearDeployment()10238 public Builder clearDeployment() { 10239 bitField1_ = (bitField1_ & ~0x00000008); 10240 deployment_ = null; 10241 if (deploymentBuilder_ != null) { 10242 deploymentBuilder_.dispose(); 10243 deploymentBuilder_ = null; 10244 } 10245 onChanged(); 10246 return this; 10247 } 10248 /** 10249 * 10250 * 10251 * <pre> 10252 * Code and application artifacts that make up this version. 10253 * Only returned in `GET` requests if `view=FULL` is set. 10254 * </pre> 10255 * 10256 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10257 */ getDeploymentBuilder()10258 public com.google.appengine.v1.Deployment.Builder getDeploymentBuilder() { 10259 bitField1_ |= 0x00000008; 10260 onChanged(); 10261 return getDeploymentFieldBuilder().getBuilder(); 10262 } 10263 /** 10264 * 10265 * 10266 * <pre> 10267 * Code and application artifacts that make up this version. 10268 * Only returned in `GET` requests if `view=FULL` is set. 10269 * </pre> 10270 * 10271 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10272 */ getDeploymentOrBuilder()10273 public com.google.appengine.v1.DeploymentOrBuilder getDeploymentOrBuilder() { 10274 if (deploymentBuilder_ != null) { 10275 return deploymentBuilder_.getMessageOrBuilder(); 10276 } else { 10277 return deployment_ == null 10278 ? com.google.appengine.v1.Deployment.getDefaultInstance() 10279 : deployment_; 10280 } 10281 } 10282 /** 10283 * 10284 * 10285 * <pre> 10286 * Code and application artifacts that make up this version. 10287 * Only returned in `GET` requests if `view=FULL` is set. 10288 * </pre> 10289 * 10290 * <code>.google.appengine.v1.Deployment deployment = 108;</code> 10291 */ 10292 private com.google.protobuf.SingleFieldBuilderV3< 10293 com.google.appengine.v1.Deployment, 10294 com.google.appengine.v1.Deployment.Builder, 10295 com.google.appengine.v1.DeploymentOrBuilder> getDeploymentFieldBuilder()10296 getDeploymentFieldBuilder() { 10297 if (deploymentBuilder_ == null) { 10298 deploymentBuilder_ = 10299 new com.google.protobuf.SingleFieldBuilderV3< 10300 com.google.appengine.v1.Deployment, 10301 com.google.appengine.v1.Deployment.Builder, 10302 com.google.appengine.v1.DeploymentOrBuilder>( 10303 getDeployment(), getParentForChildren(), isClean()); 10304 deployment_ = null; 10305 } 10306 return deploymentBuilder_; 10307 } 10308 10309 private java.lang.Object versionUrl_ = ""; 10310 /** 10311 * 10312 * 10313 * <pre> 10314 * Serving URL for this version. Example: 10315 * "https://myversion-dot-myservice-dot-myapp.appspot.com" 10316 * @OutputOnly 10317 * </pre> 10318 * 10319 * <code>string version_url = 109;</code> 10320 * 10321 * @return The versionUrl. 10322 */ getVersionUrl()10323 public java.lang.String getVersionUrl() { 10324 java.lang.Object ref = versionUrl_; 10325 if (!(ref instanceof java.lang.String)) { 10326 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 10327 java.lang.String s = bs.toStringUtf8(); 10328 versionUrl_ = s; 10329 return s; 10330 } else { 10331 return (java.lang.String) ref; 10332 } 10333 } 10334 /** 10335 * 10336 * 10337 * <pre> 10338 * Serving URL for this version. Example: 10339 * "https://myversion-dot-myservice-dot-myapp.appspot.com" 10340 * @OutputOnly 10341 * </pre> 10342 * 10343 * <code>string version_url = 109;</code> 10344 * 10345 * @return The bytes for versionUrl. 10346 */ getVersionUrlBytes()10347 public com.google.protobuf.ByteString getVersionUrlBytes() { 10348 java.lang.Object ref = versionUrl_; 10349 if (ref instanceof String) { 10350 com.google.protobuf.ByteString b = 10351 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 10352 versionUrl_ = b; 10353 return b; 10354 } else { 10355 return (com.google.protobuf.ByteString) ref; 10356 } 10357 } 10358 /** 10359 * 10360 * 10361 * <pre> 10362 * Serving URL for this version. Example: 10363 * "https://myversion-dot-myservice-dot-myapp.appspot.com" 10364 * @OutputOnly 10365 * </pre> 10366 * 10367 * <code>string version_url = 109;</code> 10368 * 10369 * @param value The versionUrl to set. 10370 * @return This builder for chaining. 10371 */ setVersionUrl(java.lang.String value)10372 public Builder setVersionUrl(java.lang.String value) { 10373 if (value == null) { 10374 throw new NullPointerException(); 10375 } 10376 versionUrl_ = value; 10377 bitField1_ |= 0x00000010; 10378 onChanged(); 10379 return this; 10380 } 10381 /** 10382 * 10383 * 10384 * <pre> 10385 * Serving URL for this version. Example: 10386 * "https://myversion-dot-myservice-dot-myapp.appspot.com" 10387 * @OutputOnly 10388 * </pre> 10389 * 10390 * <code>string version_url = 109;</code> 10391 * 10392 * @return This builder for chaining. 10393 */ clearVersionUrl()10394 public Builder clearVersionUrl() { 10395 versionUrl_ = getDefaultInstance().getVersionUrl(); 10396 bitField1_ = (bitField1_ & ~0x00000010); 10397 onChanged(); 10398 return this; 10399 } 10400 /** 10401 * 10402 * 10403 * <pre> 10404 * Serving URL for this version. Example: 10405 * "https://myversion-dot-myservice-dot-myapp.appspot.com" 10406 * @OutputOnly 10407 * </pre> 10408 * 10409 * <code>string version_url = 109;</code> 10410 * 10411 * @param value The bytes for versionUrl to set. 10412 * @return This builder for chaining. 10413 */ setVersionUrlBytes(com.google.protobuf.ByteString value)10414 public Builder setVersionUrlBytes(com.google.protobuf.ByteString value) { 10415 if (value == null) { 10416 throw new NullPointerException(); 10417 } 10418 checkByteStringIsUtf8(value); 10419 versionUrl_ = value; 10420 bitField1_ |= 0x00000010; 10421 onChanged(); 10422 return this; 10423 } 10424 10425 private com.google.appengine.v1.EndpointsApiService endpointsApiService_; 10426 private com.google.protobuf.SingleFieldBuilderV3< 10427 com.google.appengine.v1.EndpointsApiService, 10428 com.google.appengine.v1.EndpointsApiService.Builder, 10429 com.google.appengine.v1.EndpointsApiServiceOrBuilder> 10430 endpointsApiServiceBuilder_; 10431 /** 10432 * 10433 * 10434 * <pre> 10435 * Cloud Endpoints configuration. 10436 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10437 * Proxy will be provided to serve the API implemented by the app. 10438 * </pre> 10439 * 10440 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10441 * 10442 * @return Whether the endpointsApiService field is set. 10443 */ hasEndpointsApiService()10444 public boolean hasEndpointsApiService() { 10445 return ((bitField1_ & 0x00000020) != 0); 10446 } 10447 /** 10448 * 10449 * 10450 * <pre> 10451 * Cloud Endpoints configuration. 10452 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10453 * Proxy will be provided to serve the API implemented by the app. 10454 * </pre> 10455 * 10456 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10457 * 10458 * @return The endpointsApiService. 10459 */ getEndpointsApiService()10460 public com.google.appengine.v1.EndpointsApiService getEndpointsApiService() { 10461 if (endpointsApiServiceBuilder_ == null) { 10462 return endpointsApiService_ == null 10463 ? com.google.appengine.v1.EndpointsApiService.getDefaultInstance() 10464 : endpointsApiService_; 10465 } else { 10466 return endpointsApiServiceBuilder_.getMessage(); 10467 } 10468 } 10469 /** 10470 * 10471 * 10472 * <pre> 10473 * Cloud Endpoints configuration. 10474 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10475 * Proxy will be provided to serve the API implemented by the app. 10476 * </pre> 10477 * 10478 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10479 */ setEndpointsApiService(com.google.appengine.v1.EndpointsApiService value)10480 public Builder setEndpointsApiService(com.google.appengine.v1.EndpointsApiService value) { 10481 if (endpointsApiServiceBuilder_ == null) { 10482 if (value == null) { 10483 throw new NullPointerException(); 10484 } 10485 endpointsApiService_ = value; 10486 } else { 10487 endpointsApiServiceBuilder_.setMessage(value); 10488 } 10489 bitField1_ |= 0x00000020; 10490 onChanged(); 10491 return this; 10492 } 10493 /** 10494 * 10495 * 10496 * <pre> 10497 * Cloud Endpoints configuration. 10498 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10499 * Proxy will be provided to serve the API implemented by the app. 10500 * </pre> 10501 * 10502 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10503 */ setEndpointsApiService( com.google.appengine.v1.EndpointsApiService.Builder builderForValue)10504 public Builder setEndpointsApiService( 10505 com.google.appengine.v1.EndpointsApiService.Builder builderForValue) { 10506 if (endpointsApiServiceBuilder_ == null) { 10507 endpointsApiService_ = builderForValue.build(); 10508 } else { 10509 endpointsApiServiceBuilder_.setMessage(builderForValue.build()); 10510 } 10511 bitField1_ |= 0x00000020; 10512 onChanged(); 10513 return this; 10514 } 10515 /** 10516 * 10517 * 10518 * <pre> 10519 * Cloud Endpoints configuration. 10520 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10521 * Proxy will be provided to serve the API implemented by the app. 10522 * </pre> 10523 * 10524 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10525 */ mergeEndpointsApiService(com.google.appengine.v1.EndpointsApiService value)10526 public Builder mergeEndpointsApiService(com.google.appengine.v1.EndpointsApiService value) { 10527 if (endpointsApiServiceBuilder_ == null) { 10528 if (((bitField1_ & 0x00000020) != 0) 10529 && endpointsApiService_ != null 10530 && endpointsApiService_ 10531 != com.google.appengine.v1.EndpointsApiService.getDefaultInstance()) { 10532 getEndpointsApiServiceBuilder().mergeFrom(value); 10533 } else { 10534 endpointsApiService_ = value; 10535 } 10536 } else { 10537 endpointsApiServiceBuilder_.mergeFrom(value); 10538 } 10539 bitField1_ |= 0x00000020; 10540 onChanged(); 10541 return this; 10542 } 10543 /** 10544 * 10545 * 10546 * <pre> 10547 * Cloud Endpoints configuration. 10548 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10549 * Proxy will be provided to serve the API implemented by the app. 10550 * </pre> 10551 * 10552 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10553 */ clearEndpointsApiService()10554 public Builder clearEndpointsApiService() { 10555 bitField1_ = (bitField1_ & ~0x00000020); 10556 endpointsApiService_ = null; 10557 if (endpointsApiServiceBuilder_ != null) { 10558 endpointsApiServiceBuilder_.dispose(); 10559 endpointsApiServiceBuilder_ = null; 10560 } 10561 onChanged(); 10562 return this; 10563 } 10564 /** 10565 * 10566 * 10567 * <pre> 10568 * Cloud Endpoints configuration. 10569 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10570 * Proxy will be provided to serve the API implemented by the app. 10571 * </pre> 10572 * 10573 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10574 */ getEndpointsApiServiceBuilder()10575 public com.google.appengine.v1.EndpointsApiService.Builder getEndpointsApiServiceBuilder() { 10576 bitField1_ |= 0x00000020; 10577 onChanged(); 10578 return getEndpointsApiServiceFieldBuilder().getBuilder(); 10579 } 10580 /** 10581 * 10582 * 10583 * <pre> 10584 * Cloud Endpoints configuration. 10585 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10586 * Proxy will be provided to serve the API implemented by the app. 10587 * </pre> 10588 * 10589 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10590 */ getEndpointsApiServiceOrBuilder()10591 public com.google.appengine.v1.EndpointsApiServiceOrBuilder getEndpointsApiServiceOrBuilder() { 10592 if (endpointsApiServiceBuilder_ != null) { 10593 return endpointsApiServiceBuilder_.getMessageOrBuilder(); 10594 } else { 10595 return endpointsApiService_ == null 10596 ? com.google.appengine.v1.EndpointsApiService.getDefaultInstance() 10597 : endpointsApiService_; 10598 } 10599 } 10600 /** 10601 * 10602 * 10603 * <pre> 10604 * Cloud Endpoints configuration. 10605 * If endpoints_api_service is set, the Cloud Endpoints Extensible Service 10606 * Proxy will be provided to serve the API implemented by the app. 10607 * </pre> 10608 * 10609 * <code>.google.appengine.v1.EndpointsApiService endpoints_api_service = 110;</code> 10610 */ 10611 private com.google.protobuf.SingleFieldBuilderV3< 10612 com.google.appengine.v1.EndpointsApiService, 10613 com.google.appengine.v1.EndpointsApiService.Builder, 10614 com.google.appengine.v1.EndpointsApiServiceOrBuilder> getEndpointsApiServiceFieldBuilder()10615 getEndpointsApiServiceFieldBuilder() { 10616 if (endpointsApiServiceBuilder_ == null) { 10617 endpointsApiServiceBuilder_ = 10618 new com.google.protobuf.SingleFieldBuilderV3< 10619 com.google.appengine.v1.EndpointsApiService, 10620 com.google.appengine.v1.EndpointsApiService.Builder, 10621 com.google.appengine.v1.EndpointsApiServiceOrBuilder>( 10622 getEndpointsApiService(), getParentForChildren(), isClean()); 10623 endpointsApiService_ = null; 10624 } 10625 return endpointsApiServiceBuilder_; 10626 } 10627 10628 private com.google.appengine.v1.Entrypoint entrypoint_; 10629 private com.google.protobuf.SingleFieldBuilderV3< 10630 com.google.appengine.v1.Entrypoint, 10631 com.google.appengine.v1.Entrypoint.Builder, 10632 com.google.appengine.v1.EntrypointOrBuilder> 10633 entrypointBuilder_; 10634 /** 10635 * 10636 * 10637 * <pre> 10638 * The entrypoint for the application. 10639 * </pre> 10640 * 10641 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10642 * 10643 * @return Whether the entrypoint field is set. 10644 */ hasEntrypoint()10645 public boolean hasEntrypoint() { 10646 return ((bitField1_ & 0x00000040) != 0); 10647 } 10648 /** 10649 * 10650 * 10651 * <pre> 10652 * The entrypoint for the application. 10653 * </pre> 10654 * 10655 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10656 * 10657 * @return The entrypoint. 10658 */ getEntrypoint()10659 public com.google.appengine.v1.Entrypoint getEntrypoint() { 10660 if (entrypointBuilder_ == null) { 10661 return entrypoint_ == null 10662 ? com.google.appengine.v1.Entrypoint.getDefaultInstance() 10663 : entrypoint_; 10664 } else { 10665 return entrypointBuilder_.getMessage(); 10666 } 10667 } 10668 /** 10669 * 10670 * 10671 * <pre> 10672 * The entrypoint for the application. 10673 * </pre> 10674 * 10675 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10676 */ setEntrypoint(com.google.appengine.v1.Entrypoint value)10677 public Builder setEntrypoint(com.google.appengine.v1.Entrypoint value) { 10678 if (entrypointBuilder_ == null) { 10679 if (value == null) { 10680 throw new NullPointerException(); 10681 } 10682 entrypoint_ = value; 10683 } else { 10684 entrypointBuilder_.setMessage(value); 10685 } 10686 bitField1_ |= 0x00000040; 10687 onChanged(); 10688 return this; 10689 } 10690 /** 10691 * 10692 * 10693 * <pre> 10694 * The entrypoint for the application. 10695 * </pre> 10696 * 10697 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10698 */ setEntrypoint(com.google.appengine.v1.Entrypoint.Builder builderForValue)10699 public Builder setEntrypoint(com.google.appengine.v1.Entrypoint.Builder builderForValue) { 10700 if (entrypointBuilder_ == null) { 10701 entrypoint_ = builderForValue.build(); 10702 } else { 10703 entrypointBuilder_.setMessage(builderForValue.build()); 10704 } 10705 bitField1_ |= 0x00000040; 10706 onChanged(); 10707 return this; 10708 } 10709 /** 10710 * 10711 * 10712 * <pre> 10713 * The entrypoint for the application. 10714 * </pre> 10715 * 10716 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10717 */ mergeEntrypoint(com.google.appengine.v1.Entrypoint value)10718 public Builder mergeEntrypoint(com.google.appengine.v1.Entrypoint value) { 10719 if (entrypointBuilder_ == null) { 10720 if (((bitField1_ & 0x00000040) != 0) 10721 && entrypoint_ != null 10722 && entrypoint_ != com.google.appengine.v1.Entrypoint.getDefaultInstance()) { 10723 getEntrypointBuilder().mergeFrom(value); 10724 } else { 10725 entrypoint_ = value; 10726 } 10727 } else { 10728 entrypointBuilder_.mergeFrom(value); 10729 } 10730 bitField1_ |= 0x00000040; 10731 onChanged(); 10732 return this; 10733 } 10734 /** 10735 * 10736 * 10737 * <pre> 10738 * The entrypoint for the application. 10739 * </pre> 10740 * 10741 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10742 */ clearEntrypoint()10743 public Builder clearEntrypoint() { 10744 bitField1_ = (bitField1_ & ~0x00000040); 10745 entrypoint_ = null; 10746 if (entrypointBuilder_ != null) { 10747 entrypointBuilder_.dispose(); 10748 entrypointBuilder_ = null; 10749 } 10750 onChanged(); 10751 return this; 10752 } 10753 /** 10754 * 10755 * 10756 * <pre> 10757 * The entrypoint for the application. 10758 * </pre> 10759 * 10760 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10761 */ getEntrypointBuilder()10762 public com.google.appengine.v1.Entrypoint.Builder getEntrypointBuilder() { 10763 bitField1_ |= 0x00000040; 10764 onChanged(); 10765 return getEntrypointFieldBuilder().getBuilder(); 10766 } 10767 /** 10768 * 10769 * 10770 * <pre> 10771 * The entrypoint for the application. 10772 * </pre> 10773 * 10774 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10775 */ getEntrypointOrBuilder()10776 public com.google.appengine.v1.EntrypointOrBuilder getEntrypointOrBuilder() { 10777 if (entrypointBuilder_ != null) { 10778 return entrypointBuilder_.getMessageOrBuilder(); 10779 } else { 10780 return entrypoint_ == null 10781 ? com.google.appengine.v1.Entrypoint.getDefaultInstance() 10782 : entrypoint_; 10783 } 10784 } 10785 /** 10786 * 10787 * 10788 * <pre> 10789 * The entrypoint for the application. 10790 * </pre> 10791 * 10792 * <code>.google.appengine.v1.Entrypoint entrypoint = 122;</code> 10793 */ 10794 private com.google.protobuf.SingleFieldBuilderV3< 10795 com.google.appengine.v1.Entrypoint, 10796 com.google.appengine.v1.Entrypoint.Builder, 10797 com.google.appengine.v1.EntrypointOrBuilder> getEntrypointFieldBuilder()10798 getEntrypointFieldBuilder() { 10799 if (entrypointBuilder_ == null) { 10800 entrypointBuilder_ = 10801 new com.google.protobuf.SingleFieldBuilderV3< 10802 com.google.appengine.v1.Entrypoint, 10803 com.google.appengine.v1.Entrypoint.Builder, 10804 com.google.appengine.v1.EntrypointOrBuilder>( 10805 getEntrypoint(), getParentForChildren(), isClean()); 10806 entrypoint_ = null; 10807 } 10808 return entrypointBuilder_; 10809 } 10810 10811 private com.google.appengine.v1.VpcAccessConnector vpcAccessConnector_; 10812 private com.google.protobuf.SingleFieldBuilderV3< 10813 com.google.appengine.v1.VpcAccessConnector, 10814 com.google.appengine.v1.VpcAccessConnector.Builder, 10815 com.google.appengine.v1.VpcAccessConnectorOrBuilder> 10816 vpcAccessConnectorBuilder_; 10817 /** 10818 * 10819 * 10820 * <pre> 10821 * Enables VPC connectivity for standard apps. 10822 * </pre> 10823 * 10824 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10825 * 10826 * @return Whether the vpcAccessConnector field is set. 10827 */ hasVpcAccessConnector()10828 public boolean hasVpcAccessConnector() { 10829 return ((bitField1_ & 0x00000080) != 0); 10830 } 10831 /** 10832 * 10833 * 10834 * <pre> 10835 * Enables VPC connectivity for standard apps. 10836 * </pre> 10837 * 10838 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10839 * 10840 * @return The vpcAccessConnector. 10841 */ getVpcAccessConnector()10842 public com.google.appengine.v1.VpcAccessConnector getVpcAccessConnector() { 10843 if (vpcAccessConnectorBuilder_ == null) { 10844 return vpcAccessConnector_ == null 10845 ? com.google.appengine.v1.VpcAccessConnector.getDefaultInstance() 10846 : vpcAccessConnector_; 10847 } else { 10848 return vpcAccessConnectorBuilder_.getMessage(); 10849 } 10850 } 10851 /** 10852 * 10853 * 10854 * <pre> 10855 * Enables VPC connectivity for standard apps. 10856 * </pre> 10857 * 10858 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10859 */ setVpcAccessConnector(com.google.appengine.v1.VpcAccessConnector value)10860 public Builder setVpcAccessConnector(com.google.appengine.v1.VpcAccessConnector value) { 10861 if (vpcAccessConnectorBuilder_ == null) { 10862 if (value == null) { 10863 throw new NullPointerException(); 10864 } 10865 vpcAccessConnector_ = value; 10866 } else { 10867 vpcAccessConnectorBuilder_.setMessage(value); 10868 } 10869 bitField1_ |= 0x00000080; 10870 onChanged(); 10871 return this; 10872 } 10873 /** 10874 * 10875 * 10876 * <pre> 10877 * Enables VPC connectivity for standard apps. 10878 * </pre> 10879 * 10880 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10881 */ setVpcAccessConnector( com.google.appengine.v1.VpcAccessConnector.Builder builderForValue)10882 public Builder setVpcAccessConnector( 10883 com.google.appengine.v1.VpcAccessConnector.Builder builderForValue) { 10884 if (vpcAccessConnectorBuilder_ == null) { 10885 vpcAccessConnector_ = builderForValue.build(); 10886 } else { 10887 vpcAccessConnectorBuilder_.setMessage(builderForValue.build()); 10888 } 10889 bitField1_ |= 0x00000080; 10890 onChanged(); 10891 return this; 10892 } 10893 /** 10894 * 10895 * 10896 * <pre> 10897 * Enables VPC connectivity for standard apps. 10898 * </pre> 10899 * 10900 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10901 */ mergeVpcAccessConnector(com.google.appengine.v1.VpcAccessConnector value)10902 public Builder mergeVpcAccessConnector(com.google.appengine.v1.VpcAccessConnector value) { 10903 if (vpcAccessConnectorBuilder_ == null) { 10904 if (((bitField1_ & 0x00000080) != 0) 10905 && vpcAccessConnector_ != null 10906 && vpcAccessConnector_ 10907 != com.google.appengine.v1.VpcAccessConnector.getDefaultInstance()) { 10908 getVpcAccessConnectorBuilder().mergeFrom(value); 10909 } else { 10910 vpcAccessConnector_ = value; 10911 } 10912 } else { 10913 vpcAccessConnectorBuilder_.mergeFrom(value); 10914 } 10915 bitField1_ |= 0x00000080; 10916 onChanged(); 10917 return this; 10918 } 10919 /** 10920 * 10921 * 10922 * <pre> 10923 * Enables VPC connectivity for standard apps. 10924 * </pre> 10925 * 10926 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10927 */ clearVpcAccessConnector()10928 public Builder clearVpcAccessConnector() { 10929 bitField1_ = (bitField1_ & ~0x00000080); 10930 vpcAccessConnector_ = null; 10931 if (vpcAccessConnectorBuilder_ != null) { 10932 vpcAccessConnectorBuilder_.dispose(); 10933 vpcAccessConnectorBuilder_ = null; 10934 } 10935 onChanged(); 10936 return this; 10937 } 10938 /** 10939 * 10940 * 10941 * <pre> 10942 * Enables VPC connectivity for standard apps. 10943 * </pre> 10944 * 10945 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10946 */ getVpcAccessConnectorBuilder()10947 public com.google.appengine.v1.VpcAccessConnector.Builder getVpcAccessConnectorBuilder() { 10948 bitField1_ |= 0x00000080; 10949 onChanged(); 10950 return getVpcAccessConnectorFieldBuilder().getBuilder(); 10951 } 10952 /** 10953 * 10954 * 10955 * <pre> 10956 * Enables VPC connectivity for standard apps. 10957 * </pre> 10958 * 10959 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10960 */ getVpcAccessConnectorOrBuilder()10961 public com.google.appengine.v1.VpcAccessConnectorOrBuilder getVpcAccessConnectorOrBuilder() { 10962 if (vpcAccessConnectorBuilder_ != null) { 10963 return vpcAccessConnectorBuilder_.getMessageOrBuilder(); 10964 } else { 10965 return vpcAccessConnector_ == null 10966 ? com.google.appengine.v1.VpcAccessConnector.getDefaultInstance() 10967 : vpcAccessConnector_; 10968 } 10969 } 10970 /** 10971 * 10972 * 10973 * <pre> 10974 * Enables VPC connectivity for standard apps. 10975 * </pre> 10976 * 10977 * <code>.google.appengine.v1.VpcAccessConnector vpc_access_connector = 121;</code> 10978 */ 10979 private com.google.protobuf.SingleFieldBuilderV3< 10980 com.google.appengine.v1.VpcAccessConnector, 10981 com.google.appengine.v1.VpcAccessConnector.Builder, 10982 com.google.appengine.v1.VpcAccessConnectorOrBuilder> getVpcAccessConnectorFieldBuilder()10983 getVpcAccessConnectorFieldBuilder() { 10984 if (vpcAccessConnectorBuilder_ == null) { 10985 vpcAccessConnectorBuilder_ = 10986 new com.google.protobuf.SingleFieldBuilderV3< 10987 com.google.appengine.v1.VpcAccessConnector, 10988 com.google.appengine.v1.VpcAccessConnector.Builder, 10989 com.google.appengine.v1.VpcAccessConnectorOrBuilder>( 10990 getVpcAccessConnector(), getParentForChildren(), isClean()); 10991 vpcAccessConnector_ = null; 10992 } 10993 return vpcAccessConnectorBuilder_; 10994 } 10995 10996 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)10997 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 10998 return super.setUnknownFields(unknownFields); 10999 } 11000 11001 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)11002 public final Builder mergeUnknownFields( 11003 final com.google.protobuf.UnknownFieldSet unknownFields) { 11004 return super.mergeUnknownFields(unknownFields); 11005 } 11006 11007 // @@protoc_insertion_point(builder_scope:google.appengine.v1.Version) 11008 } 11009 11010 // @@protoc_insertion_point(class_scope:google.appengine.v1.Version) 11011 private static final com.google.appengine.v1.Version DEFAULT_INSTANCE; 11012 11013 static { 11014 DEFAULT_INSTANCE = new com.google.appengine.v1.Version(); 11015 } 11016 getDefaultInstance()11017 public static com.google.appengine.v1.Version getDefaultInstance() { 11018 return DEFAULT_INSTANCE; 11019 } 11020 11021 private static final com.google.protobuf.Parser<Version> PARSER = 11022 new com.google.protobuf.AbstractParser<Version>() { 11023 @java.lang.Override 11024 public Version parsePartialFrom( 11025 com.google.protobuf.CodedInputStream input, 11026 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11027 throws com.google.protobuf.InvalidProtocolBufferException { 11028 Builder builder = newBuilder(); 11029 try { 11030 builder.mergeFrom(input, extensionRegistry); 11031 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11032 throw e.setUnfinishedMessage(builder.buildPartial()); 11033 } catch (com.google.protobuf.UninitializedMessageException e) { 11034 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 11035 } catch (java.io.IOException e) { 11036 throw new com.google.protobuf.InvalidProtocolBufferException(e) 11037 .setUnfinishedMessage(builder.buildPartial()); 11038 } 11039 return builder.buildPartial(); 11040 } 11041 }; 11042 parser()11043 public static com.google.protobuf.Parser<Version> parser() { 11044 return PARSER; 11045 } 11046 11047 @java.lang.Override getParserForType()11048 public com.google.protobuf.Parser<Version> getParserForType() { 11049 return PARSER; 11050 } 11051 11052 @java.lang.Override getDefaultInstanceForType()11053 public com.google.appengine.v1.Version getDefaultInstanceForType() { 11054 return DEFAULT_INSTANCE; 11055 } 11056 } 11057