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/application.proto 18 19 package com.google.appengine.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * An Application resource contains the top-level configuration of an App 26 * Engine application. 27 * </pre> 28 * 29 * Protobuf type {@code google.appengine.v1.Application} 30 */ 31 public final class Application extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.appengine.v1.Application) 34 ApplicationOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use Application.newBuilder() to construct. Application(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private Application(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 Application()41 private Application() { 42 name_ = ""; 43 id_ = ""; 44 dispatchRules_ = java.util.Collections.emptyList(); 45 authDomain_ = ""; 46 locationId_ = ""; 47 codeBucket_ = ""; 48 servingStatus_ = 0; 49 defaultHostname_ = ""; 50 defaultBucket_ = ""; 51 serviceAccount_ = ""; 52 gcrDomain_ = ""; 53 databaseType_ = 0; 54 } 55 56 @java.lang.Override 57 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)58 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 59 return new Application(); 60 } 61 62 @java.lang.Override getUnknownFields()63 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 64 return this.unknownFields; 65 } 66 getDescriptor()67 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 68 return com.google.appengine.v1.ApplicationProto 69 .internal_static_google_appengine_v1_Application_descriptor; 70 } 71 72 @java.lang.Override 73 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()74 internalGetFieldAccessorTable() { 75 return com.google.appengine.v1.ApplicationProto 76 .internal_static_google_appengine_v1_Application_fieldAccessorTable 77 .ensureFieldAccessorsInitialized( 78 com.google.appengine.v1.Application.class, 79 com.google.appengine.v1.Application.Builder.class); 80 } 81 82 /** Protobuf enum {@code google.appengine.v1.Application.ServingStatus} */ 83 public enum ServingStatus implements com.google.protobuf.ProtocolMessageEnum { 84 /** 85 * 86 * 87 * <pre> 88 * Serving status is unspecified. 89 * </pre> 90 * 91 * <code>UNSPECIFIED = 0;</code> 92 */ 93 UNSPECIFIED(0), 94 /** 95 * 96 * 97 * <pre> 98 * Application is serving. 99 * </pre> 100 * 101 * <code>SERVING = 1;</code> 102 */ 103 SERVING(1), 104 /** 105 * 106 * 107 * <pre> 108 * Application has been disabled by the user. 109 * </pre> 110 * 111 * <code>USER_DISABLED = 2;</code> 112 */ 113 USER_DISABLED(2), 114 /** 115 * 116 * 117 * <pre> 118 * Application has been disabled by the system. 119 * </pre> 120 * 121 * <code>SYSTEM_DISABLED = 3;</code> 122 */ 123 SYSTEM_DISABLED(3), 124 UNRECOGNIZED(-1), 125 ; 126 127 /** 128 * 129 * 130 * <pre> 131 * Serving status is unspecified. 132 * </pre> 133 * 134 * <code>UNSPECIFIED = 0;</code> 135 */ 136 public static final int UNSPECIFIED_VALUE = 0; 137 /** 138 * 139 * 140 * <pre> 141 * Application is serving. 142 * </pre> 143 * 144 * <code>SERVING = 1;</code> 145 */ 146 public static final int SERVING_VALUE = 1; 147 /** 148 * 149 * 150 * <pre> 151 * Application has been disabled by the user. 152 * </pre> 153 * 154 * <code>USER_DISABLED = 2;</code> 155 */ 156 public static final int USER_DISABLED_VALUE = 2; 157 /** 158 * 159 * 160 * <pre> 161 * Application has been disabled by the system. 162 * </pre> 163 * 164 * <code>SYSTEM_DISABLED = 3;</code> 165 */ 166 public static final int SYSTEM_DISABLED_VALUE = 3; 167 getNumber()168 public final int getNumber() { 169 if (this == UNRECOGNIZED) { 170 throw new java.lang.IllegalArgumentException( 171 "Can't get the number of an unknown enum value."); 172 } 173 return value; 174 } 175 176 /** 177 * @param value The numeric wire value of the corresponding enum entry. 178 * @return The enum associated with the given numeric wire value. 179 * @deprecated Use {@link #forNumber(int)} instead. 180 */ 181 @java.lang.Deprecated valueOf(int value)182 public static ServingStatus valueOf(int value) { 183 return forNumber(value); 184 } 185 186 /** 187 * @param value The numeric wire value of the corresponding enum entry. 188 * @return The enum associated with the given numeric wire value. 189 */ forNumber(int value)190 public static ServingStatus forNumber(int value) { 191 switch (value) { 192 case 0: 193 return UNSPECIFIED; 194 case 1: 195 return SERVING; 196 case 2: 197 return USER_DISABLED; 198 case 3: 199 return SYSTEM_DISABLED; 200 default: 201 return null; 202 } 203 } 204 internalGetValueMap()205 public static com.google.protobuf.Internal.EnumLiteMap<ServingStatus> internalGetValueMap() { 206 return internalValueMap; 207 } 208 209 private static final com.google.protobuf.Internal.EnumLiteMap<ServingStatus> internalValueMap = 210 new com.google.protobuf.Internal.EnumLiteMap<ServingStatus>() { 211 public ServingStatus findValueByNumber(int number) { 212 return ServingStatus.forNumber(number); 213 } 214 }; 215 getValueDescriptor()216 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 217 if (this == UNRECOGNIZED) { 218 throw new java.lang.IllegalStateException( 219 "Can't get the descriptor of an unrecognized enum value."); 220 } 221 return getDescriptor().getValues().get(ordinal()); 222 } 223 getDescriptorForType()224 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 225 return getDescriptor(); 226 } 227 getDescriptor()228 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 229 return com.google.appengine.v1.Application.getDescriptor().getEnumTypes().get(0); 230 } 231 232 private static final ServingStatus[] VALUES = values(); 233 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)234 public static ServingStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 235 if (desc.getType() != getDescriptor()) { 236 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 237 } 238 if (desc.getIndex() == -1) { 239 return UNRECOGNIZED; 240 } 241 return VALUES[desc.getIndex()]; 242 } 243 244 private final int value; 245 ServingStatus(int value)246 private ServingStatus(int value) { 247 this.value = value; 248 } 249 250 // @@protoc_insertion_point(enum_scope:google.appengine.v1.Application.ServingStatus) 251 } 252 253 /** Protobuf enum {@code google.appengine.v1.Application.DatabaseType} */ 254 public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { 255 /** 256 * 257 * 258 * <pre> 259 * Database type is unspecified. 260 * </pre> 261 * 262 * <code>DATABASE_TYPE_UNSPECIFIED = 0;</code> 263 */ 264 DATABASE_TYPE_UNSPECIFIED(0), 265 /** 266 * 267 * 268 * <pre> 269 * Cloud Datastore 270 * </pre> 271 * 272 * <code>CLOUD_DATASTORE = 1;</code> 273 */ 274 CLOUD_DATASTORE(1), 275 /** 276 * 277 * 278 * <pre> 279 * Cloud Firestore Native 280 * </pre> 281 * 282 * <code>CLOUD_FIRESTORE = 2;</code> 283 */ 284 CLOUD_FIRESTORE(2), 285 /** 286 * 287 * 288 * <pre> 289 * Cloud Firestore in Datastore Mode 290 * </pre> 291 * 292 * <code>CLOUD_DATASTORE_COMPATIBILITY = 3;</code> 293 */ 294 CLOUD_DATASTORE_COMPATIBILITY(3), 295 UNRECOGNIZED(-1), 296 ; 297 298 /** 299 * 300 * 301 * <pre> 302 * Database type is unspecified. 303 * </pre> 304 * 305 * <code>DATABASE_TYPE_UNSPECIFIED = 0;</code> 306 */ 307 public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; 308 /** 309 * 310 * 311 * <pre> 312 * Cloud Datastore 313 * </pre> 314 * 315 * <code>CLOUD_DATASTORE = 1;</code> 316 */ 317 public static final int CLOUD_DATASTORE_VALUE = 1; 318 /** 319 * 320 * 321 * <pre> 322 * Cloud Firestore Native 323 * </pre> 324 * 325 * <code>CLOUD_FIRESTORE = 2;</code> 326 */ 327 public static final int CLOUD_FIRESTORE_VALUE = 2; 328 /** 329 * 330 * 331 * <pre> 332 * Cloud Firestore in Datastore Mode 333 * </pre> 334 * 335 * <code>CLOUD_DATASTORE_COMPATIBILITY = 3;</code> 336 */ 337 public static final int CLOUD_DATASTORE_COMPATIBILITY_VALUE = 3; 338 getNumber()339 public final int getNumber() { 340 if (this == UNRECOGNIZED) { 341 throw new java.lang.IllegalArgumentException( 342 "Can't get the number of an unknown enum value."); 343 } 344 return value; 345 } 346 347 /** 348 * @param value The numeric wire value of the corresponding enum entry. 349 * @return The enum associated with the given numeric wire value. 350 * @deprecated Use {@link #forNumber(int)} instead. 351 */ 352 @java.lang.Deprecated valueOf(int value)353 public static DatabaseType valueOf(int value) { 354 return forNumber(value); 355 } 356 357 /** 358 * @param value The numeric wire value of the corresponding enum entry. 359 * @return The enum associated with the given numeric wire value. 360 */ forNumber(int value)361 public static DatabaseType forNumber(int value) { 362 switch (value) { 363 case 0: 364 return DATABASE_TYPE_UNSPECIFIED; 365 case 1: 366 return CLOUD_DATASTORE; 367 case 2: 368 return CLOUD_FIRESTORE; 369 case 3: 370 return CLOUD_DATASTORE_COMPATIBILITY; 371 default: 372 return null; 373 } 374 } 375 internalGetValueMap()376 public static com.google.protobuf.Internal.EnumLiteMap<DatabaseType> internalGetValueMap() { 377 return internalValueMap; 378 } 379 380 private static final com.google.protobuf.Internal.EnumLiteMap<DatabaseType> internalValueMap = 381 new com.google.protobuf.Internal.EnumLiteMap<DatabaseType>() { 382 public DatabaseType findValueByNumber(int number) { 383 return DatabaseType.forNumber(number); 384 } 385 }; 386 getValueDescriptor()387 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 388 if (this == UNRECOGNIZED) { 389 throw new java.lang.IllegalStateException( 390 "Can't get the descriptor of an unrecognized enum value."); 391 } 392 return getDescriptor().getValues().get(ordinal()); 393 } 394 getDescriptorForType()395 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 396 return getDescriptor(); 397 } 398 getDescriptor()399 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 400 return com.google.appengine.v1.Application.getDescriptor().getEnumTypes().get(1); 401 } 402 403 private static final DatabaseType[] VALUES = values(); 404 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)405 public static DatabaseType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 406 if (desc.getType() != getDescriptor()) { 407 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 408 } 409 if (desc.getIndex() == -1) { 410 return UNRECOGNIZED; 411 } 412 return VALUES[desc.getIndex()]; 413 } 414 415 private final int value; 416 DatabaseType(int value)417 private DatabaseType(int value) { 418 this.value = value; 419 } 420 421 // @@protoc_insertion_point(enum_scope:google.appengine.v1.Application.DatabaseType) 422 } 423 424 public interface IdentityAwareProxyOrBuilder 425 extends 426 // @@protoc_insertion_point(interface_extends:google.appengine.v1.Application.IdentityAwareProxy) 427 com.google.protobuf.MessageOrBuilder { 428 429 /** 430 * 431 * 432 * <pre> 433 * Whether the serving infrastructure will authenticate and 434 * authorize all incoming requests. 435 * If true, the `oauth2_client_id` and `oauth2_client_secret` 436 * fields must be non-empty. 437 * </pre> 438 * 439 * <code>bool enabled = 1;</code> 440 * 441 * @return The enabled. 442 */ getEnabled()443 boolean getEnabled(); 444 445 /** 446 * 447 * 448 * <pre> 449 * OAuth2 client ID to use for the authentication flow. 450 * </pre> 451 * 452 * <code>string oauth2_client_id = 2;</code> 453 * 454 * @return The oauth2ClientId. 455 */ getOauth2ClientId()456 java.lang.String getOauth2ClientId(); 457 /** 458 * 459 * 460 * <pre> 461 * OAuth2 client ID to use for the authentication flow. 462 * </pre> 463 * 464 * <code>string oauth2_client_id = 2;</code> 465 * 466 * @return The bytes for oauth2ClientId. 467 */ getOauth2ClientIdBytes()468 com.google.protobuf.ByteString getOauth2ClientIdBytes(); 469 470 /** 471 * 472 * 473 * <pre> 474 * OAuth2 client secret to use for the authentication flow. 475 * For security reasons, this value cannot be retrieved via the API. 476 * Instead, the SHA-256 hash of the value is returned in the 477 * `oauth2_client_secret_sha256` field. 478 * @InputOnly 479 * </pre> 480 * 481 * <code>string oauth2_client_secret = 3;</code> 482 * 483 * @return The oauth2ClientSecret. 484 */ getOauth2ClientSecret()485 java.lang.String getOauth2ClientSecret(); 486 /** 487 * 488 * 489 * <pre> 490 * OAuth2 client secret to use for the authentication flow. 491 * For security reasons, this value cannot be retrieved via the API. 492 * Instead, the SHA-256 hash of the value is returned in the 493 * `oauth2_client_secret_sha256` field. 494 * @InputOnly 495 * </pre> 496 * 497 * <code>string oauth2_client_secret = 3;</code> 498 * 499 * @return The bytes for oauth2ClientSecret. 500 */ getOauth2ClientSecretBytes()501 com.google.protobuf.ByteString getOauth2ClientSecretBytes(); 502 503 /** 504 * 505 * 506 * <pre> 507 * Hex-encoded SHA-256 hash of the client secret. 508 * @OutputOnly 509 * </pre> 510 * 511 * <code>string oauth2_client_secret_sha256 = 4;</code> 512 * 513 * @return The oauth2ClientSecretSha256. 514 */ getOauth2ClientSecretSha256()515 java.lang.String getOauth2ClientSecretSha256(); 516 /** 517 * 518 * 519 * <pre> 520 * Hex-encoded SHA-256 hash of the client secret. 521 * @OutputOnly 522 * </pre> 523 * 524 * <code>string oauth2_client_secret_sha256 = 4;</code> 525 * 526 * @return The bytes for oauth2ClientSecretSha256. 527 */ getOauth2ClientSecretSha256Bytes()528 com.google.protobuf.ByteString getOauth2ClientSecretSha256Bytes(); 529 } 530 /** 531 * 532 * 533 * <pre> 534 * Identity-Aware Proxy 535 * </pre> 536 * 537 * Protobuf type {@code google.appengine.v1.Application.IdentityAwareProxy} 538 */ 539 public static final class IdentityAwareProxy extends com.google.protobuf.GeneratedMessageV3 540 implements 541 // @@protoc_insertion_point(message_implements:google.appengine.v1.Application.IdentityAwareProxy) 542 IdentityAwareProxyOrBuilder { 543 private static final long serialVersionUID = 0L; 544 // Use IdentityAwareProxy.newBuilder() to construct. IdentityAwareProxy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)545 private IdentityAwareProxy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 546 super(builder); 547 } 548 IdentityAwareProxy()549 private IdentityAwareProxy() { 550 oauth2ClientId_ = ""; 551 oauth2ClientSecret_ = ""; 552 oauth2ClientSecretSha256_ = ""; 553 } 554 555 @java.lang.Override 556 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)557 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 558 return new IdentityAwareProxy(); 559 } 560 561 @java.lang.Override getUnknownFields()562 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 563 return this.unknownFields; 564 } 565 getDescriptor()566 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 567 return com.google.appengine.v1.ApplicationProto 568 .internal_static_google_appengine_v1_Application_IdentityAwareProxy_descriptor; 569 } 570 571 @java.lang.Override 572 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()573 internalGetFieldAccessorTable() { 574 return com.google.appengine.v1.ApplicationProto 575 .internal_static_google_appengine_v1_Application_IdentityAwareProxy_fieldAccessorTable 576 .ensureFieldAccessorsInitialized( 577 com.google.appengine.v1.Application.IdentityAwareProxy.class, 578 com.google.appengine.v1.Application.IdentityAwareProxy.Builder.class); 579 } 580 581 public static final int ENABLED_FIELD_NUMBER = 1; 582 private boolean enabled_ = false; 583 /** 584 * 585 * 586 * <pre> 587 * Whether the serving infrastructure will authenticate and 588 * authorize all incoming requests. 589 * If true, the `oauth2_client_id` and `oauth2_client_secret` 590 * fields must be non-empty. 591 * </pre> 592 * 593 * <code>bool enabled = 1;</code> 594 * 595 * @return The enabled. 596 */ 597 @java.lang.Override getEnabled()598 public boolean getEnabled() { 599 return enabled_; 600 } 601 602 public static final int OAUTH2_CLIENT_ID_FIELD_NUMBER = 2; 603 604 @SuppressWarnings("serial") 605 private volatile java.lang.Object oauth2ClientId_ = ""; 606 /** 607 * 608 * 609 * <pre> 610 * OAuth2 client ID to use for the authentication flow. 611 * </pre> 612 * 613 * <code>string oauth2_client_id = 2;</code> 614 * 615 * @return The oauth2ClientId. 616 */ 617 @java.lang.Override getOauth2ClientId()618 public java.lang.String getOauth2ClientId() { 619 java.lang.Object ref = oauth2ClientId_; 620 if (ref instanceof java.lang.String) { 621 return (java.lang.String) ref; 622 } else { 623 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 624 java.lang.String s = bs.toStringUtf8(); 625 oauth2ClientId_ = s; 626 return s; 627 } 628 } 629 /** 630 * 631 * 632 * <pre> 633 * OAuth2 client ID to use for the authentication flow. 634 * </pre> 635 * 636 * <code>string oauth2_client_id = 2;</code> 637 * 638 * @return The bytes for oauth2ClientId. 639 */ 640 @java.lang.Override getOauth2ClientIdBytes()641 public com.google.protobuf.ByteString getOauth2ClientIdBytes() { 642 java.lang.Object ref = oauth2ClientId_; 643 if (ref instanceof java.lang.String) { 644 com.google.protobuf.ByteString b = 645 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 646 oauth2ClientId_ = b; 647 return b; 648 } else { 649 return (com.google.protobuf.ByteString) ref; 650 } 651 } 652 653 public static final int OAUTH2_CLIENT_SECRET_FIELD_NUMBER = 3; 654 655 @SuppressWarnings("serial") 656 private volatile java.lang.Object oauth2ClientSecret_ = ""; 657 /** 658 * 659 * 660 * <pre> 661 * OAuth2 client secret to use for the authentication flow. 662 * For security reasons, this value cannot be retrieved via the API. 663 * Instead, the SHA-256 hash of the value is returned in the 664 * `oauth2_client_secret_sha256` field. 665 * @InputOnly 666 * </pre> 667 * 668 * <code>string oauth2_client_secret = 3;</code> 669 * 670 * @return The oauth2ClientSecret. 671 */ 672 @java.lang.Override getOauth2ClientSecret()673 public java.lang.String getOauth2ClientSecret() { 674 java.lang.Object ref = oauth2ClientSecret_; 675 if (ref instanceof java.lang.String) { 676 return (java.lang.String) ref; 677 } else { 678 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 679 java.lang.String s = bs.toStringUtf8(); 680 oauth2ClientSecret_ = s; 681 return s; 682 } 683 } 684 /** 685 * 686 * 687 * <pre> 688 * OAuth2 client secret to use for the authentication flow. 689 * For security reasons, this value cannot be retrieved via the API. 690 * Instead, the SHA-256 hash of the value is returned in the 691 * `oauth2_client_secret_sha256` field. 692 * @InputOnly 693 * </pre> 694 * 695 * <code>string oauth2_client_secret = 3;</code> 696 * 697 * @return The bytes for oauth2ClientSecret. 698 */ 699 @java.lang.Override getOauth2ClientSecretBytes()700 public com.google.protobuf.ByteString getOauth2ClientSecretBytes() { 701 java.lang.Object ref = oauth2ClientSecret_; 702 if (ref instanceof java.lang.String) { 703 com.google.protobuf.ByteString b = 704 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 705 oauth2ClientSecret_ = b; 706 return b; 707 } else { 708 return (com.google.protobuf.ByteString) ref; 709 } 710 } 711 712 public static final int OAUTH2_CLIENT_SECRET_SHA256_FIELD_NUMBER = 4; 713 714 @SuppressWarnings("serial") 715 private volatile java.lang.Object oauth2ClientSecretSha256_ = ""; 716 /** 717 * 718 * 719 * <pre> 720 * Hex-encoded SHA-256 hash of the client secret. 721 * @OutputOnly 722 * </pre> 723 * 724 * <code>string oauth2_client_secret_sha256 = 4;</code> 725 * 726 * @return The oauth2ClientSecretSha256. 727 */ 728 @java.lang.Override getOauth2ClientSecretSha256()729 public java.lang.String getOauth2ClientSecretSha256() { 730 java.lang.Object ref = oauth2ClientSecretSha256_; 731 if (ref instanceof java.lang.String) { 732 return (java.lang.String) ref; 733 } else { 734 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 735 java.lang.String s = bs.toStringUtf8(); 736 oauth2ClientSecretSha256_ = s; 737 return s; 738 } 739 } 740 /** 741 * 742 * 743 * <pre> 744 * Hex-encoded SHA-256 hash of the client secret. 745 * @OutputOnly 746 * </pre> 747 * 748 * <code>string oauth2_client_secret_sha256 = 4;</code> 749 * 750 * @return The bytes for oauth2ClientSecretSha256. 751 */ 752 @java.lang.Override getOauth2ClientSecretSha256Bytes()753 public com.google.protobuf.ByteString getOauth2ClientSecretSha256Bytes() { 754 java.lang.Object ref = oauth2ClientSecretSha256_; 755 if (ref instanceof java.lang.String) { 756 com.google.protobuf.ByteString b = 757 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 758 oauth2ClientSecretSha256_ = b; 759 return b; 760 } else { 761 return (com.google.protobuf.ByteString) ref; 762 } 763 } 764 765 private byte memoizedIsInitialized = -1; 766 767 @java.lang.Override isInitialized()768 public final boolean isInitialized() { 769 byte isInitialized = memoizedIsInitialized; 770 if (isInitialized == 1) return true; 771 if (isInitialized == 0) return false; 772 773 memoizedIsInitialized = 1; 774 return true; 775 } 776 777 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)778 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 779 if (enabled_ != false) { 780 output.writeBool(1, enabled_); 781 } 782 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2ClientId_)) { 783 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oauth2ClientId_); 784 } 785 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2ClientSecret_)) { 786 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauth2ClientSecret_); 787 } 788 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2ClientSecretSha256_)) { 789 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oauth2ClientSecretSha256_); 790 } 791 getUnknownFields().writeTo(output); 792 } 793 794 @java.lang.Override getSerializedSize()795 public int getSerializedSize() { 796 int size = memoizedSize; 797 if (size != -1) return size; 798 799 size = 0; 800 if (enabled_ != false) { 801 size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); 802 } 803 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2ClientId_)) { 804 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oauth2ClientId_); 805 } 806 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2ClientSecret_)) { 807 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauth2ClientSecret_); 808 } 809 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2ClientSecretSha256_)) { 810 size += 811 com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oauth2ClientSecretSha256_); 812 } 813 size += getUnknownFields().getSerializedSize(); 814 memoizedSize = size; 815 return size; 816 } 817 818 @java.lang.Override equals(final java.lang.Object obj)819 public boolean equals(final java.lang.Object obj) { 820 if (obj == this) { 821 return true; 822 } 823 if (!(obj instanceof com.google.appengine.v1.Application.IdentityAwareProxy)) { 824 return super.equals(obj); 825 } 826 com.google.appengine.v1.Application.IdentityAwareProxy other = 827 (com.google.appengine.v1.Application.IdentityAwareProxy) obj; 828 829 if (getEnabled() != other.getEnabled()) return false; 830 if (!getOauth2ClientId().equals(other.getOauth2ClientId())) return false; 831 if (!getOauth2ClientSecret().equals(other.getOauth2ClientSecret())) return false; 832 if (!getOauth2ClientSecretSha256().equals(other.getOauth2ClientSecretSha256())) return false; 833 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 834 return true; 835 } 836 837 @java.lang.Override hashCode()838 public int hashCode() { 839 if (memoizedHashCode != 0) { 840 return memoizedHashCode; 841 } 842 int hash = 41; 843 hash = (19 * hash) + getDescriptor().hashCode(); 844 hash = (37 * hash) + ENABLED_FIELD_NUMBER; 845 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); 846 hash = (37 * hash) + OAUTH2_CLIENT_ID_FIELD_NUMBER; 847 hash = (53 * hash) + getOauth2ClientId().hashCode(); 848 hash = (37 * hash) + OAUTH2_CLIENT_SECRET_FIELD_NUMBER; 849 hash = (53 * hash) + getOauth2ClientSecret().hashCode(); 850 hash = (37 * hash) + OAUTH2_CLIENT_SECRET_SHA256_FIELD_NUMBER; 851 hash = (53 * hash) + getOauth2ClientSecretSha256().hashCode(); 852 hash = (29 * hash) + getUnknownFields().hashCode(); 853 memoizedHashCode = hash; 854 return hash; 855 } 856 parseFrom( java.nio.ByteBuffer data)857 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 858 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 859 return PARSER.parseFrom(data); 860 } 861 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)862 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 863 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 864 throws com.google.protobuf.InvalidProtocolBufferException { 865 return PARSER.parseFrom(data, extensionRegistry); 866 } 867 parseFrom( com.google.protobuf.ByteString data)868 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 869 com.google.protobuf.ByteString data) 870 throws com.google.protobuf.InvalidProtocolBufferException { 871 return PARSER.parseFrom(data); 872 } 873 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)874 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 875 com.google.protobuf.ByteString data, 876 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 877 throws com.google.protobuf.InvalidProtocolBufferException { 878 return PARSER.parseFrom(data, extensionRegistry); 879 } 880 parseFrom(byte[] data)881 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom(byte[] data) 882 throws com.google.protobuf.InvalidProtocolBufferException { 883 return PARSER.parseFrom(data); 884 } 885 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)886 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 887 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 888 throws com.google.protobuf.InvalidProtocolBufferException { 889 return PARSER.parseFrom(data, extensionRegistry); 890 } 891 parseFrom( java.io.InputStream input)892 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 893 java.io.InputStream input) throws java.io.IOException { 894 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 895 } 896 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)897 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 898 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 899 throws java.io.IOException { 900 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 901 PARSER, input, extensionRegistry); 902 } 903 parseDelimitedFrom( java.io.InputStream input)904 public static com.google.appengine.v1.Application.IdentityAwareProxy parseDelimitedFrom( 905 java.io.InputStream input) throws java.io.IOException { 906 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 907 } 908 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)909 public static com.google.appengine.v1.Application.IdentityAwareProxy parseDelimitedFrom( 910 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 911 throws java.io.IOException { 912 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 913 PARSER, input, extensionRegistry); 914 } 915 parseFrom( com.google.protobuf.CodedInputStream input)916 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 917 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 918 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 919 } 920 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)921 public static com.google.appengine.v1.Application.IdentityAwareProxy parseFrom( 922 com.google.protobuf.CodedInputStream input, 923 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 924 throws java.io.IOException { 925 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 926 PARSER, input, extensionRegistry); 927 } 928 929 @java.lang.Override newBuilderForType()930 public Builder newBuilderForType() { 931 return newBuilder(); 932 } 933 newBuilder()934 public static Builder newBuilder() { 935 return DEFAULT_INSTANCE.toBuilder(); 936 } 937 newBuilder( com.google.appengine.v1.Application.IdentityAwareProxy prototype)938 public static Builder newBuilder( 939 com.google.appengine.v1.Application.IdentityAwareProxy prototype) { 940 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 941 } 942 943 @java.lang.Override toBuilder()944 public Builder toBuilder() { 945 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 946 } 947 948 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)949 protected Builder newBuilderForType( 950 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 951 Builder builder = new Builder(parent); 952 return builder; 953 } 954 /** 955 * 956 * 957 * <pre> 958 * Identity-Aware Proxy 959 * </pre> 960 * 961 * Protobuf type {@code google.appengine.v1.Application.IdentityAwareProxy} 962 */ 963 public static final class Builder 964 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 965 implements 966 // @@protoc_insertion_point(builder_implements:google.appengine.v1.Application.IdentityAwareProxy) 967 com.google.appengine.v1.Application.IdentityAwareProxyOrBuilder { getDescriptor()968 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 969 return com.google.appengine.v1.ApplicationProto 970 .internal_static_google_appengine_v1_Application_IdentityAwareProxy_descriptor; 971 } 972 973 @java.lang.Override 974 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()975 internalGetFieldAccessorTable() { 976 return com.google.appengine.v1.ApplicationProto 977 .internal_static_google_appengine_v1_Application_IdentityAwareProxy_fieldAccessorTable 978 .ensureFieldAccessorsInitialized( 979 com.google.appengine.v1.Application.IdentityAwareProxy.class, 980 com.google.appengine.v1.Application.IdentityAwareProxy.Builder.class); 981 } 982 983 // Construct using com.google.appengine.v1.Application.IdentityAwareProxy.newBuilder() Builder()984 private Builder() {} 985 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)986 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 987 super(parent); 988 } 989 990 @java.lang.Override clear()991 public Builder clear() { 992 super.clear(); 993 bitField0_ = 0; 994 enabled_ = false; 995 oauth2ClientId_ = ""; 996 oauth2ClientSecret_ = ""; 997 oauth2ClientSecretSha256_ = ""; 998 return this; 999 } 1000 1001 @java.lang.Override getDescriptorForType()1002 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1003 return com.google.appengine.v1.ApplicationProto 1004 .internal_static_google_appengine_v1_Application_IdentityAwareProxy_descriptor; 1005 } 1006 1007 @java.lang.Override getDefaultInstanceForType()1008 public com.google.appengine.v1.Application.IdentityAwareProxy getDefaultInstanceForType() { 1009 return com.google.appengine.v1.Application.IdentityAwareProxy.getDefaultInstance(); 1010 } 1011 1012 @java.lang.Override build()1013 public com.google.appengine.v1.Application.IdentityAwareProxy build() { 1014 com.google.appengine.v1.Application.IdentityAwareProxy result = buildPartial(); 1015 if (!result.isInitialized()) { 1016 throw newUninitializedMessageException(result); 1017 } 1018 return result; 1019 } 1020 1021 @java.lang.Override buildPartial()1022 public com.google.appengine.v1.Application.IdentityAwareProxy buildPartial() { 1023 com.google.appengine.v1.Application.IdentityAwareProxy result = 1024 new com.google.appengine.v1.Application.IdentityAwareProxy(this); 1025 if (bitField0_ != 0) { 1026 buildPartial0(result); 1027 } 1028 onBuilt(); 1029 return result; 1030 } 1031 buildPartial0(com.google.appengine.v1.Application.IdentityAwareProxy result)1032 private void buildPartial0(com.google.appengine.v1.Application.IdentityAwareProxy result) { 1033 int from_bitField0_ = bitField0_; 1034 if (((from_bitField0_ & 0x00000001) != 0)) { 1035 result.enabled_ = enabled_; 1036 } 1037 if (((from_bitField0_ & 0x00000002) != 0)) { 1038 result.oauth2ClientId_ = oauth2ClientId_; 1039 } 1040 if (((from_bitField0_ & 0x00000004) != 0)) { 1041 result.oauth2ClientSecret_ = oauth2ClientSecret_; 1042 } 1043 if (((from_bitField0_ & 0x00000008) != 0)) { 1044 result.oauth2ClientSecretSha256_ = oauth2ClientSecretSha256_; 1045 } 1046 } 1047 1048 @java.lang.Override clone()1049 public Builder clone() { 1050 return super.clone(); 1051 } 1052 1053 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1054 public Builder setField( 1055 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1056 return super.setField(field, value); 1057 } 1058 1059 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1060 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1061 return super.clearField(field); 1062 } 1063 1064 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1065 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1066 return super.clearOneof(oneof); 1067 } 1068 1069 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1070 public Builder setRepeatedField( 1071 com.google.protobuf.Descriptors.FieldDescriptor field, 1072 int index, 1073 java.lang.Object value) { 1074 return super.setRepeatedField(field, index, value); 1075 } 1076 1077 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1078 public Builder addRepeatedField( 1079 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1080 return super.addRepeatedField(field, value); 1081 } 1082 1083 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1084 public Builder mergeFrom(com.google.protobuf.Message other) { 1085 if (other instanceof com.google.appengine.v1.Application.IdentityAwareProxy) { 1086 return mergeFrom((com.google.appengine.v1.Application.IdentityAwareProxy) other); 1087 } else { 1088 super.mergeFrom(other); 1089 return this; 1090 } 1091 } 1092 mergeFrom(com.google.appengine.v1.Application.IdentityAwareProxy other)1093 public Builder mergeFrom(com.google.appengine.v1.Application.IdentityAwareProxy other) { 1094 if (other == com.google.appengine.v1.Application.IdentityAwareProxy.getDefaultInstance()) 1095 return this; 1096 if (other.getEnabled() != false) { 1097 setEnabled(other.getEnabled()); 1098 } 1099 if (!other.getOauth2ClientId().isEmpty()) { 1100 oauth2ClientId_ = other.oauth2ClientId_; 1101 bitField0_ |= 0x00000002; 1102 onChanged(); 1103 } 1104 if (!other.getOauth2ClientSecret().isEmpty()) { 1105 oauth2ClientSecret_ = other.oauth2ClientSecret_; 1106 bitField0_ |= 0x00000004; 1107 onChanged(); 1108 } 1109 if (!other.getOauth2ClientSecretSha256().isEmpty()) { 1110 oauth2ClientSecretSha256_ = other.oauth2ClientSecretSha256_; 1111 bitField0_ |= 0x00000008; 1112 onChanged(); 1113 } 1114 this.mergeUnknownFields(other.getUnknownFields()); 1115 onChanged(); 1116 return this; 1117 } 1118 1119 @java.lang.Override isInitialized()1120 public final boolean isInitialized() { 1121 return true; 1122 } 1123 1124 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1125 public Builder mergeFrom( 1126 com.google.protobuf.CodedInputStream input, 1127 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1128 throws java.io.IOException { 1129 if (extensionRegistry == null) { 1130 throw new java.lang.NullPointerException(); 1131 } 1132 try { 1133 boolean done = false; 1134 while (!done) { 1135 int tag = input.readTag(); 1136 switch (tag) { 1137 case 0: 1138 done = true; 1139 break; 1140 case 8: 1141 { 1142 enabled_ = input.readBool(); 1143 bitField0_ |= 0x00000001; 1144 break; 1145 } // case 8 1146 case 18: 1147 { 1148 oauth2ClientId_ = input.readStringRequireUtf8(); 1149 bitField0_ |= 0x00000002; 1150 break; 1151 } // case 18 1152 case 26: 1153 { 1154 oauth2ClientSecret_ = input.readStringRequireUtf8(); 1155 bitField0_ |= 0x00000004; 1156 break; 1157 } // case 26 1158 case 34: 1159 { 1160 oauth2ClientSecretSha256_ = input.readStringRequireUtf8(); 1161 bitField0_ |= 0x00000008; 1162 break; 1163 } // case 34 1164 default: 1165 { 1166 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1167 done = true; // was an endgroup tag 1168 } 1169 break; 1170 } // default: 1171 } // switch (tag) 1172 } // while (!done) 1173 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1174 throw e.unwrapIOException(); 1175 } finally { 1176 onChanged(); 1177 } // finally 1178 return this; 1179 } 1180 1181 private int bitField0_; 1182 1183 private boolean enabled_; 1184 /** 1185 * 1186 * 1187 * <pre> 1188 * Whether the serving infrastructure will authenticate and 1189 * authorize all incoming requests. 1190 * If true, the `oauth2_client_id` and `oauth2_client_secret` 1191 * fields must be non-empty. 1192 * </pre> 1193 * 1194 * <code>bool enabled = 1;</code> 1195 * 1196 * @return The enabled. 1197 */ 1198 @java.lang.Override getEnabled()1199 public boolean getEnabled() { 1200 return enabled_; 1201 } 1202 /** 1203 * 1204 * 1205 * <pre> 1206 * Whether the serving infrastructure will authenticate and 1207 * authorize all incoming requests. 1208 * If true, the `oauth2_client_id` and `oauth2_client_secret` 1209 * fields must be non-empty. 1210 * </pre> 1211 * 1212 * <code>bool enabled = 1;</code> 1213 * 1214 * @param value The enabled to set. 1215 * @return This builder for chaining. 1216 */ setEnabled(boolean value)1217 public Builder setEnabled(boolean value) { 1218 1219 enabled_ = value; 1220 bitField0_ |= 0x00000001; 1221 onChanged(); 1222 return this; 1223 } 1224 /** 1225 * 1226 * 1227 * <pre> 1228 * Whether the serving infrastructure will authenticate and 1229 * authorize all incoming requests. 1230 * If true, the `oauth2_client_id` and `oauth2_client_secret` 1231 * fields must be non-empty. 1232 * </pre> 1233 * 1234 * <code>bool enabled = 1;</code> 1235 * 1236 * @return This builder for chaining. 1237 */ clearEnabled()1238 public Builder clearEnabled() { 1239 bitField0_ = (bitField0_ & ~0x00000001); 1240 enabled_ = false; 1241 onChanged(); 1242 return this; 1243 } 1244 1245 private java.lang.Object oauth2ClientId_ = ""; 1246 /** 1247 * 1248 * 1249 * <pre> 1250 * OAuth2 client ID to use for the authentication flow. 1251 * </pre> 1252 * 1253 * <code>string oauth2_client_id = 2;</code> 1254 * 1255 * @return The oauth2ClientId. 1256 */ getOauth2ClientId()1257 public java.lang.String getOauth2ClientId() { 1258 java.lang.Object ref = oauth2ClientId_; 1259 if (!(ref instanceof java.lang.String)) { 1260 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1261 java.lang.String s = bs.toStringUtf8(); 1262 oauth2ClientId_ = s; 1263 return s; 1264 } else { 1265 return (java.lang.String) ref; 1266 } 1267 } 1268 /** 1269 * 1270 * 1271 * <pre> 1272 * OAuth2 client ID to use for the authentication flow. 1273 * </pre> 1274 * 1275 * <code>string oauth2_client_id = 2;</code> 1276 * 1277 * @return The bytes for oauth2ClientId. 1278 */ getOauth2ClientIdBytes()1279 public com.google.protobuf.ByteString getOauth2ClientIdBytes() { 1280 java.lang.Object ref = oauth2ClientId_; 1281 if (ref instanceof String) { 1282 com.google.protobuf.ByteString b = 1283 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1284 oauth2ClientId_ = b; 1285 return b; 1286 } else { 1287 return (com.google.protobuf.ByteString) ref; 1288 } 1289 } 1290 /** 1291 * 1292 * 1293 * <pre> 1294 * OAuth2 client ID to use for the authentication flow. 1295 * </pre> 1296 * 1297 * <code>string oauth2_client_id = 2;</code> 1298 * 1299 * @param value The oauth2ClientId to set. 1300 * @return This builder for chaining. 1301 */ setOauth2ClientId(java.lang.String value)1302 public Builder setOauth2ClientId(java.lang.String value) { 1303 if (value == null) { 1304 throw new NullPointerException(); 1305 } 1306 oauth2ClientId_ = value; 1307 bitField0_ |= 0x00000002; 1308 onChanged(); 1309 return this; 1310 } 1311 /** 1312 * 1313 * 1314 * <pre> 1315 * OAuth2 client ID to use for the authentication flow. 1316 * </pre> 1317 * 1318 * <code>string oauth2_client_id = 2;</code> 1319 * 1320 * @return This builder for chaining. 1321 */ clearOauth2ClientId()1322 public Builder clearOauth2ClientId() { 1323 oauth2ClientId_ = getDefaultInstance().getOauth2ClientId(); 1324 bitField0_ = (bitField0_ & ~0x00000002); 1325 onChanged(); 1326 return this; 1327 } 1328 /** 1329 * 1330 * 1331 * <pre> 1332 * OAuth2 client ID to use for the authentication flow. 1333 * </pre> 1334 * 1335 * <code>string oauth2_client_id = 2;</code> 1336 * 1337 * @param value The bytes for oauth2ClientId to set. 1338 * @return This builder for chaining. 1339 */ setOauth2ClientIdBytes(com.google.protobuf.ByteString value)1340 public Builder setOauth2ClientIdBytes(com.google.protobuf.ByteString value) { 1341 if (value == null) { 1342 throw new NullPointerException(); 1343 } 1344 checkByteStringIsUtf8(value); 1345 oauth2ClientId_ = value; 1346 bitField0_ |= 0x00000002; 1347 onChanged(); 1348 return this; 1349 } 1350 1351 private java.lang.Object oauth2ClientSecret_ = ""; 1352 /** 1353 * 1354 * 1355 * <pre> 1356 * OAuth2 client secret to use for the authentication flow. 1357 * For security reasons, this value cannot be retrieved via the API. 1358 * Instead, the SHA-256 hash of the value is returned in the 1359 * `oauth2_client_secret_sha256` field. 1360 * @InputOnly 1361 * </pre> 1362 * 1363 * <code>string oauth2_client_secret = 3;</code> 1364 * 1365 * @return The oauth2ClientSecret. 1366 */ getOauth2ClientSecret()1367 public java.lang.String getOauth2ClientSecret() { 1368 java.lang.Object ref = oauth2ClientSecret_; 1369 if (!(ref instanceof java.lang.String)) { 1370 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1371 java.lang.String s = bs.toStringUtf8(); 1372 oauth2ClientSecret_ = s; 1373 return s; 1374 } else { 1375 return (java.lang.String) ref; 1376 } 1377 } 1378 /** 1379 * 1380 * 1381 * <pre> 1382 * OAuth2 client secret to use for the authentication flow. 1383 * For security reasons, this value cannot be retrieved via the API. 1384 * Instead, the SHA-256 hash of the value is returned in the 1385 * `oauth2_client_secret_sha256` field. 1386 * @InputOnly 1387 * </pre> 1388 * 1389 * <code>string oauth2_client_secret = 3;</code> 1390 * 1391 * @return The bytes for oauth2ClientSecret. 1392 */ getOauth2ClientSecretBytes()1393 public com.google.protobuf.ByteString getOauth2ClientSecretBytes() { 1394 java.lang.Object ref = oauth2ClientSecret_; 1395 if (ref instanceof String) { 1396 com.google.protobuf.ByteString b = 1397 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1398 oauth2ClientSecret_ = b; 1399 return b; 1400 } else { 1401 return (com.google.protobuf.ByteString) ref; 1402 } 1403 } 1404 /** 1405 * 1406 * 1407 * <pre> 1408 * OAuth2 client secret to use for the authentication flow. 1409 * For security reasons, this value cannot be retrieved via the API. 1410 * Instead, the SHA-256 hash of the value is returned in the 1411 * `oauth2_client_secret_sha256` field. 1412 * @InputOnly 1413 * </pre> 1414 * 1415 * <code>string oauth2_client_secret = 3;</code> 1416 * 1417 * @param value The oauth2ClientSecret to set. 1418 * @return This builder for chaining. 1419 */ setOauth2ClientSecret(java.lang.String value)1420 public Builder setOauth2ClientSecret(java.lang.String value) { 1421 if (value == null) { 1422 throw new NullPointerException(); 1423 } 1424 oauth2ClientSecret_ = value; 1425 bitField0_ |= 0x00000004; 1426 onChanged(); 1427 return this; 1428 } 1429 /** 1430 * 1431 * 1432 * <pre> 1433 * OAuth2 client secret to use for the authentication flow. 1434 * For security reasons, this value cannot be retrieved via the API. 1435 * Instead, the SHA-256 hash of the value is returned in the 1436 * `oauth2_client_secret_sha256` field. 1437 * @InputOnly 1438 * </pre> 1439 * 1440 * <code>string oauth2_client_secret = 3;</code> 1441 * 1442 * @return This builder for chaining. 1443 */ clearOauth2ClientSecret()1444 public Builder clearOauth2ClientSecret() { 1445 oauth2ClientSecret_ = getDefaultInstance().getOauth2ClientSecret(); 1446 bitField0_ = (bitField0_ & ~0x00000004); 1447 onChanged(); 1448 return this; 1449 } 1450 /** 1451 * 1452 * 1453 * <pre> 1454 * OAuth2 client secret to use for the authentication flow. 1455 * For security reasons, this value cannot be retrieved via the API. 1456 * Instead, the SHA-256 hash of the value is returned in the 1457 * `oauth2_client_secret_sha256` field. 1458 * @InputOnly 1459 * </pre> 1460 * 1461 * <code>string oauth2_client_secret = 3;</code> 1462 * 1463 * @param value The bytes for oauth2ClientSecret to set. 1464 * @return This builder for chaining. 1465 */ setOauth2ClientSecretBytes(com.google.protobuf.ByteString value)1466 public Builder setOauth2ClientSecretBytes(com.google.protobuf.ByteString value) { 1467 if (value == null) { 1468 throw new NullPointerException(); 1469 } 1470 checkByteStringIsUtf8(value); 1471 oauth2ClientSecret_ = value; 1472 bitField0_ |= 0x00000004; 1473 onChanged(); 1474 return this; 1475 } 1476 1477 private java.lang.Object oauth2ClientSecretSha256_ = ""; 1478 /** 1479 * 1480 * 1481 * <pre> 1482 * Hex-encoded SHA-256 hash of the client secret. 1483 * @OutputOnly 1484 * </pre> 1485 * 1486 * <code>string oauth2_client_secret_sha256 = 4;</code> 1487 * 1488 * @return The oauth2ClientSecretSha256. 1489 */ getOauth2ClientSecretSha256()1490 public java.lang.String getOauth2ClientSecretSha256() { 1491 java.lang.Object ref = oauth2ClientSecretSha256_; 1492 if (!(ref instanceof java.lang.String)) { 1493 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1494 java.lang.String s = bs.toStringUtf8(); 1495 oauth2ClientSecretSha256_ = s; 1496 return s; 1497 } else { 1498 return (java.lang.String) ref; 1499 } 1500 } 1501 /** 1502 * 1503 * 1504 * <pre> 1505 * Hex-encoded SHA-256 hash of the client secret. 1506 * @OutputOnly 1507 * </pre> 1508 * 1509 * <code>string oauth2_client_secret_sha256 = 4;</code> 1510 * 1511 * @return The bytes for oauth2ClientSecretSha256. 1512 */ getOauth2ClientSecretSha256Bytes()1513 public com.google.protobuf.ByteString getOauth2ClientSecretSha256Bytes() { 1514 java.lang.Object ref = oauth2ClientSecretSha256_; 1515 if (ref instanceof String) { 1516 com.google.protobuf.ByteString b = 1517 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1518 oauth2ClientSecretSha256_ = b; 1519 return b; 1520 } else { 1521 return (com.google.protobuf.ByteString) ref; 1522 } 1523 } 1524 /** 1525 * 1526 * 1527 * <pre> 1528 * Hex-encoded SHA-256 hash of the client secret. 1529 * @OutputOnly 1530 * </pre> 1531 * 1532 * <code>string oauth2_client_secret_sha256 = 4;</code> 1533 * 1534 * @param value The oauth2ClientSecretSha256 to set. 1535 * @return This builder for chaining. 1536 */ setOauth2ClientSecretSha256(java.lang.String value)1537 public Builder setOauth2ClientSecretSha256(java.lang.String value) { 1538 if (value == null) { 1539 throw new NullPointerException(); 1540 } 1541 oauth2ClientSecretSha256_ = value; 1542 bitField0_ |= 0x00000008; 1543 onChanged(); 1544 return this; 1545 } 1546 /** 1547 * 1548 * 1549 * <pre> 1550 * Hex-encoded SHA-256 hash of the client secret. 1551 * @OutputOnly 1552 * </pre> 1553 * 1554 * <code>string oauth2_client_secret_sha256 = 4;</code> 1555 * 1556 * @return This builder for chaining. 1557 */ clearOauth2ClientSecretSha256()1558 public Builder clearOauth2ClientSecretSha256() { 1559 oauth2ClientSecretSha256_ = getDefaultInstance().getOauth2ClientSecretSha256(); 1560 bitField0_ = (bitField0_ & ~0x00000008); 1561 onChanged(); 1562 return this; 1563 } 1564 /** 1565 * 1566 * 1567 * <pre> 1568 * Hex-encoded SHA-256 hash of the client secret. 1569 * @OutputOnly 1570 * </pre> 1571 * 1572 * <code>string oauth2_client_secret_sha256 = 4;</code> 1573 * 1574 * @param value The bytes for oauth2ClientSecretSha256 to set. 1575 * @return This builder for chaining. 1576 */ setOauth2ClientSecretSha256Bytes(com.google.protobuf.ByteString value)1577 public Builder setOauth2ClientSecretSha256Bytes(com.google.protobuf.ByteString value) { 1578 if (value == null) { 1579 throw new NullPointerException(); 1580 } 1581 checkByteStringIsUtf8(value); 1582 oauth2ClientSecretSha256_ = value; 1583 bitField0_ |= 0x00000008; 1584 onChanged(); 1585 return this; 1586 } 1587 1588 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1589 public final Builder setUnknownFields( 1590 final com.google.protobuf.UnknownFieldSet unknownFields) { 1591 return super.setUnknownFields(unknownFields); 1592 } 1593 1594 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1595 public final Builder mergeUnknownFields( 1596 final com.google.protobuf.UnknownFieldSet unknownFields) { 1597 return super.mergeUnknownFields(unknownFields); 1598 } 1599 1600 // @@protoc_insertion_point(builder_scope:google.appengine.v1.Application.IdentityAwareProxy) 1601 } 1602 1603 // @@protoc_insertion_point(class_scope:google.appengine.v1.Application.IdentityAwareProxy) 1604 private static final com.google.appengine.v1.Application.IdentityAwareProxy DEFAULT_INSTANCE; 1605 1606 static { 1607 DEFAULT_INSTANCE = new com.google.appengine.v1.Application.IdentityAwareProxy(); 1608 } 1609 getDefaultInstance()1610 public static com.google.appengine.v1.Application.IdentityAwareProxy getDefaultInstance() { 1611 return DEFAULT_INSTANCE; 1612 } 1613 1614 private static final com.google.protobuf.Parser<IdentityAwareProxy> PARSER = 1615 new com.google.protobuf.AbstractParser<IdentityAwareProxy>() { 1616 @java.lang.Override 1617 public IdentityAwareProxy parsePartialFrom( 1618 com.google.protobuf.CodedInputStream input, 1619 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1620 throws com.google.protobuf.InvalidProtocolBufferException { 1621 Builder builder = newBuilder(); 1622 try { 1623 builder.mergeFrom(input, extensionRegistry); 1624 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1625 throw e.setUnfinishedMessage(builder.buildPartial()); 1626 } catch (com.google.protobuf.UninitializedMessageException e) { 1627 throw e.asInvalidProtocolBufferException() 1628 .setUnfinishedMessage(builder.buildPartial()); 1629 } catch (java.io.IOException e) { 1630 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1631 .setUnfinishedMessage(builder.buildPartial()); 1632 } 1633 return builder.buildPartial(); 1634 } 1635 }; 1636 parser()1637 public static com.google.protobuf.Parser<IdentityAwareProxy> parser() { 1638 return PARSER; 1639 } 1640 1641 @java.lang.Override getParserForType()1642 public com.google.protobuf.Parser<IdentityAwareProxy> getParserForType() { 1643 return PARSER; 1644 } 1645 1646 @java.lang.Override getDefaultInstanceForType()1647 public com.google.appengine.v1.Application.IdentityAwareProxy getDefaultInstanceForType() { 1648 return DEFAULT_INSTANCE; 1649 } 1650 } 1651 1652 public interface FeatureSettingsOrBuilder 1653 extends 1654 // @@protoc_insertion_point(interface_extends:google.appengine.v1.Application.FeatureSettings) 1655 com.google.protobuf.MessageOrBuilder { 1656 1657 /** 1658 * 1659 * 1660 * <pre> 1661 * Boolean value indicating if split health checks should be used instead 1662 * of the legacy health checks. At an app.yaml level, this means defaulting 1663 * to 'readiness_check' and 'liveness_check' values instead of 1664 * 'health_check' ones. Once the legacy 'health_check' behavior is 1665 * deprecated, and this value is always true, this setting can 1666 * be removed. 1667 * </pre> 1668 * 1669 * <code>bool split_health_checks = 1;</code> 1670 * 1671 * @return The splitHealthChecks. 1672 */ getSplitHealthChecks()1673 boolean getSplitHealthChecks(); 1674 1675 /** 1676 * 1677 * 1678 * <pre> 1679 * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) 1680 * base image for VMs, rather than a base Debian image. 1681 * </pre> 1682 * 1683 * <code>bool use_container_optimized_os = 2;</code> 1684 * 1685 * @return The useContainerOptimizedOs. 1686 */ getUseContainerOptimizedOs()1687 boolean getUseContainerOptimizedOs(); 1688 } 1689 /** 1690 * 1691 * 1692 * <pre> 1693 * The feature specific settings to be used in the application. These define 1694 * behaviors that are user configurable. 1695 * </pre> 1696 * 1697 * Protobuf type {@code google.appengine.v1.Application.FeatureSettings} 1698 */ 1699 public static final class FeatureSettings extends com.google.protobuf.GeneratedMessageV3 1700 implements 1701 // @@protoc_insertion_point(message_implements:google.appengine.v1.Application.FeatureSettings) 1702 FeatureSettingsOrBuilder { 1703 private static final long serialVersionUID = 0L; 1704 // Use FeatureSettings.newBuilder() to construct. FeatureSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1705 private FeatureSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1706 super(builder); 1707 } 1708 FeatureSettings()1709 private FeatureSettings() {} 1710 1711 @java.lang.Override 1712 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)1713 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 1714 return new FeatureSettings(); 1715 } 1716 1717 @java.lang.Override getUnknownFields()1718 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 1719 return this.unknownFields; 1720 } 1721 getDescriptor()1722 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1723 return com.google.appengine.v1.ApplicationProto 1724 .internal_static_google_appengine_v1_Application_FeatureSettings_descriptor; 1725 } 1726 1727 @java.lang.Override 1728 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1729 internalGetFieldAccessorTable() { 1730 return com.google.appengine.v1.ApplicationProto 1731 .internal_static_google_appengine_v1_Application_FeatureSettings_fieldAccessorTable 1732 .ensureFieldAccessorsInitialized( 1733 com.google.appengine.v1.Application.FeatureSettings.class, 1734 com.google.appengine.v1.Application.FeatureSettings.Builder.class); 1735 } 1736 1737 public static final int SPLIT_HEALTH_CHECKS_FIELD_NUMBER = 1; 1738 private boolean splitHealthChecks_ = false; 1739 /** 1740 * 1741 * 1742 * <pre> 1743 * Boolean value indicating if split health checks should be used instead 1744 * of the legacy health checks. At an app.yaml level, this means defaulting 1745 * to 'readiness_check' and 'liveness_check' values instead of 1746 * 'health_check' ones. Once the legacy 'health_check' behavior is 1747 * deprecated, and this value is always true, this setting can 1748 * be removed. 1749 * </pre> 1750 * 1751 * <code>bool split_health_checks = 1;</code> 1752 * 1753 * @return The splitHealthChecks. 1754 */ 1755 @java.lang.Override getSplitHealthChecks()1756 public boolean getSplitHealthChecks() { 1757 return splitHealthChecks_; 1758 } 1759 1760 public static final int USE_CONTAINER_OPTIMIZED_OS_FIELD_NUMBER = 2; 1761 private boolean useContainerOptimizedOs_ = false; 1762 /** 1763 * 1764 * 1765 * <pre> 1766 * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) 1767 * base image for VMs, rather than a base Debian image. 1768 * </pre> 1769 * 1770 * <code>bool use_container_optimized_os = 2;</code> 1771 * 1772 * @return The useContainerOptimizedOs. 1773 */ 1774 @java.lang.Override getUseContainerOptimizedOs()1775 public boolean getUseContainerOptimizedOs() { 1776 return useContainerOptimizedOs_; 1777 } 1778 1779 private byte memoizedIsInitialized = -1; 1780 1781 @java.lang.Override isInitialized()1782 public final boolean isInitialized() { 1783 byte isInitialized = memoizedIsInitialized; 1784 if (isInitialized == 1) return true; 1785 if (isInitialized == 0) return false; 1786 1787 memoizedIsInitialized = 1; 1788 return true; 1789 } 1790 1791 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1792 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1793 if (splitHealthChecks_ != false) { 1794 output.writeBool(1, splitHealthChecks_); 1795 } 1796 if (useContainerOptimizedOs_ != false) { 1797 output.writeBool(2, useContainerOptimizedOs_); 1798 } 1799 getUnknownFields().writeTo(output); 1800 } 1801 1802 @java.lang.Override getSerializedSize()1803 public int getSerializedSize() { 1804 int size = memoizedSize; 1805 if (size != -1) return size; 1806 1807 size = 0; 1808 if (splitHealthChecks_ != false) { 1809 size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, splitHealthChecks_); 1810 } 1811 if (useContainerOptimizedOs_ != false) { 1812 size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useContainerOptimizedOs_); 1813 } 1814 size += getUnknownFields().getSerializedSize(); 1815 memoizedSize = size; 1816 return size; 1817 } 1818 1819 @java.lang.Override equals(final java.lang.Object obj)1820 public boolean equals(final java.lang.Object obj) { 1821 if (obj == this) { 1822 return true; 1823 } 1824 if (!(obj instanceof com.google.appengine.v1.Application.FeatureSettings)) { 1825 return super.equals(obj); 1826 } 1827 com.google.appengine.v1.Application.FeatureSettings other = 1828 (com.google.appengine.v1.Application.FeatureSettings) obj; 1829 1830 if (getSplitHealthChecks() != other.getSplitHealthChecks()) return false; 1831 if (getUseContainerOptimizedOs() != other.getUseContainerOptimizedOs()) return false; 1832 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1833 return true; 1834 } 1835 1836 @java.lang.Override hashCode()1837 public int hashCode() { 1838 if (memoizedHashCode != 0) { 1839 return memoizedHashCode; 1840 } 1841 int hash = 41; 1842 hash = (19 * hash) + getDescriptor().hashCode(); 1843 hash = (37 * hash) + SPLIT_HEALTH_CHECKS_FIELD_NUMBER; 1844 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSplitHealthChecks()); 1845 hash = (37 * hash) + USE_CONTAINER_OPTIMIZED_OS_FIELD_NUMBER; 1846 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseContainerOptimizedOs()); 1847 hash = (29 * hash) + getUnknownFields().hashCode(); 1848 memoizedHashCode = hash; 1849 return hash; 1850 } 1851 parseFrom( java.nio.ByteBuffer data)1852 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1853 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 1854 return PARSER.parseFrom(data); 1855 } 1856 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1857 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1858 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1859 throws com.google.protobuf.InvalidProtocolBufferException { 1860 return PARSER.parseFrom(data, extensionRegistry); 1861 } 1862 parseFrom( com.google.protobuf.ByteString data)1863 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1864 com.google.protobuf.ByteString data) 1865 throws com.google.protobuf.InvalidProtocolBufferException { 1866 return PARSER.parseFrom(data); 1867 } 1868 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1869 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1870 com.google.protobuf.ByteString data, 1871 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1872 throws com.google.protobuf.InvalidProtocolBufferException { 1873 return PARSER.parseFrom(data, extensionRegistry); 1874 } 1875 parseFrom(byte[] data)1876 public static com.google.appengine.v1.Application.FeatureSettings parseFrom(byte[] data) 1877 throws com.google.protobuf.InvalidProtocolBufferException { 1878 return PARSER.parseFrom(data); 1879 } 1880 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1881 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1882 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1883 throws com.google.protobuf.InvalidProtocolBufferException { 1884 return PARSER.parseFrom(data, extensionRegistry); 1885 } 1886 parseFrom( java.io.InputStream input)1887 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1888 java.io.InputStream input) throws java.io.IOException { 1889 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1890 } 1891 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1892 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1893 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1894 throws java.io.IOException { 1895 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1896 PARSER, input, extensionRegistry); 1897 } 1898 parseDelimitedFrom( java.io.InputStream input)1899 public static com.google.appengine.v1.Application.FeatureSettings parseDelimitedFrom( 1900 java.io.InputStream input) throws java.io.IOException { 1901 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1902 } 1903 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1904 public static com.google.appengine.v1.Application.FeatureSettings parseDelimitedFrom( 1905 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1906 throws java.io.IOException { 1907 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1908 PARSER, input, extensionRegistry); 1909 } 1910 parseFrom( com.google.protobuf.CodedInputStream input)1911 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1912 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1913 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1914 } 1915 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1916 public static com.google.appengine.v1.Application.FeatureSettings parseFrom( 1917 com.google.protobuf.CodedInputStream input, 1918 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1919 throws java.io.IOException { 1920 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1921 PARSER, input, extensionRegistry); 1922 } 1923 1924 @java.lang.Override newBuilderForType()1925 public Builder newBuilderForType() { 1926 return newBuilder(); 1927 } 1928 newBuilder()1929 public static Builder newBuilder() { 1930 return DEFAULT_INSTANCE.toBuilder(); 1931 } 1932 newBuilder( com.google.appengine.v1.Application.FeatureSettings prototype)1933 public static Builder newBuilder( 1934 com.google.appengine.v1.Application.FeatureSettings prototype) { 1935 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1936 } 1937 1938 @java.lang.Override toBuilder()1939 public Builder toBuilder() { 1940 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1941 } 1942 1943 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1944 protected Builder newBuilderForType( 1945 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1946 Builder builder = new Builder(parent); 1947 return builder; 1948 } 1949 /** 1950 * 1951 * 1952 * <pre> 1953 * The feature specific settings to be used in the application. These define 1954 * behaviors that are user configurable. 1955 * </pre> 1956 * 1957 * Protobuf type {@code google.appengine.v1.Application.FeatureSettings} 1958 */ 1959 public static final class Builder 1960 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1961 implements 1962 // @@protoc_insertion_point(builder_implements:google.appengine.v1.Application.FeatureSettings) 1963 com.google.appengine.v1.Application.FeatureSettingsOrBuilder { getDescriptor()1964 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1965 return com.google.appengine.v1.ApplicationProto 1966 .internal_static_google_appengine_v1_Application_FeatureSettings_descriptor; 1967 } 1968 1969 @java.lang.Override 1970 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1971 internalGetFieldAccessorTable() { 1972 return com.google.appengine.v1.ApplicationProto 1973 .internal_static_google_appengine_v1_Application_FeatureSettings_fieldAccessorTable 1974 .ensureFieldAccessorsInitialized( 1975 com.google.appengine.v1.Application.FeatureSettings.class, 1976 com.google.appengine.v1.Application.FeatureSettings.Builder.class); 1977 } 1978 1979 // Construct using com.google.appengine.v1.Application.FeatureSettings.newBuilder() Builder()1980 private Builder() {} 1981 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1982 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1983 super(parent); 1984 } 1985 1986 @java.lang.Override clear()1987 public Builder clear() { 1988 super.clear(); 1989 bitField0_ = 0; 1990 splitHealthChecks_ = false; 1991 useContainerOptimizedOs_ = false; 1992 return this; 1993 } 1994 1995 @java.lang.Override getDescriptorForType()1996 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1997 return com.google.appengine.v1.ApplicationProto 1998 .internal_static_google_appengine_v1_Application_FeatureSettings_descriptor; 1999 } 2000 2001 @java.lang.Override getDefaultInstanceForType()2002 public com.google.appengine.v1.Application.FeatureSettings getDefaultInstanceForType() { 2003 return com.google.appengine.v1.Application.FeatureSettings.getDefaultInstance(); 2004 } 2005 2006 @java.lang.Override build()2007 public com.google.appengine.v1.Application.FeatureSettings build() { 2008 com.google.appengine.v1.Application.FeatureSettings result = buildPartial(); 2009 if (!result.isInitialized()) { 2010 throw newUninitializedMessageException(result); 2011 } 2012 return result; 2013 } 2014 2015 @java.lang.Override buildPartial()2016 public com.google.appengine.v1.Application.FeatureSettings buildPartial() { 2017 com.google.appengine.v1.Application.FeatureSettings result = 2018 new com.google.appengine.v1.Application.FeatureSettings(this); 2019 if (bitField0_ != 0) { 2020 buildPartial0(result); 2021 } 2022 onBuilt(); 2023 return result; 2024 } 2025 buildPartial0(com.google.appengine.v1.Application.FeatureSettings result)2026 private void buildPartial0(com.google.appengine.v1.Application.FeatureSettings result) { 2027 int from_bitField0_ = bitField0_; 2028 if (((from_bitField0_ & 0x00000001) != 0)) { 2029 result.splitHealthChecks_ = splitHealthChecks_; 2030 } 2031 if (((from_bitField0_ & 0x00000002) != 0)) { 2032 result.useContainerOptimizedOs_ = useContainerOptimizedOs_; 2033 } 2034 } 2035 2036 @java.lang.Override clone()2037 public Builder clone() { 2038 return super.clone(); 2039 } 2040 2041 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2042 public Builder setField( 2043 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2044 return super.setField(field, value); 2045 } 2046 2047 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2048 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2049 return super.clearField(field); 2050 } 2051 2052 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2053 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2054 return super.clearOneof(oneof); 2055 } 2056 2057 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2058 public Builder setRepeatedField( 2059 com.google.protobuf.Descriptors.FieldDescriptor field, 2060 int index, 2061 java.lang.Object value) { 2062 return super.setRepeatedField(field, index, value); 2063 } 2064 2065 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2066 public Builder addRepeatedField( 2067 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2068 return super.addRepeatedField(field, value); 2069 } 2070 2071 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2072 public Builder mergeFrom(com.google.protobuf.Message other) { 2073 if (other instanceof com.google.appengine.v1.Application.FeatureSettings) { 2074 return mergeFrom((com.google.appengine.v1.Application.FeatureSettings) other); 2075 } else { 2076 super.mergeFrom(other); 2077 return this; 2078 } 2079 } 2080 mergeFrom(com.google.appengine.v1.Application.FeatureSettings other)2081 public Builder mergeFrom(com.google.appengine.v1.Application.FeatureSettings other) { 2082 if (other == com.google.appengine.v1.Application.FeatureSettings.getDefaultInstance()) 2083 return this; 2084 if (other.getSplitHealthChecks() != false) { 2085 setSplitHealthChecks(other.getSplitHealthChecks()); 2086 } 2087 if (other.getUseContainerOptimizedOs() != false) { 2088 setUseContainerOptimizedOs(other.getUseContainerOptimizedOs()); 2089 } 2090 this.mergeUnknownFields(other.getUnknownFields()); 2091 onChanged(); 2092 return this; 2093 } 2094 2095 @java.lang.Override isInitialized()2096 public final boolean isInitialized() { 2097 return true; 2098 } 2099 2100 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2101 public Builder mergeFrom( 2102 com.google.protobuf.CodedInputStream input, 2103 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2104 throws java.io.IOException { 2105 if (extensionRegistry == null) { 2106 throw new java.lang.NullPointerException(); 2107 } 2108 try { 2109 boolean done = false; 2110 while (!done) { 2111 int tag = input.readTag(); 2112 switch (tag) { 2113 case 0: 2114 done = true; 2115 break; 2116 case 8: 2117 { 2118 splitHealthChecks_ = input.readBool(); 2119 bitField0_ |= 0x00000001; 2120 break; 2121 } // case 8 2122 case 16: 2123 { 2124 useContainerOptimizedOs_ = input.readBool(); 2125 bitField0_ |= 0x00000002; 2126 break; 2127 } // case 16 2128 default: 2129 { 2130 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2131 done = true; // was an endgroup tag 2132 } 2133 break; 2134 } // default: 2135 } // switch (tag) 2136 } // while (!done) 2137 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2138 throw e.unwrapIOException(); 2139 } finally { 2140 onChanged(); 2141 } // finally 2142 return this; 2143 } 2144 2145 private int bitField0_; 2146 2147 private boolean splitHealthChecks_; 2148 /** 2149 * 2150 * 2151 * <pre> 2152 * Boolean value indicating if split health checks should be used instead 2153 * of the legacy health checks. At an app.yaml level, this means defaulting 2154 * to 'readiness_check' and 'liveness_check' values instead of 2155 * 'health_check' ones. Once the legacy 'health_check' behavior is 2156 * deprecated, and this value is always true, this setting can 2157 * be removed. 2158 * </pre> 2159 * 2160 * <code>bool split_health_checks = 1;</code> 2161 * 2162 * @return The splitHealthChecks. 2163 */ 2164 @java.lang.Override getSplitHealthChecks()2165 public boolean getSplitHealthChecks() { 2166 return splitHealthChecks_; 2167 } 2168 /** 2169 * 2170 * 2171 * <pre> 2172 * Boolean value indicating if split health checks should be used instead 2173 * of the legacy health checks. At an app.yaml level, this means defaulting 2174 * to 'readiness_check' and 'liveness_check' values instead of 2175 * 'health_check' ones. Once the legacy 'health_check' behavior is 2176 * deprecated, and this value is always true, this setting can 2177 * be removed. 2178 * </pre> 2179 * 2180 * <code>bool split_health_checks = 1;</code> 2181 * 2182 * @param value The splitHealthChecks to set. 2183 * @return This builder for chaining. 2184 */ setSplitHealthChecks(boolean value)2185 public Builder setSplitHealthChecks(boolean value) { 2186 2187 splitHealthChecks_ = value; 2188 bitField0_ |= 0x00000001; 2189 onChanged(); 2190 return this; 2191 } 2192 /** 2193 * 2194 * 2195 * <pre> 2196 * Boolean value indicating if split health checks should be used instead 2197 * of the legacy health checks. At an app.yaml level, this means defaulting 2198 * to 'readiness_check' and 'liveness_check' values instead of 2199 * 'health_check' ones. Once the legacy 'health_check' behavior is 2200 * deprecated, and this value is always true, this setting can 2201 * be removed. 2202 * </pre> 2203 * 2204 * <code>bool split_health_checks = 1;</code> 2205 * 2206 * @return This builder for chaining. 2207 */ clearSplitHealthChecks()2208 public Builder clearSplitHealthChecks() { 2209 bitField0_ = (bitField0_ & ~0x00000001); 2210 splitHealthChecks_ = false; 2211 onChanged(); 2212 return this; 2213 } 2214 2215 private boolean useContainerOptimizedOs_; 2216 /** 2217 * 2218 * 2219 * <pre> 2220 * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) 2221 * base image for VMs, rather than a base Debian image. 2222 * </pre> 2223 * 2224 * <code>bool use_container_optimized_os = 2;</code> 2225 * 2226 * @return The useContainerOptimizedOs. 2227 */ 2228 @java.lang.Override getUseContainerOptimizedOs()2229 public boolean getUseContainerOptimizedOs() { 2230 return useContainerOptimizedOs_; 2231 } 2232 /** 2233 * 2234 * 2235 * <pre> 2236 * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) 2237 * base image for VMs, rather than a base Debian image. 2238 * </pre> 2239 * 2240 * <code>bool use_container_optimized_os = 2;</code> 2241 * 2242 * @param value The useContainerOptimizedOs to set. 2243 * @return This builder for chaining. 2244 */ setUseContainerOptimizedOs(boolean value)2245 public Builder setUseContainerOptimizedOs(boolean value) { 2246 2247 useContainerOptimizedOs_ = value; 2248 bitField0_ |= 0x00000002; 2249 onChanged(); 2250 return this; 2251 } 2252 /** 2253 * 2254 * 2255 * <pre> 2256 * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) 2257 * base image for VMs, rather than a base Debian image. 2258 * </pre> 2259 * 2260 * <code>bool use_container_optimized_os = 2;</code> 2261 * 2262 * @return This builder for chaining. 2263 */ clearUseContainerOptimizedOs()2264 public Builder clearUseContainerOptimizedOs() { 2265 bitField0_ = (bitField0_ & ~0x00000002); 2266 useContainerOptimizedOs_ = false; 2267 onChanged(); 2268 return this; 2269 } 2270 2271 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2272 public final Builder setUnknownFields( 2273 final com.google.protobuf.UnknownFieldSet unknownFields) { 2274 return super.setUnknownFields(unknownFields); 2275 } 2276 2277 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2278 public final Builder mergeUnknownFields( 2279 final com.google.protobuf.UnknownFieldSet unknownFields) { 2280 return super.mergeUnknownFields(unknownFields); 2281 } 2282 2283 // @@protoc_insertion_point(builder_scope:google.appengine.v1.Application.FeatureSettings) 2284 } 2285 2286 // @@protoc_insertion_point(class_scope:google.appengine.v1.Application.FeatureSettings) 2287 private static final com.google.appengine.v1.Application.FeatureSettings DEFAULT_INSTANCE; 2288 2289 static { 2290 DEFAULT_INSTANCE = new com.google.appengine.v1.Application.FeatureSettings(); 2291 } 2292 getDefaultInstance()2293 public static com.google.appengine.v1.Application.FeatureSettings getDefaultInstance() { 2294 return DEFAULT_INSTANCE; 2295 } 2296 2297 private static final com.google.protobuf.Parser<FeatureSettings> PARSER = 2298 new com.google.protobuf.AbstractParser<FeatureSettings>() { 2299 @java.lang.Override 2300 public FeatureSettings parsePartialFrom( 2301 com.google.protobuf.CodedInputStream input, 2302 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2303 throws com.google.protobuf.InvalidProtocolBufferException { 2304 Builder builder = newBuilder(); 2305 try { 2306 builder.mergeFrom(input, extensionRegistry); 2307 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2308 throw e.setUnfinishedMessage(builder.buildPartial()); 2309 } catch (com.google.protobuf.UninitializedMessageException e) { 2310 throw e.asInvalidProtocolBufferException() 2311 .setUnfinishedMessage(builder.buildPartial()); 2312 } catch (java.io.IOException e) { 2313 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2314 .setUnfinishedMessage(builder.buildPartial()); 2315 } 2316 return builder.buildPartial(); 2317 } 2318 }; 2319 parser()2320 public static com.google.protobuf.Parser<FeatureSettings> parser() { 2321 return PARSER; 2322 } 2323 2324 @java.lang.Override getParserForType()2325 public com.google.protobuf.Parser<FeatureSettings> getParserForType() { 2326 return PARSER; 2327 } 2328 2329 @java.lang.Override getDefaultInstanceForType()2330 public com.google.appengine.v1.Application.FeatureSettings getDefaultInstanceForType() { 2331 return DEFAULT_INSTANCE; 2332 } 2333 } 2334 2335 public static final int NAME_FIELD_NUMBER = 1; 2336 2337 @SuppressWarnings("serial") 2338 private volatile java.lang.Object name_ = ""; 2339 /** 2340 * 2341 * 2342 * <pre> 2343 * Full path to the Application resource in the API. 2344 * Example: `apps/myapp`. 2345 * @OutputOnly 2346 * </pre> 2347 * 2348 * <code>string name = 1;</code> 2349 * 2350 * @return The name. 2351 */ 2352 @java.lang.Override getName()2353 public java.lang.String getName() { 2354 java.lang.Object ref = name_; 2355 if (ref instanceof java.lang.String) { 2356 return (java.lang.String) ref; 2357 } else { 2358 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2359 java.lang.String s = bs.toStringUtf8(); 2360 name_ = s; 2361 return s; 2362 } 2363 } 2364 /** 2365 * 2366 * 2367 * <pre> 2368 * Full path to the Application resource in the API. 2369 * Example: `apps/myapp`. 2370 * @OutputOnly 2371 * </pre> 2372 * 2373 * <code>string name = 1;</code> 2374 * 2375 * @return The bytes for name. 2376 */ 2377 @java.lang.Override getNameBytes()2378 public com.google.protobuf.ByteString getNameBytes() { 2379 java.lang.Object ref = name_; 2380 if (ref instanceof java.lang.String) { 2381 com.google.protobuf.ByteString b = 2382 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2383 name_ = b; 2384 return b; 2385 } else { 2386 return (com.google.protobuf.ByteString) ref; 2387 } 2388 } 2389 2390 public static final int ID_FIELD_NUMBER = 2; 2391 2392 @SuppressWarnings("serial") 2393 private volatile java.lang.Object id_ = ""; 2394 /** 2395 * 2396 * 2397 * <pre> 2398 * Identifier of the Application resource. This identifier is equivalent 2399 * to the project ID of the Google Cloud Platform project where you want to 2400 * deploy your application. 2401 * Example: `myapp`. 2402 * </pre> 2403 * 2404 * <code>string id = 2;</code> 2405 * 2406 * @return The id. 2407 */ 2408 @java.lang.Override getId()2409 public java.lang.String getId() { 2410 java.lang.Object ref = id_; 2411 if (ref instanceof java.lang.String) { 2412 return (java.lang.String) ref; 2413 } else { 2414 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2415 java.lang.String s = bs.toStringUtf8(); 2416 id_ = s; 2417 return s; 2418 } 2419 } 2420 /** 2421 * 2422 * 2423 * <pre> 2424 * Identifier of the Application resource. This identifier is equivalent 2425 * to the project ID of the Google Cloud Platform project where you want to 2426 * deploy your application. 2427 * Example: `myapp`. 2428 * </pre> 2429 * 2430 * <code>string id = 2;</code> 2431 * 2432 * @return The bytes for id. 2433 */ 2434 @java.lang.Override getIdBytes()2435 public com.google.protobuf.ByteString getIdBytes() { 2436 java.lang.Object ref = id_; 2437 if (ref instanceof java.lang.String) { 2438 com.google.protobuf.ByteString b = 2439 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2440 id_ = b; 2441 return b; 2442 } else { 2443 return (com.google.protobuf.ByteString) ref; 2444 } 2445 } 2446 2447 public static final int DISPATCH_RULES_FIELD_NUMBER = 3; 2448 2449 @SuppressWarnings("serial") 2450 private java.util.List<com.google.appengine.v1.UrlDispatchRule> dispatchRules_; 2451 /** 2452 * 2453 * 2454 * <pre> 2455 * HTTP path dispatch rules for requests to the application that do not 2456 * explicitly target a service or version. Rules are order-dependent. 2457 * Up to 20 dispatch rules can be supported. 2458 * </pre> 2459 * 2460 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 2461 */ 2462 @java.lang.Override getDispatchRulesList()2463 public java.util.List<com.google.appengine.v1.UrlDispatchRule> getDispatchRulesList() { 2464 return dispatchRules_; 2465 } 2466 /** 2467 * 2468 * 2469 * <pre> 2470 * HTTP path dispatch rules for requests to the application that do not 2471 * explicitly target a service or version. Rules are order-dependent. 2472 * Up to 20 dispatch rules can be supported. 2473 * </pre> 2474 * 2475 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 2476 */ 2477 @java.lang.Override 2478 public java.util.List<? extends com.google.appengine.v1.UrlDispatchRuleOrBuilder> getDispatchRulesOrBuilderList()2479 getDispatchRulesOrBuilderList() { 2480 return dispatchRules_; 2481 } 2482 /** 2483 * 2484 * 2485 * <pre> 2486 * HTTP path dispatch rules for requests to the application that do not 2487 * explicitly target a service or version. Rules are order-dependent. 2488 * Up to 20 dispatch rules can be supported. 2489 * </pre> 2490 * 2491 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 2492 */ 2493 @java.lang.Override getDispatchRulesCount()2494 public int getDispatchRulesCount() { 2495 return dispatchRules_.size(); 2496 } 2497 /** 2498 * 2499 * 2500 * <pre> 2501 * HTTP path dispatch rules for requests to the application that do not 2502 * explicitly target a service or version. Rules are order-dependent. 2503 * Up to 20 dispatch rules can be supported. 2504 * </pre> 2505 * 2506 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 2507 */ 2508 @java.lang.Override getDispatchRules(int index)2509 public com.google.appengine.v1.UrlDispatchRule getDispatchRules(int index) { 2510 return dispatchRules_.get(index); 2511 } 2512 /** 2513 * 2514 * 2515 * <pre> 2516 * HTTP path dispatch rules for requests to the application that do not 2517 * explicitly target a service or version. Rules are order-dependent. 2518 * Up to 20 dispatch rules can be supported. 2519 * </pre> 2520 * 2521 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 2522 */ 2523 @java.lang.Override getDispatchRulesOrBuilder(int index)2524 public com.google.appengine.v1.UrlDispatchRuleOrBuilder getDispatchRulesOrBuilder(int index) { 2525 return dispatchRules_.get(index); 2526 } 2527 2528 public static final int AUTH_DOMAIN_FIELD_NUMBER = 6; 2529 2530 @SuppressWarnings("serial") 2531 private volatile java.lang.Object authDomain_ = ""; 2532 /** 2533 * 2534 * 2535 * <pre> 2536 * Google Apps authentication domain that controls which users can access 2537 * this application. 2538 * Defaults to open access for any Google Account. 2539 * </pre> 2540 * 2541 * <code>string auth_domain = 6;</code> 2542 * 2543 * @return The authDomain. 2544 */ 2545 @java.lang.Override getAuthDomain()2546 public java.lang.String getAuthDomain() { 2547 java.lang.Object ref = authDomain_; 2548 if (ref instanceof java.lang.String) { 2549 return (java.lang.String) ref; 2550 } else { 2551 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2552 java.lang.String s = bs.toStringUtf8(); 2553 authDomain_ = s; 2554 return s; 2555 } 2556 } 2557 /** 2558 * 2559 * 2560 * <pre> 2561 * Google Apps authentication domain that controls which users can access 2562 * this application. 2563 * Defaults to open access for any Google Account. 2564 * </pre> 2565 * 2566 * <code>string auth_domain = 6;</code> 2567 * 2568 * @return The bytes for authDomain. 2569 */ 2570 @java.lang.Override getAuthDomainBytes()2571 public com.google.protobuf.ByteString getAuthDomainBytes() { 2572 java.lang.Object ref = authDomain_; 2573 if (ref instanceof java.lang.String) { 2574 com.google.protobuf.ByteString b = 2575 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2576 authDomain_ = b; 2577 return b; 2578 } else { 2579 return (com.google.protobuf.ByteString) ref; 2580 } 2581 } 2582 2583 public static final int LOCATION_ID_FIELD_NUMBER = 7; 2584 2585 @SuppressWarnings("serial") 2586 private volatile java.lang.Object locationId_ = ""; 2587 /** 2588 * 2589 * 2590 * <pre> 2591 * Location from which this application runs. Application instances 2592 * run out of the data centers in the specified location, which is also where 2593 * all of the application's end user content is stored. 2594 * Defaults to `us-central`. 2595 * View the list of 2596 * [supported locations](https://cloud.google.com/appengine/docs/locations). 2597 * </pre> 2598 * 2599 * <code>string location_id = 7;</code> 2600 * 2601 * @return The locationId. 2602 */ 2603 @java.lang.Override getLocationId()2604 public java.lang.String getLocationId() { 2605 java.lang.Object ref = locationId_; 2606 if (ref instanceof java.lang.String) { 2607 return (java.lang.String) ref; 2608 } else { 2609 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2610 java.lang.String s = bs.toStringUtf8(); 2611 locationId_ = s; 2612 return s; 2613 } 2614 } 2615 /** 2616 * 2617 * 2618 * <pre> 2619 * Location from which this application runs. Application instances 2620 * run out of the data centers in the specified location, which is also where 2621 * all of the application's end user content is stored. 2622 * Defaults to `us-central`. 2623 * View the list of 2624 * [supported locations](https://cloud.google.com/appengine/docs/locations). 2625 * </pre> 2626 * 2627 * <code>string location_id = 7;</code> 2628 * 2629 * @return The bytes for locationId. 2630 */ 2631 @java.lang.Override getLocationIdBytes()2632 public com.google.protobuf.ByteString getLocationIdBytes() { 2633 java.lang.Object ref = locationId_; 2634 if (ref instanceof java.lang.String) { 2635 com.google.protobuf.ByteString b = 2636 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2637 locationId_ = b; 2638 return b; 2639 } else { 2640 return (com.google.protobuf.ByteString) ref; 2641 } 2642 } 2643 2644 public static final int CODE_BUCKET_FIELD_NUMBER = 8; 2645 2646 @SuppressWarnings("serial") 2647 private volatile java.lang.Object codeBucket_ = ""; 2648 /** 2649 * 2650 * 2651 * <pre> 2652 * Google Cloud Storage bucket that can be used for storing files 2653 * associated with this application. This bucket is associated with the 2654 * application and can be used by the gcloud deployment commands. 2655 * @OutputOnly 2656 * </pre> 2657 * 2658 * <code>string code_bucket = 8;</code> 2659 * 2660 * @return The codeBucket. 2661 */ 2662 @java.lang.Override getCodeBucket()2663 public java.lang.String getCodeBucket() { 2664 java.lang.Object ref = codeBucket_; 2665 if (ref instanceof java.lang.String) { 2666 return (java.lang.String) ref; 2667 } else { 2668 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2669 java.lang.String s = bs.toStringUtf8(); 2670 codeBucket_ = s; 2671 return s; 2672 } 2673 } 2674 /** 2675 * 2676 * 2677 * <pre> 2678 * Google Cloud Storage bucket that can be used for storing files 2679 * associated with this application. This bucket is associated with the 2680 * application and can be used by the gcloud deployment commands. 2681 * @OutputOnly 2682 * </pre> 2683 * 2684 * <code>string code_bucket = 8;</code> 2685 * 2686 * @return The bytes for codeBucket. 2687 */ 2688 @java.lang.Override getCodeBucketBytes()2689 public com.google.protobuf.ByteString getCodeBucketBytes() { 2690 java.lang.Object ref = codeBucket_; 2691 if (ref instanceof java.lang.String) { 2692 com.google.protobuf.ByteString b = 2693 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2694 codeBucket_ = b; 2695 return b; 2696 } else { 2697 return (com.google.protobuf.ByteString) ref; 2698 } 2699 } 2700 2701 public static final int DEFAULT_COOKIE_EXPIRATION_FIELD_NUMBER = 9; 2702 private com.google.protobuf.Duration defaultCookieExpiration_; 2703 /** 2704 * 2705 * 2706 * <pre> 2707 * Cookie expiration policy for this application. 2708 * </pre> 2709 * 2710 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 2711 * 2712 * @return Whether the defaultCookieExpiration field is set. 2713 */ 2714 @java.lang.Override hasDefaultCookieExpiration()2715 public boolean hasDefaultCookieExpiration() { 2716 return defaultCookieExpiration_ != null; 2717 } 2718 /** 2719 * 2720 * 2721 * <pre> 2722 * Cookie expiration policy for this application. 2723 * </pre> 2724 * 2725 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 2726 * 2727 * @return The defaultCookieExpiration. 2728 */ 2729 @java.lang.Override getDefaultCookieExpiration()2730 public com.google.protobuf.Duration getDefaultCookieExpiration() { 2731 return defaultCookieExpiration_ == null 2732 ? com.google.protobuf.Duration.getDefaultInstance() 2733 : defaultCookieExpiration_; 2734 } 2735 /** 2736 * 2737 * 2738 * <pre> 2739 * Cookie expiration policy for this application. 2740 * </pre> 2741 * 2742 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 2743 */ 2744 @java.lang.Override getDefaultCookieExpirationOrBuilder()2745 public com.google.protobuf.DurationOrBuilder getDefaultCookieExpirationOrBuilder() { 2746 return defaultCookieExpiration_ == null 2747 ? com.google.protobuf.Duration.getDefaultInstance() 2748 : defaultCookieExpiration_; 2749 } 2750 2751 public static final int SERVING_STATUS_FIELD_NUMBER = 10; 2752 private int servingStatus_ = 0; 2753 /** 2754 * 2755 * 2756 * <pre> 2757 * Serving status of this application. 2758 * </pre> 2759 * 2760 * <code>.google.appengine.v1.Application.ServingStatus serving_status = 10;</code> 2761 * 2762 * @return The enum numeric value on the wire for servingStatus. 2763 */ 2764 @java.lang.Override getServingStatusValue()2765 public int getServingStatusValue() { 2766 return servingStatus_; 2767 } 2768 /** 2769 * 2770 * 2771 * <pre> 2772 * Serving status of this application. 2773 * </pre> 2774 * 2775 * <code>.google.appengine.v1.Application.ServingStatus serving_status = 10;</code> 2776 * 2777 * @return The servingStatus. 2778 */ 2779 @java.lang.Override getServingStatus()2780 public com.google.appengine.v1.Application.ServingStatus getServingStatus() { 2781 com.google.appengine.v1.Application.ServingStatus result = 2782 com.google.appengine.v1.Application.ServingStatus.forNumber(servingStatus_); 2783 return result == null ? com.google.appengine.v1.Application.ServingStatus.UNRECOGNIZED : result; 2784 } 2785 2786 public static final int DEFAULT_HOSTNAME_FIELD_NUMBER = 11; 2787 2788 @SuppressWarnings("serial") 2789 private volatile java.lang.Object defaultHostname_ = ""; 2790 /** 2791 * 2792 * 2793 * <pre> 2794 * Hostname used to reach this application, as resolved by App Engine. 2795 * @OutputOnly 2796 * </pre> 2797 * 2798 * <code>string default_hostname = 11;</code> 2799 * 2800 * @return The defaultHostname. 2801 */ 2802 @java.lang.Override getDefaultHostname()2803 public java.lang.String getDefaultHostname() { 2804 java.lang.Object ref = defaultHostname_; 2805 if (ref instanceof java.lang.String) { 2806 return (java.lang.String) ref; 2807 } else { 2808 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2809 java.lang.String s = bs.toStringUtf8(); 2810 defaultHostname_ = s; 2811 return s; 2812 } 2813 } 2814 /** 2815 * 2816 * 2817 * <pre> 2818 * Hostname used to reach this application, as resolved by App Engine. 2819 * @OutputOnly 2820 * </pre> 2821 * 2822 * <code>string default_hostname = 11;</code> 2823 * 2824 * @return The bytes for defaultHostname. 2825 */ 2826 @java.lang.Override getDefaultHostnameBytes()2827 public com.google.protobuf.ByteString getDefaultHostnameBytes() { 2828 java.lang.Object ref = defaultHostname_; 2829 if (ref instanceof java.lang.String) { 2830 com.google.protobuf.ByteString b = 2831 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2832 defaultHostname_ = b; 2833 return b; 2834 } else { 2835 return (com.google.protobuf.ByteString) ref; 2836 } 2837 } 2838 2839 public static final int DEFAULT_BUCKET_FIELD_NUMBER = 12; 2840 2841 @SuppressWarnings("serial") 2842 private volatile java.lang.Object defaultBucket_ = ""; 2843 /** 2844 * 2845 * 2846 * <pre> 2847 * Google Cloud Storage bucket that can be used by this application to store 2848 * content. 2849 * @OutputOnly 2850 * </pre> 2851 * 2852 * <code>string default_bucket = 12;</code> 2853 * 2854 * @return The defaultBucket. 2855 */ 2856 @java.lang.Override getDefaultBucket()2857 public java.lang.String getDefaultBucket() { 2858 java.lang.Object ref = defaultBucket_; 2859 if (ref instanceof java.lang.String) { 2860 return (java.lang.String) ref; 2861 } else { 2862 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2863 java.lang.String s = bs.toStringUtf8(); 2864 defaultBucket_ = s; 2865 return s; 2866 } 2867 } 2868 /** 2869 * 2870 * 2871 * <pre> 2872 * Google Cloud Storage bucket that can be used by this application to store 2873 * content. 2874 * @OutputOnly 2875 * </pre> 2876 * 2877 * <code>string default_bucket = 12;</code> 2878 * 2879 * @return The bytes for defaultBucket. 2880 */ 2881 @java.lang.Override getDefaultBucketBytes()2882 public com.google.protobuf.ByteString getDefaultBucketBytes() { 2883 java.lang.Object ref = defaultBucket_; 2884 if (ref instanceof java.lang.String) { 2885 com.google.protobuf.ByteString b = 2886 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2887 defaultBucket_ = b; 2888 return b; 2889 } else { 2890 return (com.google.protobuf.ByteString) ref; 2891 } 2892 } 2893 2894 public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 13; 2895 2896 @SuppressWarnings("serial") 2897 private volatile java.lang.Object serviceAccount_ = ""; 2898 /** 2899 * 2900 * 2901 * <pre> 2902 * The service account associated with the application. 2903 * This is the app-level default identity. If no identity provided during 2904 * create version, Admin API will fallback to this one. 2905 * </pre> 2906 * 2907 * <code>string service_account = 13;</code> 2908 * 2909 * @return The serviceAccount. 2910 */ 2911 @java.lang.Override getServiceAccount()2912 public java.lang.String getServiceAccount() { 2913 java.lang.Object ref = serviceAccount_; 2914 if (ref instanceof java.lang.String) { 2915 return (java.lang.String) ref; 2916 } else { 2917 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2918 java.lang.String s = bs.toStringUtf8(); 2919 serviceAccount_ = s; 2920 return s; 2921 } 2922 } 2923 /** 2924 * 2925 * 2926 * <pre> 2927 * The service account associated with the application. 2928 * This is the app-level default identity. If no identity provided during 2929 * create version, Admin API will fallback to this one. 2930 * </pre> 2931 * 2932 * <code>string service_account = 13;</code> 2933 * 2934 * @return The bytes for serviceAccount. 2935 */ 2936 @java.lang.Override getServiceAccountBytes()2937 public com.google.protobuf.ByteString getServiceAccountBytes() { 2938 java.lang.Object ref = serviceAccount_; 2939 if (ref instanceof java.lang.String) { 2940 com.google.protobuf.ByteString b = 2941 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2942 serviceAccount_ = b; 2943 return b; 2944 } else { 2945 return (com.google.protobuf.ByteString) ref; 2946 } 2947 } 2948 2949 public static final int IAP_FIELD_NUMBER = 14; 2950 private com.google.appengine.v1.Application.IdentityAwareProxy iap_; 2951 /** 2952 * <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> 2953 * 2954 * @return Whether the iap field is set. 2955 */ 2956 @java.lang.Override hasIap()2957 public boolean hasIap() { 2958 return iap_ != null; 2959 } 2960 /** 2961 * <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> 2962 * 2963 * @return The iap. 2964 */ 2965 @java.lang.Override getIap()2966 public com.google.appengine.v1.Application.IdentityAwareProxy getIap() { 2967 return iap_ == null 2968 ? com.google.appengine.v1.Application.IdentityAwareProxy.getDefaultInstance() 2969 : iap_; 2970 } 2971 /** <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> */ 2972 @java.lang.Override getIapOrBuilder()2973 public com.google.appengine.v1.Application.IdentityAwareProxyOrBuilder getIapOrBuilder() { 2974 return iap_ == null 2975 ? com.google.appengine.v1.Application.IdentityAwareProxy.getDefaultInstance() 2976 : iap_; 2977 } 2978 2979 public static final int GCR_DOMAIN_FIELD_NUMBER = 16; 2980 2981 @SuppressWarnings("serial") 2982 private volatile java.lang.Object gcrDomain_ = ""; 2983 /** 2984 * 2985 * 2986 * <pre> 2987 * The Google Container Registry domain used for storing managed build docker 2988 * images for this application. 2989 * </pre> 2990 * 2991 * <code>string gcr_domain = 16;</code> 2992 * 2993 * @return The gcrDomain. 2994 */ 2995 @java.lang.Override getGcrDomain()2996 public java.lang.String getGcrDomain() { 2997 java.lang.Object ref = gcrDomain_; 2998 if (ref instanceof java.lang.String) { 2999 return (java.lang.String) ref; 3000 } else { 3001 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3002 java.lang.String s = bs.toStringUtf8(); 3003 gcrDomain_ = s; 3004 return s; 3005 } 3006 } 3007 /** 3008 * 3009 * 3010 * <pre> 3011 * The Google Container Registry domain used for storing managed build docker 3012 * images for this application. 3013 * </pre> 3014 * 3015 * <code>string gcr_domain = 16;</code> 3016 * 3017 * @return The bytes for gcrDomain. 3018 */ 3019 @java.lang.Override getGcrDomainBytes()3020 public com.google.protobuf.ByteString getGcrDomainBytes() { 3021 java.lang.Object ref = gcrDomain_; 3022 if (ref instanceof java.lang.String) { 3023 com.google.protobuf.ByteString b = 3024 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3025 gcrDomain_ = b; 3026 return b; 3027 } else { 3028 return (com.google.protobuf.ByteString) ref; 3029 } 3030 } 3031 3032 public static final int DATABASE_TYPE_FIELD_NUMBER = 17; 3033 private int databaseType_ = 0; 3034 /** 3035 * 3036 * 3037 * <pre> 3038 * The type of the Cloud Firestore or Cloud Datastore database associated with 3039 * this application. 3040 * </pre> 3041 * 3042 * <code>.google.appengine.v1.Application.DatabaseType database_type = 17;</code> 3043 * 3044 * @return The enum numeric value on the wire for databaseType. 3045 */ 3046 @java.lang.Override getDatabaseTypeValue()3047 public int getDatabaseTypeValue() { 3048 return databaseType_; 3049 } 3050 /** 3051 * 3052 * 3053 * <pre> 3054 * The type of the Cloud Firestore or Cloud Datastore database associated with 3055 * this application. 3056 * </pre> 3057 * 3058 * <code>.google.appengine.v1.Application.DatabaseType database_type = 17;</code> 3059 * 3060 * @return The databaseType. 3061 */ 3062 @java.lang.Override getDatabaseType()3063 public com.google.appengine.v1.Application.DatabaseType getDatabaseType() { 3064 com.google.appengine.v1.Application.DatabaseType result = 3065 com.google.appengine.v1.Application.DatabaseType.forNumber(databaseType_); 3066 return result == null ? com.google.appengine.v1.Application.DatabaseType.UNRECOGNIZED : result; 3067 } 3068 3069 public static final int FEATURE_SETTINGS_FIELD_NUMBER = 18; 3070 private com.google.appengine.v1.Application.FeatureSettings featureSettings_; 3071 /** 3072 * 3073 * 3074 * <pre> 3075 * The feature specific settings to be used in the application. 3076 * </pre> 3077 * 3078 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 3079 * 3080 * @return Whether the featureSettings field is set. 3081 */ 3082 @java.lang.Override hasFeatureSettings()3083 public boolean hasFeatureSettings() { 3084 return featureSettings_ != null; 3085 } 3086 /** 3087 * 3088 * 3089 * <pre> 3090 * The feature specific settings to be used in the application. 3091 * </pre> 3092 * 3093 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 3094 * 3095 * @return The featureSettings. 3096 */ 3097 @java.lang.Override getFeatureSettings()3098 public com.google.appengine.v1.Application.FeatureSettings getFeatureSettings() { 3099 return featureSettings_ == null 3100 ? com.google.appengine.v1.Application.FeatureSettings.getDefaultInstance() 3101 : featureSettings_; 3102 } 3103 /** 3104 * 3105 * 3106 * <pre> 3107 * The feature specific settings to be used in the application. 3108 * </pre> 3109 * 3110 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 3111 */ 3112 @java.lang.Override 3113 public com.google.appengine.v1.Application.FeatureSettingsOrBuilder getFeatureSettingsOrBuilder()3114 getFeatureSettingsOrBuilder() { 3115 return featureSettings_ == null 3116 ? com.google.appengine.v1.Application.FeatureSettings.getDefaultInstance() 3117 : featureSettings_; 3118 } 3119 3120 private byte memoizedIsInitialized = -1; 3121 3122 @java.lang.Override isInitialized()3123 public final boolean isInitialized() { 3124 byte isInitialized = memoizedIsInitialized; 3125 if (isInitialized == 1) return true; 3126 if (isInitialized == 0) return false; 3127 3128 memoizedIsInitialized = 1; 3129 return true; 3130 } 3131 3132 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)3133 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 3134 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 3135 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 3136 } 3137 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 3138 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); 3139 } 3140 for (int i = 0; i < dispatchRules_.size(); i++) { 3141 output.writeMessage(3, dispatchRules_.get(i)); 3142 } 3143 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authDomain_)) { 3144 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, authDomain_); 3145 } 3146 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { 3147 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, locationId_); 3148 } 3149 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(codeBucket_)) { 3150 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codeBucket_); 3151 } 3152 if (defaultCookieExpiration_ != null) { 3153 output.writeMessage(9, getDefaultCookieExpiration()); 3154 } 3155 if (servingStatus_ 3156 != com.google.appengine.v1.Application.ServingStatus.UNSPECIFIED.getNumber()) { 3157 output.writeEnum(10, servingStatus_); 3158 } 3159 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultHostname_)) { 3160 com.google.protobuf.GeneratedMessageV3.writeString(output, 11, defaultHostname_); 3161 } 3162 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBucket_)) { 3163 com.google.protobuf.GeneratedMessageV3.writeString(output, 12, defaultBucket_); 3164 } 3165 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 3166 com.google.protobuf.GeneratedMessageV3.writeString(output, 13, serviceAccount_); 3167 } 3168 if (iap_ != null) { 3169 output.writeMessage(14, getIap()); 3170 } 3171 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcrDomain_)) { 3172 com.google.protobuf.GeneratedMessageV3.writeString(output, 16, gcrDomain_); 3173 } 3174 if (databaseType_ 3175 != com.google.appengine.v1.Application.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { 3176 output.writeEnum(17, databaseType_); 3177 } 3178 if (featureSettings_ != null) { 3179 output.writeMessage(18, getFeatureSettings()); 3180 } 3181 getUnknownFields().writeTo(output); 3182 } 3183 3184 @java.lang.Override getSerializedSize()3185 public int getSerializedSize() { 3186 int size = memoizedSize; 3187 if (size != -1) return size; 3188 3189 size = 0; 3190 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 3191 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 3192 } 3193 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 3194 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); 3195 } 3196 for (int i = 0; i < dispatchRules_.size(); i++) { 3197 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dispatchRules_.get(i)); 3198 } 3199 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authDomain_)) { 3200 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, authDomain_); 3201 } 3202 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { 3203 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, locationId_); 3204 } 3205 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(codeBucket_)) { 3206 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, codeBucket_); 3207 } 3208 if (defaultCookieExpiration_ != null) { 3209 size += 3210 com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDefaultCookieExpiration()); 3211 } 3212 if (servingStatus_ 3213 != com.google.appengine.v1.Application.ServingStatus.UNSPECIFIED.getNumber()) { 3214 size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, servingStatus_); 3215 } 3216 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultHostname_)) { 3217 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, defaultHostname_); 3218 } 3219 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBucket_)) { 3220 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, defaultBucket_); 3221 } 3222 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 3223 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, serviceAccount_); 3224 } 3225 if (iap_ != null) { 3226 size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getIap()); 3227 } 3228 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcrDomain_)) { 3229 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, gcrDomain_); 3230 } 3231 if (databaseType_ 3232 != com.google.appengine.v1.Application.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { 3233 size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, databaseType_); 3234 } 3235 if (featureSettings_ != null) { 3236 size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getFeatureSettings()); 3237 } 3238 size += getUnknownFields().getSerializedSize(); 3239 memoizedSize = size; 3240 return size; 3241 } 3242 3243 @java.lang.Override equals(final java.lang.Object obj)3244 public boolean equals(final java.lang.Object obj) { 3245 if (obj == this) { 3246 return true; 3247 } 3248 if (!(obj instanceof com.google.appengine.v1.Application)) { 3249 return super.equals(obj); 3250 } 3251 com.google.appengine.v1.Application other = (com.google.appengine.v1.Application) obj; 3252 3253 if (!getName().equals(other.getName())) return false; 3254 if (!getId().equals(other.getId())) return false; 3255 if (!getDispatchRulesList().equals(other.getDispatchRulesList())) return false; 3256 if (!getAuthDomain().equals(other.getAuthDomain())) return false; 3257 if (!getLocationId().equals(other.getLocationId())) return false; 3258 if (!getCodeBucket().equals(other.getCodeBucket())) return false; 3259 if (hasDefaultCookieExpiration() != other.hasDefaultCookieExpiration()) return false; 3260 if (hasDefaultCookieExpiration()) { 3261 if (!getDefaultCookieExpiration().equals(other.getDefaultCookieExpiration())) return false; 3262 } 3263 if (servingStatus_ != other.servingStatus_) return false; 3264 if (!getDefaultHostname().equals(other.getDefaultHostname())) return false; 3265 if (!getDefaultBucket().equals(other.getDefaultBucket())) return false; 3266 if (!getServiceAccount().equals(other.getServiceAccount())) return false; 3267 if (hasIap() != other.hasIap()) return false; 3268 if (hasIap()) { 3269 if (!getIap().equals(other.getIap())) return false; 3270 } 3271 if (!getGcrDomain().equals(other.getGcrDomain())) return false; 3272 if (databaseType_ != other.databaseType_) return false; 3273 if (hasFeatureSettings() != other.hasFeatureSettings()) return false; 3274 if (hasFeatureSettings()) { 3275 if (!getFeatureSettings().equals(other.getFeatureSettings())) return false; 3276 } 3277 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 3278 return true; 3279 } 3280 3281 @java.lang.Override hashCode()3282 public int hashCode() { 3283 if (memoizedHashCode != 0) { 3284 return memoizedHashCode; 3285 } 3286 int hash = 41; 3287 hash = (19 * hash) + getDescriptor().hashCode(); 3288 hash = (37 * hash) + NAME_FIELD_NUMBER; 3289 hash = (53 * hash) + getName().hashCode(); 3290 hash = (37 * hash) + ID_FIELD_NUMBER; 3291 hash = (53 * hash) + getId().hashCode(); 3292 if (getDispatchRulesCount() > 0) { 3293 hash = (37 * hash) + DISPATCH_RULES_FIELD_NUMBER; 3294 hash = (53 * hash) + getDispatchRulesList().hashCode(); 3295 } 3296 hash = (37 * hash) + AUTH_DOMAIN_FIELD_NUMBER; 3297 hash = (53 * hash) + getAuthDomain().hashCode(); 3298 hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; 3299 hash = (53 * hash) + getLocationId().hashCode(); 3300 hash = (37 * hash) + CODE_BUCKET_FIELD_NUMBER; 3301 hash = (53 * hash) + getCodeBucket().hashCode(); 3302 if (hasDefaultCookieExpiration()) { 3303 hash = (37 * hash) + DEFAULT_COOKIE_EXPIRATION_FIELD_NUMBER; 3304 hash = (53 * hash) + getDefaultCookieExpiration().hashCode(); 3305 } 3306 hash = (37 * hash) + SERVING_STATUS_FIELD_NUMBER; 3307 hash = (53 * hash) + servingStatus_; 3308 hash = (37 * hash) + DEFAULT_HOSTNAME_FIELD_NUMBER; 3309 hash = (53 * hash) + getDefaultHostname().hashCode(); 3310 hash = (37 * hash) + DEFAULT_BUCKET_FIELD_NUMBER; 3311 hash = (53 * hash) + getDefaultBucket().hashCode(); 3312 hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; 3313 hash = (53 * hash) + getServiceAccount().hashCode(); 3314 if (hasIap()) { 3315 hash = (37 * hash) + IAP_FIELD_NUMBER; 3316 hash = (53 * hash) + getIap().hashCode(); 3317 } 3318 hash = (37 * hash) + GCR_DOMAIN_FIELD_NUMBER; 3319 hash = (53 * hash) + getGcrDomain().hashCode(); 3320 hash = (37 * hash) + DATABASE_TYPE_FIELD_NUMBER; 3321 hash = (53 * hash) + databaseType_; 3322 if (hasFeatureSettings()) { 3323 hash = (37 * hash) + FEATURE_SETTINGS_FIELD_NUMBER; 3324 hash = (53 * hash) + getFeatureSettings().hashCode(); 3325 } 3326 hash = (29 * hash) + getUnknownFields().hashCode(); 3327 memoizedHashCode = hash; 3328 return hash; 3329 } 3330 parseFrom(java.nio.ByteBuffer data)3331 public static com.google.appengine.v1.Application parseFrom(java.nio.ByteBuffer data) 3332 throws com.google.protobuf.InvalidProtocolBufferException { 3333 return PARSER.parseFrom(data); 3334 } 3335 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3336 public static com.google.appengine.v1.Application parseFrom( 3337 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3338 throws com.google.protobuf.InvalidProtocolBufferException { 3339 return PARSER.parseFrom(data, extensionRegistry); 3340 } 3341 parseFrom(com.google.protobuf.ByteString data)3342 public static com.google.appengine.v1.Application parseFrom(com.google.protobuf.ByteString data) 3343 throws com.google.protobuf.InvalidProtocolBufferException { 3344 return PARSER.parseFrom(data); 3345 } 3346 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3347 public static com.google.appengine.v1.Application parseFrom( 3348 com.google.protobuf.ByteString data, 3349 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3350 throws com.google.protobuf.InvalidProtocolBufferException { 3351 return PARSER.parseFrom(data, extensionRegistry); 3352 } 3353 parseFrom(byte[] data)3354 public static com.google.appengine.v1.Application parseFrom(byte[] data) 3355 throws com.google.protobuf.InvalidProtocolBufferException { 3356 return PARSER.parseFrom(data); 3357 } 3358 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3359 public static com.google.appengine.v1.Application parseFrom( 3360 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3361 throws com.google.protobuf.InvalidProtocolBufferException { 3362 return PARSER.parseFrom(data, extensionRegistry); 3363 } 3364 parseFrom(java.io.InputStream input)3365 public static com.google.appengine.v1.Application parseFrom(java.io.InputStream input) 3366 throws java.io.IOException { 3367 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3368 } 3369 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3370 public static com.google.appengine.v1.Application parseFrom( 3371 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3372 throws java.io.IOException { 3373 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3374 PARSER, input, extensionRegistry); 3375 } 3376 parseDelimitedFrom(java.io.InputStream input)3377 public static com.google.appengine.v1.Application parseDelimitedFrom(java.io.InputStream input) 3378 throws java.io.IOException { 3379 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 3380 } 3381 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3382 public static com.google.appengine.v1.Application parseDelimitedFrom( 3383 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3384 throws java.io.IOException { 3385 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 3386 PARSER, input, extensionRegistry); 3387 } 3388 parseFrom( com.google.protobuf.CodedInputStream input)3389 public static com.google.appengine.v1.Application parseFrom( 3390 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 3391 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3392 } 3393 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3394 public static com.google.appengine.v1.Application parseFrom( 3395 com.google.protobuf.CodedInputStream input, 3396 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3397 throws java.io.IOException { 3398 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3399 PARSER, input, extensionRegistry); 3400 } 3401 3402 @java.lang.Override newBuilderForType()3403 public Builder newBuilderForType() { 3404 return newBuilder(); 3405 } 3406 newBuilder()3407 public static Builder newBuilder() { 3408 return DEFAULT_INSTANCE.toBuilder(); 3409 } 3410 newBuilder(com.google.appengine.v1.Application prototype)3411 public static Builder newBuilder(com.google.appengine.v1.Application prototype) { 3412 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3413 } 3414 3415 @java.lang.Override toBuilder()3416 public Builder toBuilder() { 3417 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 3418 } 3419 3420 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3421 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3422 Builder builder = new Builder(parent); 3423 return builder; 3424 } 3425 /** 3426 * 3427 * 3428 * <pre> 3429 * An Application resource contains the top-level configuration of an App 3430 * Engine application. 3431 * </pre> 3432 * 3433 * Protobuf type {@code google.appengine.v1.Application} 3434 */ 3435 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 3436 implements 3437 // @@protoc_insertion_point(builder_implements:google.appengine.v1.Application) 3438 com.google.appengine.v1.ApplicationOrBuilder { getDescriptor()3439 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 3440 return com.google.appengine.v1.ApplicationProto 3441 .internal_static_google_appengine_v1_Application_descriptor; 3442 } 3443 3444 @java.lang.Override 3445 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()3446 internalGetFieldAccessorTable() { 3447 return com.google.appengine.v1.ApplicationProto 3448 .internal_static_google_appengine_v1_Application_fieldAccessorTable 3449 .ensureFieldAccessorsInitialized( 3450 com.google.appengine.v1.Application.class, 3451 com.google.appengine.v1.Application.Builder.class); 3452 } 3453 3454 // Construct using com.google.appengine.v1.Application.newBuilder() Builder()3455 private Builder() {} 3456 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3457 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3458 super(parent); 3459 } 3460 3461 @java.lang.Override clear()3462 public Builder clear() { 3463 super.clear(); 3464 bitField0_ = 0; 3465 name_ = ""; 3466 id_ = ""; 3467 if (dispatchRulesBuilder_ == null) { 3468 dispatchRules_ = java.util.Collections.emptyList(); 3469 } else { 3470 dispatchRules_ = null; 3471 dispatchRulesBuilder_.clear(); 3472 } 3473 bitField0_ = (bitField0_ & ~0x00000004); 3474 authDomain_ = ""; 3475 locationId_ = ""; 3476 codeBucket_ = ""; 3477 defaultCookieExpiration_ = null; 3478 if (defaultCookieExpirationBuilder_ != null) { 3479 defaultCookieExpirationBuilder_.dispose(); 3480 defaultCookieExpirationBuilder_ = null; 3481 } 3482 servingStatus_ = 0; 3483 defaultHostname_ = ""; 3484 defaultBucket_ = ""; 3485 serviceAccount_ = ""; 3486 iap_ = null; 3487 if (iapBuilder_ != null) { 3488 iapBuilder_.dispose(); 3489 iapBuilder_ = null; 3490 } 3491 gcrDomain_ = ""; 3492 databaseType_ = 0; 3493 featureSettings_ = null; 3494 if (featureSettingsBuilder_ != null) { 3495 featureSettingsBuilder_.dispose(); 3496 featureSettingsBuilder_ = null; 3497 } 3498 return this; 3499 } 3500 3501 @java.lang.Override getDescriptorForType()3502 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 3503 return com.google.appengine.v1.ApplicationProto 3504 .internal_static_google_appengine_v1_Application_descriptor; 3505 } 3506 3507 @java.lang.Override getDefaultInstanceForType()3508 public com.google.appengine.v1.Application getDefaultInstanceForType() { 3509 return com.google.appengine.v1.Application.getDefaultInstance(); 3510 } 3511 3512 @java.lang.Override build()3513 public com.google.appengine.v1.Application build() { 3514 com.google.appengine.v1.Application result = buildPartial(); 3515 if (!result.isInitialized()) { 3516 throw newUninitializedMessageException(result); 3517 } 3518 return result; 3519 } 3520 3521 @java.lang.Override buildPartial()3522 public com.google.appengine.v1.Application buildPartial() { 3523 com.google.appengine.v1.Application result = new com.google.appengine.v1.Application(this); 3524 buildPartialRepeatedFields(result); 3525 if (bitField0_ != 0) { 3526 buildPartial0(result); 3527 } 3528 onBuilt(); 3529 return result; 3530 } 3531 buildPartialRepeatedFields(com.google.appengine.v1.Application result)3532 private void buildPartialRepeatedFields(com.google.appengine.v1.Application result) { 3533 if (dispatchRulesBuilder_ == null) { 3534 if (((bitField0_ & 0x00000004) != 0)) { 3535 dispatchRules_ = java.util.Collections.unmodifiableList(dispatchRules_); 3536 bitField0_ = (bitField0_ & ~0x00000004); 3537 } 3538 result.dispatchRules_ = dispatchRules_; 3539 } else { 3540 result.dispatchRules_ = dispatchRulesBuilder_.build(); 3541 } 3542 } 3543 buildPartial0(com.google.appengine.v1.Application result)3544 private void buildPartial0(com.google.appengine.v1.Application result) { 3545 int from_bitField0_ = bitField0_; 3546 if (((from_bitField0_ & 0x00000001) != 0)) { 3547 result.name_ = name_; 3548 } 3549 if (((from_bitField0_ & 0x00000002) != 0)) { 3550 result.id_ = id_; 3551 } 3552 if (((from_bitField0_ & 0x00000008) != 0)) { 3553 result.authDomain_ = authDomain_; 3554 } 3555 if (((from_bitField0_ & 0x00000010) != 0)) { 3556 result.locationId_ = locationId_; 3557 } 3558 if (((from_bitField0_ & 0x00000020) != 0)) { 3559 result.codeBucket_ = codeBucket_; 3560 } 3561 if (((from_bitField0_ & 0x00000040) != 0)) { 3562 result.defaultCookieExpiration_ = 3563 defaultCookieExpirationBuilder_ == null 3564 ? defaultCookieExpiration_ 3565 : defaultCookieExpirationBuilder_.build(); 3566 } 3567 if (((from_bitField0_ & 0x00000080) != 0)) { 3568 result.servingStatus_ = servingStatus_; 3569 } 3570 if (((from_bitField0_ & 0x00000100) != 0)) { 3571 result.defaultHostname_ = defaultHostname_; 3572 } 3573 if (((from_bitField0_ & 0x00000200) != 0)) { 3574 result.defaultBucket_ = defaultBucket_; 3575 } 3576 if (((from_bitField0_ & 0x00000400) != 0)) { 3577 result.serviceAccount_ = serviceAccount_; 3578 } 3579 if (((from_bitField0_ & 0x00000800) != 0)) { 3580 result.iap_ = iapBuilder_ == null ? iap_ : iapBuilder_.build(); 3581 } 3582 if (((from_bitField0_ & 0x00001000) != 0)) { 3583 result.gcrDomain_ = gcrDomain_; 3584 } 3585 if (((from_bitField0_ & 0x00002000) != 0)) { 3586 result.databaseType_ = databaseType_; 3587 } 3588 if (((from_bitField0_ & 0x00004000) != 0)) { 3589 result.featureSettings_ = 3590 featureSettingsBuilder_ == null ? featureSettings_ : featureSettingsBuilder_.build(); 3591 } 3592 } 3593 3594 @java.lang.Override clone()3595 public Builder clone() { 3596 return super.clone(); 3597 } 3598 3599 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3600 public Builder setField( 3601 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3602 return super.setField(field, value); 3603 } 3604 3605 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3606 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 3607 return super.clearField(field); 3608 } 3609 3610 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3611 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 3612 return super.clearOneof(oneof); 3613 } 3614 3615 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3616 public Builder setRepeatedField( 3617 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 3618 return super.setRepeatedField(field, index, value); 3619 } 3620 3621 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3622 public Builder addRepeatedField( 3623 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3624 return super.addRepeatedField(field, value); 3625 } 3626 3627 @java.lang.Override mergeFrom(com.google.protobuf.Message other)3628 public Builder mergeFrom(com.google.protobuf.Message other) { 3629 if (other instanceof com.google.appengine.v1.Application) { 3630 return mergeFrom((com.google.appengine.v1.Application) other); 3631 } else { 3632 super.mergeFrom(other); 3633 return this; 3634 } 3635 } 3636 mergeFrom(com.google.appengine.v1.Application other)3637 public Builder mergeFrom(com.google.appengine.v1.Application other) { 3638 if (other == com.google.appengine.v1.Application.getDefaultInstance()) return this; 3639 if (!other.getName().isEmpty()) { 3640 name_ = other.name_; 3641 bitField0_ |= 0x00000001; 3642 onChanged(); 3643 } 3644 if (!other.getId().isEmpty()) { 3645 id_ = other.id_; 3646 bitField0_ |= 0x00000002; 3647 onChanged(); 3648 } 3649 if (dispatchRulesBuilder_ == null) { 3650 if (!other.dispatchRules_.isEmpty()) { 3651 if (dispatchRules_.isEmpty()) { 3652 dispatchRules_ = other.dispatchRules_; 3653 bitField0_ = (bitField0_ & ~0x00000004); 3654 } else { 3655 ensureDispatchRulesIsMutable(); 3656 dispatchRules_.addAll(other.dispatchRules_); 3657 } 3658 onChanged(); 3659 } 3660 } else { 3661 if (!other.dispatchRules_.isEmpty()) { 3662 if (dispatchRulesBuilder_.isEmpty()) { 3663 dispatchRulesBuilder_.dispose(); 3664 dispatchRulesBuilder_ = null; 3665 dispatchRules_ = other.dispatchRules_; 3666 bitField0_ = (bitField0_ & ~0x00000004); 3667 dispatchRulesBuilder_ = 3668 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 3669 ? getDispatchRulesFieldBuilder() 3670 : null; 3671 } else { 3672 dispatchRulesBuilder_.addAllMessages(other.dispatchRules_); 3673 } 3674 } 3675 } 3676 if (!other.getAuthDomain().isEmpty()) { 3677 authDomain_ = other.authDomain_; 3678 bitField0_ |= 0x00000008; 3679 onChanged(); 3680 } 3681 if (!other.getLocationId().isEmpty()) { 3682 locationId_ = other.locationId_; 3683 bitField0_ |= 0x00000010; 3684 onChanged(); 3685 } 3686 if (!other.getCodeBucket().isEmpty()) { 3687 codeBucket_ = other.codeBucket_; 3688 bitField0_ |= 0x00000020; 3689 onChanged(); 3690 } 3691 if (other.hasDefaultCookieExpiration()) { 3692 mergeDefaultCookieExpiration(other.getDefaultCookieExpiration()); 3693 } 3694 if (other.servingStatus_ != 0) { 3695 setServingStatusValue(other.getServingStatusValue()); 3696 } 3697 if (!other.getDefaultHostname().isEmpty()) { 3698 defaultHostname_ = other.defaultHostname_; 3699 bitField0_ |= 0x00000100; 3700 onChanged(); 3701 } 3702 if (!other.getDefaultBucket().isEmpty()) { 3703 defaultBucket_ = other.defaultBucket_; 3704 bitField0_ |= 0x00000200; 3705 onChanged(); 3706 } 3707 if (!other.getServiceAccount().isEmpty()) { 3708 serviceAccount_ = other.serviceAccount_; 3709 bitField0_ |= 0x00000400; 3710 onChanged(); 3711 } 3712 if (other.hasIap()) { 3713 mergeIap(other.getIap()); 3714 } 3715 if (!other.getGcrDomain().isEmpty()) { 3716 gcrDomain_ = other.gcrDomain_; 3717 bitField0_ |= 0x00001000; 3718 onChanged(); 3719 } 3720 if (other.databaseType_ != 0) { 3721 setDatabaseTypeValue(other.getDatabaseTypeValue()); 3722 } 3723 if (other.hasFeatureSettings()) { 3724 mergeFeatureSettings(other.getFeatureSettings()); 3725 } 3726 this.mergeUnknownFields(other.getUnknownFields()); 3727 onChanged(); 3728 return this; 3729 } 3730 3731 @java.lang.Override isInitialized()3732 public final boolean isInitialized() { 3733 return true; 3734 } 3735 3736 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3737 public Builder mergeFrom( 3738 com.google.protobuf.CodedInputStream input, 3739 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3740 throws java.io.IOException { 3741 if (extensionRegistry == null) { 3742 throw new java.lang.NullPointerException(); 3743 } 3744 try { 3745 boolean done = false; 3746 while (!done) { 3747 int tag = input.readTag(); 3748 switch (tag) { 3749 case 0: 3750 done = true; 3751 break; 3752 case 10: 3753 { 3754 name_ = input.readStringRequireUtf8(); 3755 bitField0_ |= 0x00000001; 3756 break; 3757 } // case 10 3758 case 18: 3759 { 3760 id_ = input.readStringRequireUtf8(); 3761 bitField0_ |= 0x00000002; 3762 break; 3763 } // case 18 3764 case 26: 3765 { 3766 com.google.appengine.v1.UrlDispatchRule m = 3767 input.readMessage( 3768 com.google.appengine.v1.UrlDispatchRule.parser(), extensionRegistry); 3769 if (dispatchRulesBuilder_ == null) { 3770 ensureDispatchRulesIsMutable(); 3771 dispatchRules_.add(m); 3772 } else { 3773 dispatchRulesBuilder_.addMessage(m); 3774 } 3775 break; 3776 } // case 26 3777 case 50: 3778 { 3779 authDomain_ = input.readStringRequireUtf8(); 3780 bitField0_ |= 0x00000008; 3781 break; 3782 } // case 50 3783 case 58: 3784 { 3785 locationId_ = input.readStringRequireUtf8(); 3786 bitField0_ |= 0x00000010; 3787 break; 3788 } // case 58 3789 case 66: 3790 { 3791 codeBucket_ = input.readStringRequireUtf8(); 3792 bitField0_ |= 0x00000020; 3793 break; 3794 } // case 66 3795 case 74: 3796 { 3797 input.readMessage( 3798 getDefaultCookieExpirationFieldBuilder().getBuilder(), extensionRegistry); 3799 bitField0_ |= 0x00000040; 3800 break; 3801 } // case 74 3802 case 80: 3803 { 3804 servingStatus_ = input.readEnum(); 3805 bitField0_ |= 0x00000080; 3806 break; 3807 } // case 80 3808 case 90: 3809 { 3810 defaultHostname_ = input.readStringRequireUtf8(); 3811 bitField0_ |= 0x00000100; 3812 break; 3813 } // case 90 3814 case 98: 3815 { 3816 defaultBucket_ = input.readStringRequireUtf8(); 3817 bitField0_ |= 0x00000200; 3818 break; 3819 } // case 98 3820 case 106: 3821 { 3822 serviceAccount_ = input.readStringRequireUtf8(); 3823 bitField0_ |= 0x00000400; 3824 break; 3825 } // case 106 3826 case 114: 3827 { 3828 input.readMessage(getIapFieldBuilder().getBuilder(), extensionRegistry); 3829 bitField0_ |= 0x00000800; 3830 break; 3831 } // case 114 3832 case 130: 3833 { 3834 gcrDomain_ = input.readStringRequireUtf8(); 3835 bitField0_ |= 0x00001000; 3836 break; 3837 } // case 130 3838 case 136: 3839 { 3840 databaseType_ = input.readEnum(); 3841 bitField0_ |= 0x00002000; 3842 break; 3843 } // case 136 3844 case 146: 3845 { 3846 input.readMessage(getFeatureSettingsFieldBuilder().getBuilder(), extensionRegistry); 3847 bitField0_ |= 0x00004000; 3848 break; 3849 } // case 146 3850 default: 3851 { 3852 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 3853 done = true; // was an endgroup tag 3854 } 3855 break; 3856 } // default: 3857 } // switch (tag) 3858 } // while (!done) 3859 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3860 throw e.unwrapIOException(); 3861 } finally { 3862 onChanged(); 3863 } // finally 3864 return this; 3865 } 3866 3867 private int bitField0_; 3868 3869 private java.lang.Object name_ = ""; 3870 /** 3871 * 3872 * 3873 * <pre> 3874 * Full path to the Application resource in the API. 3875 * Example: `apps/myapp`. 3876 * @OutputOnly 3877 * </pre> 3878 * 3879 * <code>string name = 1;</code> 3880 * 3881 * @return The name. 3882 */ getName()3883 public java.lang.String getName() { 3884 java.lang.Object ref = name_; 3885 if (!(ref instanceof java.lang.String)) { 3886 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3887 java.lang.String s = bs.toStringUtf8(); 3888 name_ = s; 3889 return s; 3890 } else { 3891 return (java.lang.String) ref; 3892 } 3893 } 3894 /** 3895 * 3896 * 3897 * <pre> 3898 * Full path to the Application resource in the API. 3899 * Example: `apps/myapp`. 3900 * @OutputOnly 3901 * </pre> 3902 * 3903 * <code>string name = 1;</code> 3904 * 3905 * @return The bytes for name. 3906 */ getNameBytes()3907 public com.google.protobuf.ByteString getNameBytes() { 3908 java.lang.Object ref = name_; 3909 if (ref instanceof String) { 3910 com.google.protobuf.ByteString b = 3911 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3912 name_ = b; 3913 return b; 3914 } else { 3915 return (com.google.protobuf.ByteString) ref; 3916 } 3917 } 3918 /** 3919 * 3920 * 3921 * <pre> 3922 * Full path to the Application resource in the API. 3923 * Example: `apps/myapp`. 3924 * @OutputOnly 3925 * </pre> 3926 * 3927 * <code>string name = 1;</code> 3928 * 3929 * @param value The name to set. 3930 * @return This builder for chaining. 3931 */ setName(java.lang.String value)3932 public Builder setName(java.lang.String value) { 3933 if (value == null) { 3934 throw new NullPointerException(); 3935 } 3936 name_ = value; 3937 bitField0_ |= 0x00000001; 3938 onChanged(); 3939 return this; 3940 } 3941 /** 3942 * 3943 * 3944 * <pre> 3945 * Full path to the Application resource in the API. 3946 * Example: `apps/myapp`. 3947 * @OutputOnly 3948 * </pre> 3949 * 3950 * <code>string name = 1;</code> 3951 * 3952 * @return This builder for chaining. 3953 */ clearName()3954 public Builder clearName() { 3955 name_ = getDefaultInstance().getName(); 3956 bitField0_ = (bitField0_ & ~0x00000001); 3957 onChanged(); 3958 return this; 3959 } 3960 /** 3961 * 3962 * 3963 * <pre> 3964 * Full path to the Application resource in the API. 3965 * Example: `apps/myapp`. 3966 * @OutputOnly 3967 * </pre> 3968 * 3969 * <code>string name = 1;</code> 3970 * 3971 * @param value The bytes for name to set. 3972 * @return This builder for chaining. 3973 */ setNameBytes(com.google.protobuf.ByteString value)3974 public Builder setNameBytes(com.google.protobuf.ByteString value) { 3975 if (value == null) { 3976 throw new NullPointerException(); 3977 } 3978 checkByteStringIsUtf8(value); 3979 name_ = value; 3980 bitField0_ |= 0x00000001; 3981 onChanged(); 3982 return this; 3983 } 3984 3985 private java.lang.Object id_ = ""; 3986 /** 3987 * 3988 * 3989 * <pre> 3990 * Identifier of the Application resource. This identifier is equivalent 3991 * to the project ID of the Google Cloud Platform project where you want to 3992 * deploy your application. 3993 * Example: `myapp`. 3994 * </pre> 3995 * 3996 * <code>string id = 2;</code> 3997 * 3998 * @return The id. 3999 */ getId()4000 public java.lang.String getId() { 4001 java.lang.Object ref = id_; 4002 if (!(ref instanceof java.lang.String)) { 4003 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4004 java.lang.String s = bs.toStringUtf8(); 4005 id_ = s; 4006 return s; 4007 } else { 4008 return (java.lang.String) ref; 4009 } 4010 } 4011 /** 4012 * 4013 * 4014 * <pre> 4015 * Identifier of the Application resource. This identifier is equivalent 4016 * to the project ID of the Google Cloud Platform project where you want to 4017 * deploy your application. 4018 * Example: `myapp`. 4019 * </pre> 4020 * 4021 * <code>string id = 2;</code> 4022 * 4023 * @return The bytes for id. 4024 */ getIdBytes()4025 public com.google.protobuf.ByteString getIdBytes() { 4026 java.lang.Object ref = id_; 4027 if (ref instanceof String) { 4028 com.google.protobuf.ByteString b = 4029 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4030 id_ = b; 4031 return b; 4032 } else { 4033 return (com.google.protobuf.ByteString) ref; 4034 } 4035 } 4036 /** 4037 * 4038 * 4039 * <pre> 4040 * Identifier of the Application resource. This identifier is equivalent 4041 * to the project ID of the Google Cloud Platform project where you want to 4042 * deploy your application. 4043 * Example: `myapp`. 4044 * </pre> 4045 * 4046 * <code>string id = 2;</code> 4047 * 4048 * @param value The id to set. 4049 * @return This builder for chaining. 4050 */ setId(java.lang.String value)4051 public Builder setId(java.lang.String value) { 4052 if (value == null) { 4053 throw new NullPointerException(); 4054 } 4055 id_ = value; 4056 bitField0_ |= 0x00000002; 4057 onChanged(); 4058 return this; 4059 } 4060 /** 4061 * 4062 * 4063 * <pre> 4064 * Identifier of the Application resource. This identifier is equivalent 4065 * to the project ID of the Google Cloud Platform project where you want to 4066 * deploy your application. 4067 * Example: `myapp`. 4068 * </pre> 4069 * 4070 * <code>string id = 2;</code> 4071 * 4072 * @return This builder for chaining. 4073 */ clearId()4074 public Builder clearId() { 4075 id_ = getDefaultInstance().getId(); 4076 bitField0_ = (bitField0_ & ~0x00000002); 4077 onChanged(); 4078 return this; 4079 } 4080 /** 4081 * 4082 * 4083 * <pre> 4084 * Identifier of the Application resource. This identifier is equivalent 4085 * to the project ID of the Google Cloud Platform project where you want to 4086 * deploy your application. 4087 * Example: `myapp`. 4088 * </pre> 4089 * 4090 * <code>string id = 2;</code> 4091 * 4092 * @param value The bytes for id to set. 4093 * @return This builder for chaining. 4094 */ setIdBytes(com.google.protobuf.ByteString value)4095 public Builder setIdBytes(com.google.protobuf.ByteString value) { 4096 if (value == null) { 4097 throw new NullPointerException(); 4098 } 4099 checkByteStringIsUtf8(value); 4100 id_ = value; 4101 bitField0_ |= 0x00000002; 4102 onChanged(); 4103 return this; 4104 } 4105 4106 private java.util.List<com.google.appengine.v1.UrlDispatchRule> dispatchRules_ = 4107 java.util.Collections.emptyList(); 4108 ensureDispatchRulesIsMutable()4109 private void ensureDispatchRulesIsMutable() { 4110 if (!((bitField0_ & 0x00000004) != 0)) { 4111 dispatchRules_ = 4112 new java.util.ArrayList<com.google.appengine.v1.UrlDispatchRule>(dispatchRules_); 4113 bitField0_ |= 0x00000004; 4114 } 4115 } 4116 4117 private com.google.protobuf.RepeatedFieldBuilderV3< 4118 com.google.appengine.v1.UrlDispatchRule, 4119 com.google.appengine.v1.UrlDispatchRule.Builder, 4120 com.google.appengine.v1.UrlDispatchRuleOrBuilder> 4121 dispatchRulesBuilder_; 4122 4123 /** 4124 * 4125 * 4126 * <pre> 4127 * HTTP path dispatch rules for requests to the application that do not 4128 * explicitly target a service or version. Rules are order-dependent. 4129 * Up to 20 dispatch rules can be supported. 4130 * </pre> 4131 * 4132 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4133 */ getDispatchRulesList()4134 public java.util.List<com.google.appengine.v1.UrlDispatchRule> getDispatchRulesList() { 4135 if (dispatchRulesBuilder_ == null) { 4136 return java.util.Collections.unmodifiableList(dispatchRules_); 4137 } else { 4138 return dispatchRulesBuilder_.getMessageList(); 4139 } 4140 } 4141 /** 4142 * 4143 * 4144 * <pre> 4145 * HTTP path dispatch rules for requests to the application that do not 4146 * explicitly target a service or version. Rules are order-dependent. 4147 * Up to 20 dispatch rules can be supported. 4148 * </pre> 4149 * 4150 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4151 */ getDispatchRulesCount()4152 public int getDispatchRulesCount() { 4153 if (dispatchRulesBuilder_ == null) { 4154 return dispatchRules_.size(); 4155 } else { 4156 return dispatchRulesBuilder_.getCount(); 4157 } 4158 } 4159 /** 4160 * 4161 * 4162 * <pre> 4163 * HTTP path dispatch rules for requests to the application that do not 4164 * explicitly target a service or version. Rules are order-dependent. 4165 * Up to 20 dispatch rules can be supported. 4166 * </pre> 4167 * 4168 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4169 */ getDispatchRules(int index)4170 public com.google.appengine.v1.UrlDispatchRule getDispatchRules(int index) { 4171 if (dispatchRulesBuilder_ == null) { 4172 return dispatchRules_.get(index); 4173 } else { 4174 return dispatchRulesBuilder_.getMessage(index); 4175 } 4176 } 4177 /** 4178 * 4179 * 4180 * <pre> 4181 * HTTP path dispatch rules for requests to the application that do not 4182 * explicitly target a service or version. Rules are order-dependent. 4183 * Up to 20 dispatch rules can be supported. 4184 * </pre> 4185 * 4186 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4187 */ setDispatchRules(int index, com.google.appengine.v1.UrlDispatchRule value)4188 public Builder setDispatchRules(int index, com.google.appengine.v1.UrlDispatchRule value) { 4189 if (dispatchRulesBuilder_ == null) { 4190 if (value == null) { 4191 throw new NullPointerException(); 4192 } 4193 ensureDispatchRulesIsMutable(); 4194 dispatchRules_.set(index, value); 4195 onChanged(); 4196 } else { 4197 dispatchRulesBuilder_.setMessage(index, value); 4198 } 4199 return this; 4200 } 4201 /** 4202 * 4203 * 4204 * <pre> 4205 * HTTP path dispatch rules for requests to the application that do not 4206 * explicitly target a service or version. Rules are order-dependent. 4207 * Up to 20 dispatch rules can be supported. 4208 * </pre> 4209 * 4210 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4211 */ setDispatchRules( int index, com.google.appengine.v1.UrlDispatchRule.Builder builderForValue)4212 public Builder setDispatchRules( 4213 int index, com.google.appengine.v1.UrlDispatchRule.Builder builderForValue) { 4214 if (dispatchRulesBuilder_ == null) { 4215 ensureDispatchRulesIsMutable(); 4216 dispatchRules_.set(index, builderForValue.build()); 4217 onChanged(); 4218 } else { 4219 dispatchRulesBuilder_.setMessage(index, builderForValue.build()); 4220 } 4221 return this; 4222 } 4223 /** 4224 * 4225 * 4226 * <pre> 4227 * HTTP path dispatch rules for requests to the application that do not 4228 * explicitly target a service or version. Rules are order-dependent. 4229 * Up to 20 dispatch rules can be supported. 4230 * </pre> 4231 * 4232 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4233 */ addDispatchRules(com.google.appengine.v1.UrlDispatchRule value)4234 public Builder addDispatchRules(com.google.appengine.v1.UrlDispatchRule value) { 4235 if (dispatchRulesBuilder_ == null) { 4236 if (value == null) { 4237 throw new NullPointerException(); 4238 } 4239 ensureDispatchRulesIsMutable(); 4240 dispatchRules_.add(value); 4241 onChanged(); 4242 } else { 4243 dispatchRulesBuilder_.addMessage(value); 4244 } 4245 return this; 4246 } 4247 /** 4248 * 4249 * 4250 * <pre> 4251 * HTTP path dispatch rules for requests to the application that do not 4252 * explicitly target a service or version. Rules are order-dependent. 4253 * Up to 20 dispatch rules can be supported. 4254 * </pre> 4255 * 4256 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4257 */ addDispatchRules(int index, com.google.appengine.v1.UrlDispatchRule value)4258 public Builder addDispatchRules(int index, com.google.appengine.v1.UrlDispatchRule value) { 4259 if (dispatchRulesBuilder_ == null) { 4260 if (value == null) { 4261 throw new NullPointerException(); 4262 } 4263 ensureDispatchRulesIsMutable(); 4264 dispatchRules_.add(index, value); 4265 onChanged(); 4266 } else { 4267 dispatchRulesBuilder_.addMessage(index, value); 4268 } 4269 return this; 4270 } 4271 /** 4272 * 4273 * 4274 * <pre> 4275 * HTTP path dispatch rules for requests to the application that do not 4276 * explicitly target a service or version. Rules are order-dependent. 4277 * Up to 20 dispatch rules can be supported. 4278 * </pre> 4279 * 4280 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4281 */ addDispatchRules( com.google.appengine.v1.UrlDispatchRule.Builder builderForValue)4282 public Builder addDispatchRules( 4283 com.google.appengine.v1.UrlDispatchRule.Builder builderForValue) { 4284 if (dispatchRulesBuilder_ == null) { 4285 ensureDispatchRulesIsMutable(); 4286 dispatchRules_.add(builderForValue.build()); 4287 onChanged(); 4288 } else { 4289 dispatchRulesBuilder_.addMessage(builderForValue.build()); 4290 } 4291 return this; 4292 } 4293 /** 4294 * 4295 * 4296 * <pre> 4297 * HTTP path dispatch rules for requests to the application that do not 4298 * explicitly target a service or version. Rules are order-dependent. 4299 * Up to 20 dispatch rules can be supported. 4300 * </pre> 4301 * 4302 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4303 */ addDispatchRules( int index, com.google.appengine.v1.UrlDispatchRule.Builder builderForValue)4304 public Builder addDispatchRules( 4305 int index, com.google.appengine.v1.UrlDispatchRule.Builder builderForValue) { 4306 if (dispatchRulesBuilder_ == null) { 4307 ensureDispatchRulesIsMutable(); 4308 dispatchRules_.add(index, builderForValue.build()); 4309 onChanged(); 4310 } else { 4311 dispatchRulesBuilder_.addMessage(index, builderForValue.build()); 4312 } 4313 return this; 4314 } 4315 /** 4316 * 4317 * 4318 * <pre> 4319 * HTTP path dispatch rules for requests to the application that do not 4320 * explicitly target a service or version. Rules are order-dependent. 4321 * Up to 20 dispatch rules can be supported. 4322 * </pre> 4323 * 4324 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4325 */ addAllDispatchRules( java.lang.Iterable<? extends com.google.appengine.v1.UrlDispatchRule> values)4326 public Builder addAllDispatchRules( 4327 java.lang.Iterable<? extends com.google.appengine.v1.UrlDispatchRule> values) { 4328 if (dispatchRulesBuilder_ == null) { 4329 ensureDispatchRulesIsMutable(); 4330 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dispatchRules_); 4331 onChanged(); 4332 } else { 4333 dispatchRulesBuilder_.addAllMessages(values); 4334 } 4335 return this; 4336 } 4337 /** 4338 * 4339 * 4340 * <pre> 4341 * HTTP path dispatch rules for requests to the application that do not 4342 * explicitly target a service or version. Rules are order-dependent. 4343 * Up to 20 dispatch rules can be supported. 4344 * </pre> 4345 * 4346 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4347 */ clearDispatchRules()4348 public Builder clearDispatchRules() { 4349 if (dispatchRulesBuilder_ == null) { 4350 dispatchRules_ = java.util.Collections.emptyList(); 4351 bitField0_ = (bitField0_ & ~0x00000004); 4352 onChanged(); 4353 } else { 4354 dispatchRulesBuilder_.clear(); 4355 } 4356 return this; 4357 } 4358 /** 4359 * 4360 * 4361 * <pre> 4362 * HTTP path dispatch rules for requests to the application that do not 4363 * explicitly target a service or version. Rules are order-dependent. 4364 * Up to 20 dispatch rules can be supported. 4365 * </pre> 4366 * 4367 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4368 */ removeDispatchRules(int index)4369 public Builder removeDispatchRules(int index) { 4370 if (dispatchRulesBuilder_ == null) { 4371 ensureDispatchRulesIsMutable(); 4372 dispatchRules_.remove(index); 4373 onChanged(); 4374 } else { 4375 dispatchRulesBuilder_.remove(index); 4376 } 4377 return this; 4378 } 4379 /** 4380 * 4381 * 4382 * <pre> 4383 * HTTP path dispatch rules for requests to the application that do not 4384 * explicitly target a service or version. Rules are order-dependent. 4385 * Up to 20 dispatch rules can be supported. 4386 * </pre> 4387 * 4388 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4389 */ getDispatchRulesBuilder(int index)4390 public com.google.appengine.v1.UrlDispatchRule.Builder getDispatchRulesBuilder(int index) { 4391 return getDispatchRulesFieldBuilder().getBuilder(index); 4392 } 4393 /** 4394 * 4395 * 4396 * <pre> 4397 * HTTP path dispatch rules for requests to the application that do not 4398 * explicitly target a service or version. Rules are order-dependent. 4399 * Up to 20 dispatch rules can be supported. 4400 * </pre> 4401 * 4402 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4403 */ getDispatchRulesOrBuilder(int index)4404 public com.google.appengine.v1.UrlDispatchRuleOrBuilder getDispatchRulesOrBuilder(int index) { 4405 if (dispatchRulesBuilder_ == null) { 4406 return dispatchRules_.get(index); 4407 } else { 4408 return dispatchRulesBuilder_.getMessageOrBuilder(index); 4409 } 4410 } 4411 /** 4412 * 4413 * 4414 * <pre> 4415 * HTTP path dispatch rules for requests to the application that do not 4416 * explicitly target a service or version. Rules are order-dependent. 4417 * Up to 20 dispatch rules can be supported. 4418 * </pre> 4419 * 4420 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4421 */ 4422 public java.util.List<? extends com.google.appengine.v1.UrlDispatchRuleOrBuilder> getDispatchRulesOrBuilderList()4423 getDispatchRulesOrBuilderList() { 4424 if (dispatchRulesBuilder_ != null) { 4425 return dispatchRulesBuilder_.getMessageOrBuilderList(); 4426 } else { 4427 return java.util.Collections.unmodifiableList(dispatchRules_); 4428 } 4429 } 4430 /** 4431 * 4432 * 4433 * <pre> 4434 * HTTP path dispatch rules for requests to the application that do not 4435 * explicitly target a service or version. Rules are order-dependent. 4436 * Up to 20 dispatch rules can be supported. 4437 * </pre> 4438 * 4439 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4440 */ addDispatchRulesBuilder()4441 public com.google.appengine.v1.UrlDispatchRule.Builder addDispatchRulesBuilder() { 4442 return getDispatchRulesFieldBuilder() 4443 .addBuilder(com.google.appengine.v1.UrlDispatchRule.getDefaultInstance()); 4444 } 4445 /** 4446 * 4447 * 4448 * <pre> 4449 * HTTP path dispatch rules for requests to the application that do not 4450 * explicitly target a service or version. Rules are order-dependent. 4451 * Up to 20 dispatch rules can be supported. 4452 * </pre> 4453 * 4454 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4455 */ addDispatchRulesBuilder(int index)4456 public com.google.appengine.v1.UrlDispatchRule.Builder addDispatchRulesBuilder(int index) { 4457 return getDispatchRulesFieldBuilder() 4458 .addBuilder(index, com.google.appengine.v1.UrlDispatchRule.getDefaultInstance()); 4459 } 4460 /** 4461 * 4462 * 4463 * <pre> 4464 * HTTP path dispatch rules for requests to the application that do not 4465 * explicitly target a service or version. Rules are order-dependent. 4466 * Up to 20 dispatch rules can be supported. 4467 * </pre> 4468 * 4469 * <code>repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3;</code> 4470 */ 4471 public java.util.List<com.google.appengine.v1.UrlDispatchRule.Builder> getDispatchRulesBuilderList()4472 getDispatchRulesBuilderList() { 4473 return getDispatchRulesFieldBuilder().getBuilderList(); 4474 } 4475 4476 private com.google.protobuf.RepeatedFieldBuilderV3< 4477 com.google.appengine.v1.UrlDispatchRule, 4478 com.google.appengine.v1.UrlDispatchRule.Builder, 4479 com.google.appengine.v1.UrlDispatchRuleOrBuilder> getDispatchRulesFieldBuilder()4480 getDispatchRulesFieldBuilder() { 4481 if (dispatchRulesBuilder_ == null) { 4482 dispatchRulesBuilder_ = 4483 new com.google.protobuf.RepeatedFieldBuilderV3< 4484 com.google.appengine.v1.UrlDispatchRule, 4485 com.google.appengine.v1.UrlDispatchRule.Builder, 4486 com.google.appengine.v1.UrlDispatchRuleOrBuilder>( 4487 dispatchRules_, 4488 ((bitField0_ & 0x00000004) != 0), 4489 getParentForChildren(), 4490 isClean()); 4491 dispatchRules_ = null; 4492 } 4493 return dispatchRulesBuilder_; 4494 } 4495 4496 private java.lang.Object authDomain_ = ""; 4497 /** 4498 * 4499 * 4500 * <pre> 4501 * Google Apps authentication domain that controls which users can access 4502 * this application. 4503 * Defaults to open access for any Google Account. 4504 * </pre> 4505 * 4506 * <code>string auth_domain = 6;</code> 4507 * 4508 * @return The authDomain. 4509 */ getAuthDomain()4510 public java.lang.String getAuthDomain() { 4511 java.lang.Object ref = authDomain_; 4512 if (!(ref instanceof java.lang.String)) { 4513 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4514 java.lang.String s = bs.toStringUtf8(); 4515 authDomain_ = s; 4516 return s; 4517 } else { 4518 return (java.lang.String) ref; 4519 } 4520 } 4521 /** 4522 * 4523 * 4524 * <pre> 4525 * Google Apps authentication domain that controls which users can access 4526 * this application. 4527 * Defaults to open access for any Google Account. 4528 * </pre> 4529 * 4530 * <code>string auth_domain = 6;</code> 4531 * 4532 * @return The bytes for authDomain. 4533 */ getAuthDomainBytes()4534 public com.google.protobuf.ByteString getAuthDomainBytes() { 4535 java.lang.Object ref = authDomain_; 4536 if (ref instanceof String) { 4537 com.google.protobuf.ByteString b = 4538 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4539 authDomain_ = b; 4540 return b; 4541 } else { 4542 return (com.google.protobuf.ByteString) ref; 4543 } 4544 } 4545 /** 4546 * 4547 * 4548 * <pre> 4549 * Google Apps authentication domain that controls which users can access 4550 * this application. 4551 * Defaults to open access for any Google Account. 4552 * </pre> 4553 * 4554 * <code>string auth_domain = 6;</code> 4555 * 4556 * @param value The authDomain to set. 4557 * @return This builder for chaining. 4558 */ setAuthDomain(java.lang.String value)4559 public Builder setAuthDomain(java.lang.String value) { 4560 if (value == null) { 4561 throw new NullPointerException(); 4562 } 4563 authDomain_ = value; 4564 bitField0_ |= 0x00000008; 4565 onChanged(); 4566 return this; 4567 } 4568 /** 4569 * 4570 * 4571 * <pre> 4572 * Google Apps authentication domain that controls which users can access 4573 * this application. 4574 * Defaults to open access for any Google Account. 4575 * </pre> 4576 * 4577 * <code>string auth_domain = 6;</code> 4578 * 4579 * @return This builder for chaining. 4580 */ clearAuthDomain()4581 public Builder clearAuthDomain() { 4582 authDomain_ = getDefaultInstance().getAuthDomain(); 4583 bitField0_ = (bitField0_ & ~0x00000008); 4584 onChanged(); 4585 return this; 4586 } 4587 /** 4588 * 4589 * 4590 * <pre> 4591 * Google Apps authentication domain that controls which users can access 4592 * this application. 4593 * Defaults to open access for any Google Account. 4594 * </pre> 4595 * 4596 * <code>string auth_domain = 6;</code> 4597 * 4598 * @param value The bytes for authDomain to set. 4599 * @return This builder for chaining. 4600 */ setAuthDomainBytes(com.google.protobuf.ByteString value)4601 public Builder setAuthDomainBytes(com.google.protobuf.ByteString value) { 4602 if (value == null) { 4603 throw new NullPointerException(); 4604 } 4605 checkByteStringIsUtf8(value); 4606 authDomain_ = value; 4607 bitField0_ |= 0x00000008; 4608 onChanged(); 4609 return this; 4610 } 4611 4612 private java.lang.Object locationId_ = ""; 4613 /** 4614 * 4615 * 4616 * <pre> 4617 * Location from which this application runs. Application instances 4618 * run out of the data centers in the specified location, which is also where 4619 * all of the application's end user content is stored. 4620 * Defaults to `us-central`. 4621 * View the list of 4622 * [supported locations](https://cloud.google.com/appengine/docs/locations). 4623 * </pre> 4624 * 4625 * <code>string location_id = 7;</code> 4626 * 4627 * @return The locationId. 4628 */ getLocationId()4629 public java.lang.String getLocationId() { 4630 java.lang.Object ref = locationId_; 4631 if (!(ref instanceof java.lang.String)) { 4632 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4633 java.lang.String s = bs.toStringUtf8(); 4634 locationId_ = s; 4635 return s; 4636 } else { 4637 return (java.lang.String) ref; 4638 } 4639 } 4640 /** 4641 * 4642 * 4643 * <pre> 4644 * Location from which this application runs. Application instances 4645 * run out of the data centers in the specified location, which is also where 4646 * all of the application's end user content is stored. 4647 * Defaults to `us-central`. 4648 * View the list of 4649 * [supported locations](https://cloud.google.com/appengine/docs/locations). 4650 * </pre> 4651 * 4652 * <code>string location_id = 7;</code> 4653 * 4654 * @return The bytes for locationId. 4655 */ getLocationIdBytes()4656 public com.google.protobuf.ByteString getLocationIdBytes() { 4657 java.lang.Object ref = locationId_; 4658 if (ref instanceof String) { 4659 com.google.protobuf.ByteString b = 4660 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4661 locationId_ = b; 4662 return b; 4663 } else { 4664 return (com.google.protobuf.ByteString) ref; 4665 } 4666 } 4667 /** 4668 * 4669 * 4670 * <pre> 4671 * Location from which this application runs. Application instances 4672 * run out of the data centers in the specified location, which is also where 4673 * all of the application's end user content is stored. 4674 * Defaults to `us-central`. 4675 * View the list of 4676 * [supported locations](https://cloud.google.com/appengine/docs/locations). 4677 * </pre> 4678 * 4679 * <code>string location_id = 7;</code> 4680 * 4681 * @param value The locationId to set. 4682 * @return This builder for chaining. 4683 */ setLocationId(java.lang.String value)4684 public Builder setLocationId(java.lang.String value) { 4685 if (value == null) { 4686 throw new NullPointerException(); 4687 } 4688 locationId_ = value; 4689 bitField0_ |= 0x00000010; 4690 onChanged(); 4691 return this; 4692 } 4693 /** 4694 * 4695 * 4696 * <pre> 4697 * Location from which this application runs. Application instances 4698 * run out of the data centers in the specified location, which is also where 4699 * all of the application's end user content is stored. 4700 * Defaults to `us-central`. 4701 * View the list of 4702 * [supported locations](https://cloud.google.com/appengine/docs/locations). 4703 * </pre> 4704 * 4705 * <code>string location_id = 7;</code> 4706 * 4707 * @return This builder for chaining. 4708 */ clearLocationId()4709 public Builder clearLocationId() { 4710 locationId_ = getDefaultInstance().getLocationId(); 4711 bitField0_ = (bitField0_ & ~0x00000010); 4712 onChanged(); 4713 return this; 4714 } 4715 /** 4716 * 4717 * 4718 * <pre> 4719 * Location from which this application runs. Application instances 4720 * run out of the data centers in the specified location, which is also where 4721 * all of the application's end user content is stored. 4722 * Defaults to `us-central`. 4723 * View the list of 4724 * [supported locations](https://cloud.google.com/appengine/docs/locations). 4725 * </pre> 4726 * 4727 * <code>string location_id = 7;</code> 4728 * 4729 * @param value The bytes for locationId to set. 4730 * @return This builder for chaining. 4731 */ setLocationIdBytes(com.google.protobuf.ByteString value)4732 public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { 4733 if (value == null) { 4734 throw new NullPointerException(); 4735 } 4736 checkByteStringIsUtf8(value); 4737 locationId_ = value; 4738 bitField0_ |= 0x00000010; 4739 onChanged(); 4740 return this; 4741 } 4742 4743 private java.lang.Object codeBucket_ = ""; 4744 /** 4745 * 4746 * 4747 * <pre> 4748 * Google Cloud Storage bucket that can be used for storing files 4749 * associated with this application. This bucket is associated with the 4750 * application and can be used by the gcloud deployment commands. 4751 * @OutputOnly 4752 * </pre> 4753 * 4754 * <code>string code_bucket = 8;</code> 4755 * 4756 * @return The codeBucket. 4757 */ getCodeBucket()4758 public java.lang.String getCodeBucket() { 4759 java.lang.Object ref = codeBucket_; 4760 if (!(ref instanceof java.lang.String)) { 4761 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4762 java.lang.String s = bs.toStringUtf8(); 4763 codeBucket_ = s; 4764 return s; 4765 } else { 4766 return (java.lang.String) ref; 4767 } 4768 } 4769 /** 4770 * 4771 * 4772 * <pre> 4773 * Google Cloud Storage bucket that can be used for storing files 4774 * associated with this application. This bucket is associated with the 4775 * application and can be used by the gcloud deployment commands. 4776 * @OutputOnly 4777 * </pre> 4778 * 4779 * <code>string code_bucket = 8;</code> 4780 * 4781 * @return The bytes for codeBucket. 4782 */ getCodeBucketBytes()4783 public com.google.protobuf.ByteString getCodeBucketBytes() { 4784 java.lang.Object ref = codeBucket_; 4785 if (ref instanceof String) { 4786 com.google.protobuf.ByteString b = 4787 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4788 codeBucket_ = b; 4789 return b; 4790 } else { 4791 return (com.google.protobuf.ByteString) ref; 4792 } 4793 } 4794 /** 4795 * 4796 * 4797 * <pre> 4798 * Google Cloud Storage bucket that can be used for storing files 4799 * associated with this application. This bucket is associated with the 4800 * application and can be used by the gcloud deployment commands. 4801 * @OutputOnly 4802 * </pre> 4803 * 4804 * <code>string code_bucket = 8;</code> 4805 * 4806 * @param value The codeBucket to set. 4807 * @return This builder for chaining. 4808 */ setCodeBucket(java.lang.String value)4809 public Builder setCodeBucket(java.lang.String value) { 4810 if (value == null) { 4811 throw new NullPointerException(); 4812 } 4813 codeBucket_ = value; 4814 bitField0_ |= 0x00000020; 4815 onChanged(); 4816 return this; 4817 } 4818 /** 4819 * 4820 * 4821 * <pre> 4822 * Google Cloud Storage bucket that can be used for storing files 4823 * associated with this application. This bucket is associated with the 4824 * application and can be used by the gcloud deployment commands. 4825 * @OutputOnly 4826 * </pre> 4827 * 4828 * <code>string code_bucket = 8;</code> 4829 * 4830 * @return This builder for chaining. 4831 */ clearCodeBucket()4832 public Builder clearCodeBucket() { 4833 codeBucket_ = getDefaultInstance().getCodeBucket(); 4834 bitField0_ = (bitField0_ & ~0x00000020); 4835 onChanged(); 4836 return this; 4837 } 4838 /** 4839 * 4840 * 4841 * <pre> 4842 * Google Cloud Storage bucket that can be used for storing files 4843 * associated with this application. This bucket is associated with the 4844 * application and can be used by the gcloud deployment commands. 4845 * @OutputOnly 4846 * </pre> 4847 * 4848 * <code>string code_bucket = 8;</code> 4849 * 4850 * @param value The bytes for codeBucket to set. 4851 * @return This builder for chaining. 4852 */ setCodeBucketBytes(com.google.protobuf.ByteString value)4853 public Builder setCodeBucketBytes(com.google.protobuf.ByteString value) { 4854 if (value == null) { 4855 throw new NullPointerException(); 4856 } 4857 checkByteStringIsUtf8(value); 4858 codeBucket_ = value; 4859 bitField0_ |= 0x00000020; 4860 onChanged(); 4861 return this; 4862 } 4863 4864 private com.google.protobuf.Duration defaultCookieExpiration_; 4865 private com.google.protobuf.SingleFieldBuilderV3< 4866 com.google.protobuf.Duration, 4867 com.google.protobuf.Duration.Builder, 4868 com.google.protobuf.DurationOrBuilder> 4869 defaultCookieExpirationBuilder_; 4870 /** 4871 * 4872 * 4873 * <pre> 4874 * Cookie expiration policy for this application. 4875 * </pre> 4876 * 4877 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 4878 * 4879 * @return Whether the defaultCookieExpiration field is set. 4880 */ hasDefaultCookieExpiration()4881 public boolean hasDefaultCookieExpiration() { 4882 return ((bitField0_ & 0x00000040) != 0); 4883 } 4884 /** 4885 * 4886 * 4887 * <pre> 4888 * Cookie expiration policy for this application. 4889 * </pre> 4890 * 4891 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 4892 * 4893 * @return The defaultCookieExpiration. 4894 */ getDefaultCookieExpiration()4895 public com.google.protobuf.Duration getDefaultCookieExpiration() { 4896 if (defaultCookieExpirationBuilder_ == null) { 4897 return defaultCookieExpiration_ == null 4898 ? com.google.protobuf.Duration.getDefaultInstance() 4899 : defaultCookieExpiration_; 4900 } else { 4901 return defaultCookieExpirationBuilder_.getMessage(); 4902 } 4903 } 4904 /** 4905 * 4906 * 4907 * <pre> 4908 * Cookie expiration policy for this application. 4909 * </pre> 4910 * 4911 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 4912 */ setDefaultCookieExpiration(com.google.protobuf.Duration value)4913 public Builder setDefaultCookieExpiration(com.google.protobuf.Duration value) { 4914 if (defaultCookieExpirationBuilder_ == null) { 4915 if (value == null) { 4916 throw new NullPointerException(); 4917 } 4918 defaultCookieExpiration_ = value; 4919 } else { 4920 defaultCookieExpirationBuilder_.setMessage(value); 4921 } 4922 bitField0_ |= 0x00000040; 4923 onChanged(); 4924 return this; 4925 } 4926 /** 4927 * 4928 * 4929 * <pre> 4930 * Cookie expiration policy for this application. 4931 * </pre> 4932 * 4933 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 4934 */ setDefaultCookieExpiration( com.google.protobuf.Duration.Builder builderForValue)4935 public Builder setDefaultCookieExpiration( 4936 com.google.protobuf.Duration.Builder builderForValue) { 4937 if (defaultCookieExpirationBuilder_ == null) { 4938 defaultCookieExpiration_ = builderForValue.build(); 4939 } else { 4940 defaultCookieExpirationBuilder_.setMessage(builderForValue.build()); 4941 } 4942 bitField0_ |= 0x00000040; 4943 onChanged(); 4944 return this; 4945 } 4946 /** 4947 * 4948 * 4949 * <pre> 4950 * Cookie expiration policy for this application. 4951 * </pre> 4952 * 4953 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 4954 */ mergeDefaultCookieExpiration(com.google.protobuf.Duration value)4955 public Builder mergeDefaultCookieExpiration(com.google.protobuf.Duration value) { 4956 if (defaultCookieExpirationBuilder_ == null) { 4957 if (((bitField0_ & 0x00000040) != 0) 4958 && defaultCookieExpiration_ != null 4959 && defaultCookieExpiration_ != com.google.protobuf.Duration.getDefaultInstance()) { 4960 getDefaultCookieExpirationBuilder().mergeFrom(value); 4961 } else { 4962 defaultCookieExpiration_ = value; 4963 } 4964 } else { 4965 defaultCookieExpirationBuilder_.mergeFrom(value); 4966 } 4967 bitField0_ |= 0x00000040; 4968 onChanged(); 4969 return this; 4970 } 4971 /** 4972 * 4973 * 4974 * <pre> 4975 * Cookie expiration policy for this application. 4976 * </pre> 4977 * 4978 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 4979 */ clearDefaultCookieExpiration()4980 public Builder clearDefaultCookieExpiration() { 4981 bitField0_ = (bitField0_ & ~0x00000040); 4982 defaultCookieExpiration_ = null; 4983 if (defaultCookieExpirationBuilder_ != null) { 4984 defaultCookieExpirationBuilder_.dispose(); 4985 defaultCookieExpirationBuilder_ = null; 4986 } 4987 onChanged(); 4988 return this; 4989 } 4990 /** 4991 * 4992 * 4993 * <pre> 4994 * Cookie expiration policy for this application. 4995 * </pre> 4996 * 4997 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 4998 */ getDefaultCookieExpirationBuilder()4999 public com.google.protobuf.Duration.Builder getDefaultCookieExpirationBuilder() { 5000 bitField0_ |= 0x00000040; 5001 onChanged(); 5002 return getDefaultCookieExpirationFieldBuilder().getBuilder(); 5003 } 5004 /** 5005 * 5006 * 5007 * <pre> 5008 * Cookie expiration policy for this application. 5009 * </pre> 5010 * 5011 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 5012 */ getDefaultCookieExpirationOrBuilder()5013 public com.google.protobuf.DurationOrBuilder getDefaultCookieExpirationOrBuilder() { 5014 if (defaultCookieExpirationBuilder_ != null) { 5015 return defaultCookieExpirationBuilder_.getMessageOrBuilder(); 5016 } else { 5017 return defaultCookieExpiration_ == null 5018 ? com.google.protobuf.Duration.getDefaultInstance() 5019 : defaultCookieExpiration_; 5020 } 5021 } 5022 /** 5023 * 5024 * 5025 * <pre> 5026 * Cookie expiration policy for this application. 5027 * </pre> 5028 * 5029 * <code>.google.protobuf.Duration default_cookie_expiration = 9;</code> 5030 */ 5031 private com.google.protobuf.SingleFieldBuilderV3< 5032 com.google.protobuf.Duration, 5033 com.google.protobuf.Duration.Builder, 5034 com.google.protobuf.DurationOrBuilder> getDefaultCookieExpirationFieldBuilder()5035 getDefaultCookieExpirationFieldBuilder() { 5036 if (defaultCookieExpirationBuilder_ == null) { 5037 defaultCookieExpirationBuilder_ = 5038 new com.google.protobuf.SingleFieldBuilderV3< 5039 com.google.protobuf.Duration, 5040 com.google.protobuf.Duration.Builder, 5041 com.google.protobuf.DurationOrBuilder>( 5042 getDefaultCookieExpiration(), getParentForChildren(), isClean()); 5043 defaultCookieExpiration_ = null; 5044 } 5045 return defaultCookieExpirationBuilder_; 5046 } 5047 5048 private int servingStatus_ = 0; 5049 /** 5050 * 5051 * 5052 * <pre> 5053 * Serving status of this application. 5054 * </pre> 5055 * 5056 * <code>.google.appengine.v1.Application.ServingStatus serving_status = 10;</code> 5057 * 5058 * @return The enum numeric value on the wire for servingStatus. 5059 */ 5060 @java.lang.Override getServingStatusValue()5061 public int getServingStatusValue() { 5062 return servingStatus_; 5063 } 5064 /** 5065 * 5066 * 5067 * <pre> 5068 * Serving status of this application. 5069 * </pre> 5070 * 5071 * <code>.google.appengine.v1.Application.ServingStatus serving_status = 10;</code> 5072 * 5073 * @param value The enum numeric value on the wire for servingStatus to set. 5074 * @return This builder for chaining. 5075 */ setServingStatusValue(int value)5076 public Builder setServingStatusValue(int value) { 5077 servingStatus_ = value; 5078 bitField0_ |= 0x00000080; 5079 onChanged(); 5080 return this; 5081 } 5082 /** 5083 * 5084 * 5085 * <pre> 5086 * Serving status of this application. 5087 * </pre> 5088 * 5089 * <code>.google.appengine.v1.Application.ServingStatus serving_status = 10;</code> 5090 * 5091 * @return The servingStatus. 5092 */ 5093 @java.lang.Override getServingStatus()5094 public com.google.appengine.v1.Application.ServingStatus getServingStatus() { 5095 com.google.appengine.v1.Application.ServingStatus result = 5096 com.google.appengine.v1.Application.ServingStatus.forNumber(servingStatus_); 5097 return result == null 5098 ? com.google.appengine.v1.Application.ServingStatus.UNRECOGNIZED 5099 : result; 5100 } 5101 /** 5102 * 5103 * 5104 * <pre> 5105 * Serving status of this application. 5106 * </pre> 5107 * 5108 * <code>.google.appengine.v1.Application.ServingStatus serving_status = 10;</code> 5109 * 5110 * @param value The servingStatus to set. 5111 * @return This builder for chaining. 5112 */ setServingStatus(com.google.appengine.v1.Application.ServingStatus value)5113 public Builder setServingStatus(com.google.appengine.v1.Application.ServingStatus value) { 5114 if (value == null) { 5115 throw new NullPointerException(); 5116 } 5117 bitField0_ |= 0x00000080; 5118 servingStatus_ = value.getNumber(); 5119 onChanged(); 5120 return this; 5121 } 5122 /** 5123 * 5124 * 5125 * <pre> 5126 * Serving status of this application. 5127 * </pre> 5128 * 5129 * <code>.google.appengine.v1.Application.ServingStatus serving_status = 10;</code> 5130 * 5131 * @return This builder for chaining. 5132 */ clearServingStatus()5133 public Builder clearServingStatus() { 5134 bitField0_ = (bitField0_ & ~0x00000080); 5135 servingStatus_ = 0; 5136 onChanged(); 5137 return this; 5138 } 5139 5140 private java.lang.Object defaultHostname_ = ""; 5141 /** 5142 * 5143 * 5144 * <pre> 5145 * Hostname used to reach this application, as resolved by App Engine. 5146 * @OutputOnly 5147 * </pre> 5148 * 5149 * <code>string default_hostname = 11;</code> 5150 * 5151 * @return The defaultHostname. 5152 */ getDefaultHostname()5153 public java.lang.String getDefaultHostname() { 5154 java.lang.Object ref = defaultHostname_; 5155 if (!(ref instanceof java.lang.String)) { 5156 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5157 java.lang.String s = bs.toStringUtf8(); 5158 defaultHostname_ = s; 5159 return s; 5160 } else { 5161 return (java.lang.String) ref; 5162 } 5163 } 5164 /** 5165 * 5166 * 5167 * <pre> 5168 * Hostname used to reach this application, as resolved by App Engine. 5169 * @OutputOnly 5170 * </pre> 5171 * 5172 * <code>string default_hostname = 11;</code> 5173 * 5174 * @return The bytes for defaultHostname. 5175 */ getDefaultHostnameBytes()5176 public com.google.protobuf.ByteString getDefaultHostnameBytes() { 5177 java.lang.Object ref = defaultHostname_; 5178 if (ref instanceof String) { 5179 com.google.protobuf.ByteString b = 5180 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5181 defaultHostname_ = b; 5182 return b; 5183 } else { 5184 return (com.google.protobuf.ByteString) ref; 5185 } 5186 } 5187 /** 5188 * 5189 * 5190 * <pre> 5191 * Hostname used to reach this application, as resolved by App Engine. 5192 * @OutputOnly 5193 * </pre> 5194 * 5195 * <code>string default_hostname = 11;</code> 5196 * 5197 * @param value The defaultHostname to set. 5198 * @return This builder for chaining. 5199 */ setDefaultHostname(java.lang.String value)5200 public Builder setDefaultHostname(java.lang.String value) { 5201 if (value == null) { 5202 throw new NullPointerException(); 5203 } 5204 defaultHostname_ = value; 5205 bitField0_ |= 0x00000100; 5206 onChanged(); 5207 return this; 5208 } 5209 /** 5210 * 5211 * 5212 * <pre> 5213 * Hostname used to reach this application, as resolved by App Engine. 5214 * @OutputOnly 5215 * </pre> 5216 * 5217 * <code>string default_hostname = 11;</code> 5218 * 5219 * @return This builder for chaining. 5220 */ clearDefaultHostname()5221 public Builder clearDefaultHostname() { 5222 defaultHostname_ = getDefaultInstance().getDefaultHostname(); 5223 bitField0_ = (bitField0_ & ~0x00000100); 5224 onChanged(); 5225 return this; 5226 } 5227 /** 5228 * 5229 * 5230 * <pre> 5231 * Hostname used to reach this application, as resolved by App Engine. 5232 * @OutputOnly 5233 * </pre> 5234 * 5235 * <code>string default_hostname = 11;</code> 5236 * 5237 * @param value The bytes for defaultHostname to set. 5238 * @return This builder for chaining. 5239 */ setDefaultHostnameBytes(com.google.protobuf.ByteString value)5240 public Builder setDefaultHostnameBytes(com.google.protobuf.ByteString value) { 5241 if (value == null) { 5242 throw new NullPointerException(); 5243 } 5244 checkByteStringIsUtf8(value); 5245 defaultHostname_ = value; 5246 bitField0_ |= 0x00000100; 5247 onChanged(); 5248 return this; 5249 } 5250 5251 private java.lang.Object defaultBucket_ = ""; 5252 /** 5253 * 5254 * 5255 * <pre> 5256 * Google Cloud Storage bucket that can be used by this application to store 5257 * content. 5258 * @OutputOnly 5259 * </pre> 5260 * 5261 * <code>string default_bucket = 12;</code> 5262 * 5263 * @return The defaultBucket. 5264 */ getDefaultBucket()5265 public java.lang.String getDefaultBucket() { 5266 java.lang.Object ref = defaultBucket_; 5267 if (!(ref instanceof java.lang.String)) { 5268 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5269 java.lang.String s = bs.toStringUtf8(); 5270 defaultBucket_ = s; 5271 return s; 5272 } else { 5273 return (java.lang.String) ref; 5274 } 5275 } 5276 /** 5277 * 5278 * 5279 * <pre> 5280 * Google Cloud Storage bucket that can be used by this application to store 5281 * content. 5282 * @OutputOnly 5283 * </pre> 5284 * 5285 * <code>string default_bucket = 12;</code> 5286 * 5287 * @return The bytes for defaultBucket. 5288 */ getDefaultBucketBytes()5289 public com.google.protobuf.ByteString getDefaultBucketBytes() { 5290 java.lang.Object ref = defaultBucket_; 5291 if (ref instanceof String) { 5292 com.google.protobuf.ByteString b = 5293 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5294 defaultBucket_ = b; 5295 return b; 5296 } else { 5297 return (com.google.protobuf.ByteString) ref; 5298 } 5299 } 5300 /** 5301 * 5302 * 5303 * <pre> 5304 * Google Cloud Storage bucket that can be used by this application to store 5305 * content. 5306 * @OutputOnly 5307 * </pre> 5308 * 5309 * <code>string default_bucket = 12;</code> 5310 * 5311 * @param value The defaultBucket to set. 5312 * @return This builder for chaining. 5313 */ setDefaultBucket(java.lang.String value)5314 public Builder setDefaultBucket(java.lang.String value) { 5315 if (value == null) { 5316 throw new NullPointerException(); 5317 } 5318 defaultBucket_ = value; 5319 bitField0_ |= 0x00000200; 5320 onChanged(); 5321 return this; 5322 } 5323 /** 5324 * 5325 * 5326 * <pre> 5327 * Google Cloud Storage bucket that can be used by this application to store 5328 * content. 5329 * @OutputOnly 5330 * </pre> 5331 * 5332 * <code>string default_bucket = 12;</code> 5333 * 5334 * @return This builder for chaining. 5335 */ clearDefaultBucket()5336 public Builder clearDefaultBucket() { 5337 defaultBucket_ = getDefaultInstance().getDefaultBucket(); 5338 bitField0_ = (bitField0_ & ~0x00000200); 5339 onChanged(); 5340 return this; 5341 } 5342 /** 5343 * 5344 * 5345 * <pre> 5346 * Google Cloud Storage bucket that can be used by this application to store 5347 * content. 5348 * @OutputOnly 5349 * </pre> 5350 * 5351 * <code>string default_bucket = 12;</code> 5352 * 5353 * @param value The bytes for defaultBucket to set. 5354 * @return This builder for chaining. 5355 */ setDefaultBucketBytes(com.google.protobuf.ByteString value)5356 public Builder setDefaultBucketBytes(com.google.protobuf.ByteString value) { 5357 if (value == null) { 5358 throw new NullPointerException(); 5359 } 5360 checkByteStringIsUtf8(value); 5361 defaultBucket_ = value; 5362 bitField0_ |= 0x00000200; 5363 onChanged(); 5364 return this; 5365 } 5366 5367 private java.lang.Object serviceAccount_ = ""; 5368 /** 5369 * 5370 * 5371 * <pre> 5372 * The service account associated with the application. 5373 * This is the app-level default identity. If no identity provided during 5374 * create version, Admin API will fallback to this one. 5375 * </pre> 5376 * 5377 * <code>string service_account = 13;</code> 5378 * 5379 * @return The serviceAccount. 5380 */ getServiceAccount()5381 public java.lang.String getServiceAccount() { 5382 java.lang.Object ref = serviceAccount_; 5383 if (!(ref instanceof java.lang.String)) { 5384 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5385 java.lang.String s = bs.toStringUtf8(); 5386 serviceAccount_ = s; 5387 return s; 5388 } else { 5389 return (java.lang.String) ref; 5390 } 5391 } 5392 /** 5393 * 5394 * 5395 * <pre> 5396 * The service account associated with the application. 5397 * This is the app-level default identity. If no identity provided during 5398 * create version, Admin API will fallback to this one. 5399 * </pre> 5400 * 5401 * <code>string service_account = 13;</code> 5402 * 5403 * @return The bytes for serviceAccount. 5404 */ getServiceAccountBytes()5405 public com.google.protobuf.ByteString getServiceAccountBytes() { 5406 java.lang.Object ref = serviceAccount_; 5407 if (ref instanceof String) { 5408 com.google.protobuf.ByteString b = 5409 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5410 serviceAccount_ = b; 5411 return b; 5412 } else { 5413 return (com.google.protobuf.ByteString) ref; 5414 } 5415 } 5416 /** 5417 * 5418 * 5419 * <pre> 5420 * The service account associated with the application. 5421 * This is the app-level default identity. If no identity provided during 5422 * create version, Admin API will fallback to this one. 5423 * </pre> 5424 * 5425 * <code>string service_account = 13;</code> 5426 * 5427 * @param value The serviceAccount to set. 5428 * @return This builder for chaining. 5429 */ setServiceAccount(java.lang.String value)5430 public Builder setServiceAccount(java.lang.String value) { 5431 if (value == null) { 5432 throw new NullPointerException(); 5433 } 5434 serviceAccount_ = value; 5435 bitField0_ |= 0x00000400; 5436 onChanged(); 5437 return this; 5438 } 5439 /** 5440 * 5441 * 5442 * <pre> 5443 * The service account associated with the application. 5444 * This is the app-level default identity. If no identity provided during 5445 * create version, Admin API will fallback to this one. 5446 * </pre> 5447 * 5448 * <code>string service_account = 13;</code> 5449 * 5450 * @return This builder for chaining. 5451 */ clearServiceAccount()5452 public Builder clearServiceAccount() { 5453 serviceAccount_ = getDefaultInstance().getServiceAccount(); 5454 bitField0_ = (bitField0_ & ~0x00000400); 5455 onChanged(); 5456 return this; 5457 } 5458 /** 5459 * 5460 * 5461 * <pre> 5462 * The service account associated with the application. 5463 * This is the app-level default identity. If no identity provided during 5464 * create version, Admin API will fallback to this one. 5465 * </pre> 5466 * 5467 * <code>string service_account = 13;</code> 5468 * 5469 * @param value The bytes for serviceAccount to set. 5470 * @return This builder for chaining. 5471 */ setServiceAccountBytes(com.google.protobuf.ByteString value)5472 public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { 5473 if (value == null) { 5474 throw new NullPointerException(); 5475 } 5476 checkByteStringIsUtf8(value); 5477 serviceAccount_ = value; 5478 bitField0_ |= 0x00000400; 5479 onChanged(); 5480 return this; 5481 } 5482 5483 private com.google.appengine.v1.Application.IdentityAwareProxy iap_; 5484 private com.google.protobuf.SingleFieldBuilderV3< 5485 com.google.appengine.v1.Application.IdentityAwareProxy, 5486 com.google.appengine.v1.Application.IdentityAwareProxy.Builder, 5487 com.google.appengine.v1.Application.IdentityAwareProxyOrBuilder> 5488 iapBuilder_; 5489 /** 5490 * <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> 5491 * 5492 * @return Whether the iap field is set. 5493 */ hasIap()5494 public boolean hasIap() { 5495 return ((bitField0_ & 0x00000800) != 0); 5496 } 5497 /** 5498 * <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> 5499 * 5500 * @return The iap. 5501 */ getIap()5502 public com.google.appengine.v1.Application.IdentityAwareProxy getIap() { 5503 if (iapBuilder_ == null) { 5504 return iap_ == null 5505 ? com.google.appengine.v1.Application.IdentityAwareProxy.getDefaultInstance() 5506 : iap_; 5507 } else { 5508 return iapBuilder_.getMessage(); 5509 } 5510 } 5511 /** <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> */ setIap(com.google.appengine.v1.Application.IdentityAwareProxy value)5512 public Builder setIap(com.google.appengine.v1.Application.IdentityAwareProxy value) { 5513 if (iapBuilder_ == null) { 5514 if (value == null) { 5515 throw new NullPointerException(); 5516 } 5517 iap_ = value; 5518 } else { 5519 iapBuilder_.setMessage(value); 5520 } 5521 bitField0_ |= 0x00000800; 5522 onChanged(); 5523 return this; 5524 } 5525 /** <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> */ setIap( com.google.appengine.v1.Application.IdentityAwareProxy.Builder builderForValue)5526 public Builder setIap( 5527 com.google.appengine.v1.Application.IdentityAwareProxy.Builder builderForValue) { 5528 if (iapBuilder_ == null) { 5529 iap_ = builderForValue.build(); 5530 } else { 5531 iapBuilder_.setMessage(builderForValue.build()); 5532 } 5533 bitField0_ |= 0x00000800; 5534 onChanged(); 5535 return this; 5536 } 5537 /** <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> */ mergeIap(com.google.appengine.v1.Application.IdentityAwareProxy value)5538 public Builder mergeIap(com.google.appengine.v1.Application.IdentityAwareProxy value) { 5539 if (iapBuilder_ == null) { 5540 if (((bitField0_ & 0x00000800) != 0) 5541 && iap_ != null 5542 && iap_ 5543 != com.google.appengine.v1.Application.IdentityAwareProxy.getDefaultInstance()) { 5544 getIapBuilder().mergeFrom(value); 5545 } else { 5546 iap_ = value; 5547 } 5548 } else { 5549 iapBuilder_.mergeFrom(value); 5550 } 5551 bitField0_ |= 0x00000800; 5552 onChanged(); 5553 return this; 5554 } 5555 /** <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> */ clearIap()5556 public Builder clearIap() { 5557 bitField0_ = (bitField0_ & ~0x00000800); 5558 iap_ = null; 5559 if (iapBuilder_ != null) { 5560 iapBuilder_.dispose(); 5561 iapBuilder_ = null; 5562 } 5563 onChanged(); 5564 return this; 5565 } 5566 /** <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> */ getIapBuilder()5567 public com.google.appengine.v1.Application.IdentityAwareProxy.Builder getIapBuilder() { 5568 bitField0_ |= 0x00000800; 5569 onChanged(); 5570 return getIapFieldBuilder().getBuilder(); 5571 } 5572 /** <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> */ getIapOrBuilder()5573 public com.google.appengine.v1.Application.IdentityAwareProxyOrBuilder getIapOrBuilder() { 5574 if (iapBuilder_ != null) { 5575 return iapBuilder_.getMessageOrBuilder(); 5576 } else { 5577 return iap_ == null 5578 ? com.google.appengine.v1.Application.IdentityAwareProxy.getDefaultInstance() 5579 : iap_; 5580 } 5581 } 5582 /** <code>.google.appengine.v1.Application.IdentityAwareProxy iap = 14;</code> */ 5583 private com.google.protobuf.SingleFieldBuilderV3< 5584 com.google.appengine.v1.Application.IdentityAwareProxy, 5585 com.google.appengine.v1.Application.IdentityAwareProxy.Builder, 5586 com.google.appengine.v1.Application.IdentityAwareProxyOrBuilder> getIapFieldBuilder()5587 getIapFieldBuilder() { 5588 if (iapBuilder_ == null) { 5589 iapBuilder_ = 5590 new com.google.protobuf.SingleFieldBuilderV3< 5591 com.google.appengine.v1.Application.IdentityAwareProxy, 5592 com.google.appengine.v1.Application.IdentityAwareProxy.Builder, 5593 com.google.appengine.v1.Application.IdentityAwareProxyOrBuilder>( 5594 getIap(), getParentForChildren(), isClean()); 5595 iap_ = null; 5596 } 5597 return iapBuilder_; 5598 } 5599 5600 private java.lang.Object gcrDomain_ = ""; 5601 /** 5602 * 5603 * 5604 * <pre> 5605 * The Google Container Registry domain used for storing managed build docker 5606 * images for this application. 5607 * </pre> 5608 * 5609 * <code>string gcr_domain = 16;</code> 5610 * 5611 * @return The gcrDomain. 5612 */ getGcrDomain()5613 public java.lang.String getGcrDomain() { 5614 java.lang.Object ref = gcrDomain_; 5615 if (!(ref instanceof java.lang.String)) { 5616 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5617 java.lang.String s = bs.toStringUtf8(); 5618 gcrDomain_ = s; 5619 return s; 5620 } else { 5621 return (java.lang.String) ref; 5622 } 5623 } 5624 /** 5625 * 5626 * 5627 * <pre> 5628 * The Google Container Registry domain used for storing managed build docker 5629 * images for this application. 5630 * </pre> 5631 * 5632 * <code>string gcr_domain = 16;</code> 5633 * 5634 * @return The bytes for gcrDomain. 5635 */ getGcrDomainBytes()5636 public com.google.protobuf.ByteString getGcrDomainBytes() { 5637 java.lang.Object ref = gcrDomain_; 5638 if (ref instanceof String) { 5639 com.google.protobuf.ByteString b = 5640 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5641 gcrDomain_ = b; 5642 return b; 5643 } else { 5644 return (com.google.protobuf.ByteString) ref; 5645 } 5646 } 5647 /** 5648 * 5649 * 5650 * <pre> 5651 * The Google Container Registry domain used for storing managed build docker 5652 * images for this application. 5653 * </pre> 5654 * 5655 * <code>string gcr_domain = 16;</code> 5656 * 5657 * @param value The gcrDomain to set. 5658 * @return This builder for chaining. 5659 */ setGcrDomain(java.lang.String value)5660 public Builder setGcrDomain(java.lang.String value) { 5661 if (value == null) { 5662 throw new NullPointerException(); 5663 } 5664 gcrDomain_ = value; 5665 bitField0_ |= 0x00001000; 5666 onChanged(); 5667 return this; 5668 } 5669 /** 5670 * 5671 * 5672 * <pre> 5673 * The Google Container Registry domain used for storing managed build docker 5674 * images for this application. 5675 * </pre> 5676 * 5677 * <code>string gcr_domain = 16;</code> 5678 * 5679 * @return This builder for chaining. 5680 */ clearGcrDomain()5681 public Builder clearGcrDomain() { 5682 gcrDomain_ = getDefaultInstance().getGcrDomain(); 5683 bitField0_ = (bitField0_ & ~0x00001000); 5684 onChanged(); 5685 return this; 5686 } 5687 /** 5688 * 5689 * 5690 * <pre> 5691 * The Google Container Registry domain used for storing managed build docker 5692 * images for this application. 5693 * </pre> 5694 * 5695 * <code>string gcr_domain = 16;</code> 5696 * 5697 * @param value The bytes for gcrDomain to set. 5698 * @return This builder for chaining. 5699 */ setGcrDomainBytes(com.google.protobuf.ByteString value)5700 public Builder setGcrDomainBytes(com.google.protobuf.ByteString value) { 5701 if (value == null) { 5702 throw new NullPointerException(); 5703 } 5704 checkByteStringIsUtf8(value); 5705 gcrDomain_ = value; 5706 bitField0_ |= 0x00001000; 5707 onChanged(); 5708 return this; 5709 } 5710 5711 private int databaseType_ = 0; 5712 /** 5713 * 5714 * 5715 * <pre> 5716 * The type of the Cloud Firestore or Cloud Datastore database associated with 5717 * this application. 5718 * </pre> 5719 * 5720 * <code>.google.appengine.v1.Application.DatabaseType database_type = 17;</code> 5721 * 5722 * @return The enum numeric value on the wire for databaseType. 5723 */ 5724 @java.lang.Override getDatabaseTypeValue()5725 public int getDatabaseTypeValue() { 5726 return databaseType_; 5727 } 5728 /** 5729 * 5730 * 5731 * <pre> 5732 * The type of the Cloud Firestore or Cloud Datastore database associated with 5733 * this application. 5734 * </pre> 5735 * 5736 * <code>.google.appengine.v1.Application.DatabaseType database_type = 17;</code> 5737 * 5738 * @param value The enum numeric value on the wire for databaseType to set. 5739 * @return This builder for chaining. 5740 */ setDatabaseTypeValue(int value)5741 public Builder setDatabaseTypeValue(int value) { 5742 databaseType_ = value; 5743 bitField0_ |= 0x00002000; 5744 onChanged(); 5745 return this; 5746 } 5747 /** 5748 * 5749 * 5750 * <pre> 5751 * The type of the Cloud Firestore or Cloud Datastore database associated with 5752 * this application. 5753 * </pre> 5754 * 5755 * <code>.google.appengine.v1.Application.DatabaseType database_type = 17;</code> 5756 * 5757 * @return The databaseType. 5758 */ 5759 @java.lang.Override getDatabaseType()5760 public com.google.appengine.v1.Application.DatabaseType getDatabaseType() { 5761 com.google.appengine.v1.Application.DatabaseType result = 5762 com.google.appengine.v1.Application.DatabaseType.forNumber(databaseType_); 5763 return result == null 5764 ? com.google.appengine.v1.Application.DatabaseType.UNRECOGNIZED 5765 : result; 5766 } 5767 /** 5768 * 5769 * 5770 * <pre> 5771 * The type of the Cloud Firestore or Cloud Datastore database associated with 5772 * this application. 5773 * </pre> 5774 * 5775 * <code>.google.appengine.v1.Application.DatabaseType database_type = 17;</code> 5776 * 5777 * @param value The databaseType to set. 5778 * @return This builder for chaining. 5779 */ setDatabaseType(com.google.appengine.v1.Application.DatabaseType value)5780 public Builder setDatabaseType(com.google.appengine.v1.Application.DatabaseType value) { 5781 if (value == null) { 5782 throw new NullPointerException(); 5783 } 5784 bitField0_ |= 0x00002000; 5785 databaseType_ = value.getNumber(); 5786 onChanged(); 5787 return this; 5788 } 5789 /** 5790 * 5791 * 5792 * <pre> 5793 * The type of the Cloud Firestore or Cloud Datastore database associated with 5794 * this application. 5795 * </pre> 5796 * 5797 * <code>.google.appengine.v1.Application.DatabaseType database_type = 17;</code> 5798 * 5799 * @return This builder for chaining. 5800 */ clearDatabaseType()5801 public Builder clearDatabaseType() { 5802 bitField0_ = (bitField0_ & ~0x00002000); 5803 databaseType_ = 0; 5804 onChanged(); 5805 return this; 5806 } 5807 5808 private com.google.appengine.v1.Application.FeatureSettings featureSettings_; 5809 private com.google.protobuf.SingleFieldBuilderV3< 5810 com.google.appengine.v1.Application.FeatureSettings, 5811 com.google.appengine.v1.Application.FeatureSettings.Builder, 5812 com.google.appengine.v1.Application.FeatureSettingsOrBuilder> 5813 featureSettingsBuilder_; 5814 /** 5815 * 5816 * 5817 * <pre> 5818 * The feature specific settings to be used in the application. 5819 * </pre> 5820 * 5821 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5822 * 5823 * @return Whether the featureSettings field is set. 5824 */ hasFeatureSettings()5825 public boolean hasFeatureSettings() { 5826 return ((bitField0_ & 0x00004000) != 0); 5827 } 5828 /** 5829 * 5830 * 5831 * <pre> 5832 * The feature specific settings to be used in the application. 5833 * </pre> 5834 * 5835 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5836 * 5837 * @return The featureSettings. 5838 */ getFeatureSettings()5839 public com.google.appengine.v1.Application.FeatureSettings getFeatureSettings() { 5840 if (featureSettingsBuilder_ == null) { 5841 return featureSettings_ == null 5842 ? com.google.appengine.v1.Application.FeatureSettings.getDefaultInstance() 5843 : featureSettings_; 5844 } else { 5845 return featureSettingsBuilder_.getMessage(); 5846 } 5847 } 5848 /** 5849 * 5850 * 5851 * <pre> 5852 * The feature specific settings to be used in the application. 5853 * </pre> 5854 * 5855 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5856 */ setFeatureSettings(com.google.appengine.v1.Application.FeatureSettings value)5857 public Builder setFeatureSettings(com.google.appengine.v1.Application.FeatureSettings value) { 5858 if (featureSettingsBuilder_ == null) { 5859 if (value == null) { 5860 throw new NullPointerException(); 5861 } 5862 featureSettings_ = value; 5863 } else { 5864 featureSettingsBuilder_.setMessage(value); 5865 } 5866 bitField0_ |= 0x00004000; 5867 onChanged(); 5868 return this; 5869 } 5870 /** 5871 * 5872 * 5873 * <pre> 5874 * The feature specific settings to be used in the application. 5875 * </pre> 5876 * 5877 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5878 */ setFeatureSettings( com.google.appengine.v1.Application.FeatureSettings.Builder builderForValue)5879 public Builder setFeatureSettings( 5880 com.google.appengine.v1.Application.FeatureSettings.Builder builderForValue) { 5881 if (featureSettingsBuilder_ == null) { 5882 featureSettings_ = builderForValue.build(); 5883 } else { 5884 featureSettingsBuilder_.setMessage(builderForValue.build()); 5885 } 5886 bitField0_ |= 0x00004000; 5887 onChanged(); 5888 return this; 5889 } 5890 /** 5891 * 5892 * 5893 * <pre> 5894 * The feature specific settings to be used in the application. 5895 * </pre> 5896 * 5897 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5898 */ mergeFeatureSettings(com.google.appengine.v1.Application.FeatureSettings value)5899 public Builder mergeFeatureSettings(com.google.appengine.v1.Application.FeatureSettings value) { 5900 if (featureSettingsBuilder_ == null) { 5901 if (((bitField0_ & 0x00004000) != 0) 5902 && featureSettings_ != null 5903 && featureSettings_ 5904 != com.google.appengine.v1.Application.FeatureSettings.getDefaultInstance()) { 5905 getFeatureSettingsBuilder().mergeFrom(value); 5906 } else { 5907 featureSettings_ = value; 5908 } 5909 } else { 5910 featureSettingsBuilder_.mergeFrom(value); 5911 } 5912 bitField0_ |= 0x00004000; 5913 onChanged(); 5914 return this; 5915 } 5916 /** 5917 * 5918 * 5919 * <pre> 5920 * The feature specific settings to be used in the application. 5921 * </pre> 5922 * 5923 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5924 */ clearFeatureSettings()5925 public Builder clearFeatureSettings() { 5926 bitField0_ = (bitField0_ & ~0x00004000); 5927 featureSettings_ = null; 5928 if (featureSettingsBuilder_ != null) { 5929 featureSettingsBuilder_.dispose(); 5930 featureSettingsBuilder_ = null; 5931 } 5932 onChanged(); 5933 return this; 5934 } 5935 /** 5936 * 5937 * 5938 * <pre> 5939 * The feature specific settings to be used in the application. 5940 * </pre> 5941 * 5942 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5943 */ getFeatureSettingsBuilder()5944 public com.google.appengine.v1.Application.FeatureSettings.Builder getFeatureSettingsBuilder() { 5945 bitField0_ |= 0x00004000; 5946 onChanged(); 5947 return getFeatureSettingsFieldBuilder().getBuilder(); 5948 } 5949 /** 5950 * 5951 * 5952 * <pre> 5953 * The feature specific settings to be used in the application. 5954 * </pre> 5955 * 5956 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5957 */ 5958 public com.google.appengine.v1.Application.FeatureSettingsOrBuilder getFeatureSettingsOrBuilder()5959 getFeatureSettingsOrBuilder() { 5960 if (featureSettingsBuilder_ != null) { 5961 return featureSettingsBuilder_.getMessageOrBuilder(); 5962 } else { 5963 return featureSettings_ == null 5964 ? com.google.appengine.v1.Application.FeatureSettings.getDefaultInstance() 5965 : featureSettings_; 5966 } 5967 } 5968 /** 5969 * 5970 * 5971 * <pre> 5972 * The feature specific settings to be used in the application. 5973 * </pre> 5974 * 5975 * <code>.google.appengine.v1.Application.FeatureSettings feature_settings = 18;</code> 5976 */ 5977 private com.google.protobuf.SingleFieldBuilderV3< 5978 com.google.appengine.v1.Application.FeatureSettings, 5979 com.google.appengine.v1.Application.FeatureSettings.Builder, 5980 com.google.appengine.v1.Application.FeatureSettingsOrBuilder> getFeatureSettingsFieldBuilder()5981 getFeatureSettingsFieldBuilder() { 5982 if (featureSettingsBuilder_ == null) { 5983 featureSettingsBuilder_ = 5984 new com.google.protobuf.SingleFieldBuilderV3< 5985 com.google.appengine.v1.Application.FeatureSettings, 5986 com.google.appengine.v1.Application.FeatureSettings.Builder, 5987 com.google.appengine.v1.Application.FeatureSettingsOrBuilder>( 5988 getFeatureSettings(), getParentForChildren(), isClean()); 5989 featureSettings_ = null; 5990 } 5991 return featureSettingsBuilder_; 5992 } 5993 5994 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)5995 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 5996 return super.setUnknownFields(unknownFields); 5997 } 5998 5999 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)6000 public final Builder mergeUnknownFields( 6001 final com.google.protobuf.UnknownFieldSet unknownFields) { 6002 return super.mergeUnknownFields(unknownFields); 6003 } 6004 6005 // @@protoc_insertion_point(builder_scope:google.appengine.v1.Application) 6006 } 6007 6008 // @@protoc_insertion_point(class_scope:google.appengine.v1.Application) 6009 private static final com.google.appengine.v1.Application DEFAULT_INSTANCE; 6010 6011 static { 6012 DEFAULT_INSTANCE = new com.google.appengine.v1.Application(); 6013 } 6014 getDefaultInstance()6015 public static com.google.appengine.v1.Application getDefaultInstance() { 6016 return DEFAULT_INSTANCE; 6017 } 6018 6019 private static final com.google.protobuf.Parser<Application> PARSER = 6020 new com.google.protobuf.AbstractParser<Application>() { 6021 @java.lang.Override 6022 public Application parsePartialFrom( 6023 com.google.protobuf.CodedInputStream input, 6024 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6025 throws com.google.protobuf.InvalidProtocolBufferException { 6026 Builder builder = newBuilder(); 6027 try { 6028 builder.mergeFrom(input, extensionRegistry); 6029 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6030 throw e.setUnfinishedMessage(builder.buildPartial()); 6031 } catch (com.google.protobuf.UninitializedMessageException e) { 6032 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 6033 } catch (java.io.IOException e) { 6034 throw new com.google.protobuf.InvalidProtocolBufferException(e) 6035 .setUnfinishedMessage(builder.buildPartial()); 6036 } 6037 return builder.buildPartial(); 6038 } 6039 }; 6040 parser()6041 public static com.google.protobuf.Parser<Application> parser() { 6042 return PARSER; 6043 } 6044 6045 @java.lang.Override getParserForType()6046 public com.google.protobuf.Parser<Application> getParserForType() { 6047 return PARSER; 6048 } 6049 6050 @java.lang.Override getDefaultInstanceForType()6051 public com.google.appengine.v1.Application getDefaultInstanceForType() { 6052 return DEFAULT_INSTANCE; 6053 } 6054 } 6055