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/instance.proto 18 19 package com.google.appengine.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * An Instance resource is the computing unit that App Engine uses to 26 * automatically scale an application. 27 * </pre> 28 * 29 * Protobuf type {@code google.appengine.v1.Instance} 30 */ 31 public final class Instance extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.appengine.v1.Instance) 34 InstanceOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use Instance.newBuilder() to construct. Instance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private Instance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 Instance()41 private Instance() { 42 name_ = ""; 43 id_ = ""; 44 appEngineRelease_ = ""; 45 availability_ = 0; 46 vmName_ = ""; 47 vmZoneName_ = ""; 48 vmId_ = ""; 49 vmStatus_ = ""; 50 vmIp_ = ""; 51 vmLiveness_ = 0; 52 } 53 54 @java.lang.Override 55 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)56 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 57 return new Instance(); 58 } 59 60 @java.lang.Override getUnknownFields()61 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 62 return this.unknownFields; 63 } 64 getDescriptor()65 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 66 return com.google.appengine.v1.InstanceProto 67 .internal_static_google_appengine_v1_Instance_descriptor; 68 } 69 70 @java.lang.Override 71 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()72 internalGetFieldAccessorTable() { 73 return com.google.appengine.v1.InstanceProto 74 .internal_static_google_appengine_v1_Instance_fieldAccessorTable 75 .ensureFieldAccessorsInitialized( 76 com.google.appengine.v1.Instance.class, com.google.appengine.v1.Instance.Builder.class); 77 } 78 79 /** 80 * 81 * 82 * <pre> 83 * Availability of the instance. 84 * </pre> 85 * 86 * Protobuf enum {@code google.appengine.v1.Instance.Availability} 87 */ 88 public enum Availability implements com.google.protobuf.ProtocolMessageEnum { 89 /** <code>UNSPECIFIED = 0;</code> */ 90 UNSPECIFIED(0), 91 /** <code>RESIDENT = 1;</code> */ 92 RESIDENT(1), 93 /** <code>DYNAMIC = 2;</code> */ 94 DYNAMIC(2), 95 UNRECOGNIZED(-1), 96 ; 97 98 /** <code>UNSPECIFIED = 0;</code> */ 99 public static final int UNSPECIFIED_VALUE = 0; 100 /** <code>RESIDENT = 1;</code> */ 101 public static final int RESIDENT_VALUE = 1; 102 /** <code>DYNAMIC = 2;</code> */ 103 public static final int DYNAMIC_VALUE = 2; 104 getNumber()105 public final int getNumber() { 106 if (this == UNRECOGNIZED) { 107 throw new java.lang.IllegalArgumentException( 108 "Can't get the number of an unknown enum value."); 109 } 110 return value; 111 } 112 113 /** 114 * @param value The numeric wire value of the corresponding enum entry. 115 * @return The enum associated with the given numeric wire value. 116 * @deprecated Use {@link #forNumber(int)} instead. 117 */ 118 @java.lang.Deprecated valueOf(int value)119 public static Availability valueOf(int value) { 120 return forNumber(value); 121 } 122 123 /** 124 * @param value The numeric wire value of the corresponding enum entry. 125 * @return The enum associated with the given numeric wire value. 126 */ forNumber(int value)127 public static Availability forNumber(int value) { 128 switch (value) { 129 case 0: 130 return UNSPECIFIED; 131 case 1: 132 return RESIDENT; 133 case 2: 134 return DYNAMIC; 135 default: 136 return null; 137 } 138 } 139 internalGetValueMap()140 public static com.google.protobuf.Internal.EnumLiteMap<Availability> internalGetValueMap() { 141 return internalValueMap; 142 } 143 144 private static final com.google.protobuf.Internal.EnumLiteMap<Availability> internalValueMap = 145 new com.google.protobuf.Internal.EnumLiteMap<Availability>() { 146 public Availability findValueByNumber(int number) { 147 return Availability.forNumber(number); 148 } 149 }; 150 getValueDescriptor()151 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 152 if (this == UNRECOGNIZED) { 153 throw new java.lang.IllegalStateException( 154 "Can't get the descriptor of an unrecognized enum value."); 155 } 156 return getDescriptor().getValues().get(ordinal()); 157 } 158 getDescriptorForType()159 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 160 return getDescriptor(); 161 } 162 getDescriptor()163 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 164 return com.google.appengine.v1.Instance.getDescriptor().getEnumTypes().get(0); 165 } 166 167 private static final Availability[] VALUES = values(); 168 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)169 public static Availability valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 170 if (desc.getType() != getDescriptor()) { 171 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 172 } 173 if (desc.getIndex() == -1) { 174 return UNRECOGNIZED; 175 } 176 return VALUES[desc.getIndex()]; 177 } 178 179 private final int value; 180 Availability(int value)181 private Availability(int value) { 182 this.value = value; 183 } 184 185 // @@protoc_insertion_point(enum_scope:google.appengine.v1.Instance.Availability) 186 } 187 188 public interface LivenessOrBuilder 189 extends 190 // @@protoc_insertion_point(interface_extends:google.appengine.v1.Instance.Liveness) 191 com.google.protobuf.MessageOrBuilder {} 192 /** 193 * 194 * 195 * <pre> 196 * Wrapper for LivenessState enum. 197 * </pre> 198 * 199 * Protobuf type {@code google.appengine.v1.Instance.Liveness} 200 */ 201 public static final class Liveness extends com.google.protobuf.GeneratedMessageV3 202 implements 203 // @@protoc_insertion_point(message_implements:google.appengine.v1.Instance.Liveness) 204 LivenessOrBuilder { 205 private static final long serialVersionUID = 0L; 206 // Use Liveness.newBuilder() to construct. Liveness(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)207 private Liveness(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 208 super(builder); 209 } 210 Liveness()211 private Liveness() {} 212 213 @java.lang.Override 214 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)215 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 216 return new Liveness(); 217 } 218 219 @java.lang.Override getUnknownFields()220 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 221 return this.unknownFields; 222 } 223 getDescriptor()224 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 225 return com.google.appengine.v1.InstanceProto 226 .internal_static_google_appengine_v1_Instance_Liveness_descriptor; 227 } 228 229 @java.lang.Override 230 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()231 internalGetFieldAccessorTable() { 232 return com.google.appengine.v1.InstanceProto 233 .internal_static_google_appengine_v1_Instance_Liveness_fieldAccessorTable 234 .ensureFieldAccessorsInitialized( 235 com.google.appengine.v1.Instance.Liveness.class, 236 com.google.appengine.v1.Instance.Liveness.Builder.class); 237 } 238 239 /** 240 * 241 * 242 * <pre> 243 * Liveness health check status for Flex instances. 244 * </pre> 245 * 246 * Protobuf enum {@code google.appengine.v1.Instance.Liveness.LivenessState} 247 */ 248 public enum LivenessState implements com.google.protobuf.ProtocolMessageEnum { 249 /** 250 * 251 * 252 * <pre> 253 * There is no liveness health check for the instance. Only applicable for 254 * instances in App Engine standard environment. 255 * </pre> 256 * 257 * <code>LIVENESS_STATE_UNSPECIFIED = 0;</code> 258 */ 259 LIVENESS_STATE_UNSPECIFIED(0), 260 /** 261 * 262 * 263 * <pre> 264 * The health checking system is aware of the instance but its health is 265 * not known at the moment. 266 * </pre> 267 * 268 * <code>UNKNOWN = 1;</code> 269 */ 270 UNKNOWN(1), 271 /** 272 * 273 * 274 * <pre> 275 * The instance is reachable i.e. a connection to the application health 276 * checking endpoint can be established, and conforms to the requirements 277 * defined by the health check. 278 * </pre> 279 * 280 * <code>HEALTHY = 2;</code> 281 */ 282 HEALTHY(2), 283 /** 284 * 285 * 286 * <pre> 287 * The instance is reachable, but does not conform to the requirements 288 * defined by the health check. 289 * </pre> 290 * 291 * <code>UNHEALTHY = 3;</code> 292 */ 293 UNHEALTHY(3), 294 /** 295 * 296 * 297 * <pre> 298 * The instance is being drained. The existing connections to the instance 299 * have time to complete, but the new ones are being refused. 300 * </pre> 301 * 302 * <code>DRAINING = 4;</code> 303 */ 304 DRAINING(4), 305 /** 306 * 307 * 308 * <pre> 309 * The instance is unreachable i.e. a connection to the application health 310 * checking endpoint cannot be established, or the server does not respond 311 * within the specified timeout. 312 * </pre> 313 * 314 * <code>TIMEOUT = 5;</code> 315 */ 316 TIMEOUT(5), 317 UNRECOGNIZED(-1), 318 ; 319 320 /** 321 * 322 * 323 * <pre> 324 * There is no liveness health check for the instance. Only applicable for 325 * instances in App Engine standard environment. 326 * </pre> 327 * 328 * <code>LIVENESS_STATE_UNSPECIFIED = 0;</code> 329 */ 330 public static final int LIVENESS_STATE_UNSPECIFIED_VALUE = 0; 331 /** 332 * 333 * 334 * <pre> 335 * The health checking system is aware of the instance but its health is 336 * not known at the moment. 337 * </pre> 338 * 339 * <code>UNKNOWN = 1;</code> 340 */ 341 public static final int UNKNOWN_VALUE = 1; 342 /** 343 * 344 * 345 * <pre> 346 * The instance is reachable i.e. a connection to the application health 347 * checking endpoint can be established, and conforms to the requirements 348 * defined by the health check. 349 * </pre> 350 * 351 * <code>HEALTHY = 2;</code> 352 */ 353 public static final int HEALTHY_VALUE = 2; 354 /** 355 * 356 * 357 * <pre> 358 * The instance is reachable, but does not conform to the requirements 359 * defined by the health check. 360 * </pre> 361 * 362 * <code>UNHEALTHY = 3;</code> 363 */ 364 public static final int UNHEALTHY_VALUE = 3; 365 /** 366 * 367 * 368 * <pre> 369 * The instance is being drained. The existing connections to the instance 370 * have time to complete, but the new ones are being refused. 371 * </pre> 372 * 373 * <code>DRAINING = 4;</code> 374 */ 375 public static final int DRAINING_VALUE = 4; 376 /** 377 * 378 * 379 * <pre> 380 * The instance is unreachable i.e. a connection to the application health 381 * checking endpoint cannot be established, or the server does not respond 382 * within the specified timeout. 383 * </pre> 384 * 385 * <code>TIMEOUT = 5;</code> 386 */ 387 public static final int TIMEOUT_VALUE = 5; 388 getNumber()389 public final int getNumber() { 390 if (this == UNRECOGNIZED) { 391 throw new java.lang.IllegalArgumentException( 392 "Can't get the number of an unknown enum value."); 393 } 394 return value; 395 } 396 397 /** 398 * @param value The numeric wire value of the corresponding enum entry. 399 * @return The enum associated with the given numeric wire value. 400 * @deprecated Use {@link #forNumber(int)} instead. 401 */ 402 @java.lang.Deprecated valueOf(int value)403 public static LivenessState valueOf(int value) { 404 return forNumber(value); 405 } 406 407 /** 408 * @param value The numeric wire value of the corresponding enum entry. 409 * @return The enum associated with the given numeric wire value. 410 */ forNumber(int value)411 public static LivenessState forNumber(int value) { 412 switch (value) { 413 case 0: 414 return LIVENESS_STATE_UNSPECIFIED; 415 case 1: 416 return UNKNOWN; 417 case 2: 418 return HEALTHY; 419 case 3: 420 return UNHEALTHY; 421 case 4: 422 return DRAINING; 423 case 5: 424 return TIMEOUT; 425 default: 426 return null; 427 } 428 } 429 internalGetValueMap()430 public static com.google.protobuf.Internal.EnumLiteMap<LivenessState> internalGetValueMap() { 431 return internalValueMap; 432 } 433 434 private static final com.google.protobuf.Internal.EnumLiteMap<LivenessState> 435 internalValueMap = 436 new com.google.protobuf.Internal.EnumLiteMap<LivenessState>() { 437 public LivenessState findValueByNumber(int number) { 438 return LivenessState.forNumber(number); 439 } 440 }; 441 getValueDescriptor()442 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 443 if (this == UNRECOGNIZED) { 444 throw new java.lang.IllegalStateException( 445 "Can't get the descriptor of an unrecognized enum value."); 446 } 447 return getDescriptor().getValues().get(ordinal()); 448 } 449 getDescriptorForType()450 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 451 return getDescriptor(); 452 } 453 getDescriptor()454 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 455 return com.google.appengine.v1.Instance.Liveness.getDescriptor().getEnumTypes().get(0); 456 } 457 458 private static final LivenessState[] VALUES = values(); 459 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)460 public static LivenessState valueOf( 461 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 462 if (desc.getType() != getDescriptor()) { 463 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 464 } 465 if (desc.getIndex() == -1) { 466 return UNRECOGNIZED; 467 } 468 return VALUES[desc.getIndex()]; 469 } 470 471 private final int value; 472 LivenessState(int value)473 private LivenessState(int value) { 474 this.value = value; 475 } 476 477 // @@protoc_insertion_point(enum_scope:google.appengine.v1.Instance.Liveness.LivenessState) 478 } 479 480 private byte memoizedIsInitialized = -1; 481 482 @java.lang.Override isInitialized()483 public final boolean isInitialized() { 484 byte isInitialized = memoizedIsInitialized; 485 if (isInitialized == 1) return true; 486 if (isInitialized == 0) return false; 487 488 memoizedIsInitialized = 1; 489 return true; 490 } 491 492 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)493 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 494 getUnknownFields().writeTo(output); 495 } 496 497 @java.lang.Override getSerializedSize()498 public int getSerializedSize() { 499 int size = memoizedSize; 500 if (size != -1) return size; 501 502 size = 0; 503 size += getUnknownFields().getSerializedSize(); 504 memoizedSize = size; 505 return size; 506 } 507 508 @java.lang.Override equals(final java.lang.Object obj)509 public boolean equals(final java.lang.Object obj) { 510 if (obj == this) { 511 return true; 512 } 513 if (!(obj instanceof com.google.appengine.v1.Instance.Liveness)) { 514 return super.equals(obj); 515 } 516 com.google.appengine.v1.Instance.Liveness other = 517 (com.google.appengine.v1.Instance.Liveness) obj; 518 519 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 520 return true; 521 } 522 523 @java.lang.Override hashCode()524 public int hashCode() { 525 if (memoizedHashCode != 0) { 526 return memoizedHashCode; 527 } 528 int hash = 41; 529 hash = (19 * hash) + getDescriptor().hashCode(); 530 hash = (29 * hash) + getUnknownFields().hashCode(); 531 memoizedHashCode = hash; 532 return hash; 533 } 534 parseFrom(java.nio.ByteBuffer data)535 public static com.google.appengine.v1.Instance.Liveness parseFrom(java.nio.ByteBuffer data) 536 throws com.google.protobuf.InvalidProtocolBufferException { 537 return PARSER.parseFrom(data); 538 } 539 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)540 public static com.google.appengine.v1.Instance.Liveness parseFrom( 541 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 542 throws com.google.protobuf.InvalidProtocolBufferException { 543 return PARSER.parseFrom(data, extensionRegistry); 544 } 545 parseFrom( com.google.protobuf.ByteString data)546 public static com.google.appengine.v1.Instance.Liveness parseFrom( 547 com.google.protobuf.ByteString data) 548 throws com.google.protobuf.InvalidProtocolBufferException { 549 return PARSER.parseFrom(data); 550 } 551 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)552 public static com.google.appengine.v1.Instance.Liveness parseFrom( 553 com.google.protobuf.ByteString data, 554 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 555 throws com.google.protobuf.InvalidProtocolBufferException { 556 return PARSER.parseFrom(data, extensionRegistry); 557 } 558 parseFrom(byte[] data)559 public static com.google.appengine.v1.Instance.Liveness parseFrom(byte[] data) 560 throws com.google.protobuf.InvalidProtocolBufferException { 561 return PARSER.parseFrom(data); 562 } 563 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)564 public static com.google.appengine.v1.Instance.Liveness parseFrom( 565 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 566 throws com.google.protobuf.InvalidProtocolBufferException { 567 return PARSER.parseFrom(data, extensionRegistry); 568 } 569 parseFrom(java.io.InputStream input)570 public static com.google.appengine.v1.Instance.Liveness parseFrom(java.io.InputStream input) 571 throws java.io.IOException { 572 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 573 } 574 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)575 public static com.google.appengine.v1.Instance.Liveness parseFrom( 576 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 577 throws java.io.IOException { 578 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 579 PARSER, input, extensionRegistry); 580 } 581 parseDelimitedFrom( java.io.InputStream input)582 public static com.google.appengine.v1.Instance.Liveness parseDelimitedFrom( 583 java.io.InputStream input) throws java.io.IOException { 584 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 585 } 586 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)587 public static com.google.appengine.v1.Instance.Liveness parseDelimitedFrom( 588 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 589 throws java.io.IOException { 590 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 591 PARSER, input, extensionRegistry); 592 } 593 parseFrom( com.google.protobuf.CodedInputStream input)594 public static com.google.appengine.v1.Instance.Liveness parseFrom( 595 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 596 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 597 } 598 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)599 public static com.google.appengine.v1.Instance.Liveness parseFrom( 600 com.google.protobuf.CodedInputStream input, 601 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 602 throws java.io.IOException { 603 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 604 PARSER, input, extensionRegistry); 605 } 606 607 @java.lang.Override newBuilderForType()608 public Builder newBuilderForType() { 609 return newBuilder(); 610 } 611 newBuilder()612 public static Builder newBuilder() { 613 return DEFAULT_INSTANCE.toBuilder(); 614 } 615 newBuilder(com.google.appengine.v1.Instance.Liveness prototype)616 public static Builder newBuilder(com.google.appengine.v1.Instance.Liveness prototype) { 617 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 618 } 619 620 @java.lang.Override toBuilder()621 public Builder toBuilder() { 622 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 623 } 624 625 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)626 protected Builder newBuilderForType( 627 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 628 Builder builder = new Builder(parent); 629 return builder; 630 } 631 /** 632 * 633 * 634 * <pre> 635 * Wrapper for LivenessState enum. 636 * </pre> 637 * 638 * Protobuf type {@code google.appengine.v1.Instance.Liveness} 639 */ 640 public static final class Builder 641 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 642 implements 643 // @@protoc_insertion_point(builder_implements:google.appengine.v1.Instance.Liveness) 644 com.google.appengine.v1.Instance.LivenessOrBuilder { getDescriptor()645 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 646 return com.google.appengine.v1.InstanceProto 647 .internal_static_google_appengine_v1_Instance_Liveness_descriptor; 648 } 649 650 @java.lang.Override 651 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()652 internalGetFieldAccessorTable() { 653 return com.google.appengine.v1.InstanceProto 654 .internal_static_google_appengine_v1_Instance_Liveness_fieldAccessorTable 655 .ensureFieldAccessorsInitialized( 656 com.google.appengine.v1.Instance.Liveness.class, 657 com.google.appengine.v1.Instance.Liveness.Builder.class); 658 } 659 660 // Construct using com.google.appengine.v1.Instance.Liveness.newBuilder() Builder()661 private Builder() {} 662 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)663 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 664 super(parent); 665 } 666 667 @java.lang.Override clear()668 public Builder clear() { 669 super.clear(); 670 return this; 671 } 672 673 @java.lang.Override getDescriptorForType()674 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 675 return com.google.appengine.v1.InstanceProto 676 .internal_static_google_appengine_v1_Instance_Liveness_descriptor; 677 } 678 679 @java.lang.Override getDefaultInstanceForType()680 public com.google.appengine.v1.Instance.Liveness getDefaultInstanceForType() { 681 return com.google.appengine.v1.Instance.Liveness.getDefaultInstance(); 682 } 683 684 @java.lang.Override build()685 public com.google.appengine.v1.Instance.Liveness build() { 686 com.google.appengine.v1.Instance.Liveness result = buildPartial(); 687 if (!result.isInitialized()) { 688 throw newUninitializedMessageException(result); 689 } 690 return result; 691 } 692 693 @java.lang.Override buildPartial()694 public com.google.appengine.v1.Instance.Liveness buildPartial() { 695 com.google.appengine.v1.Instance.Liveness result = 696 new com.google.appengine.v1.Instance.Liveness(this); 697 onBuilt(); 698 return result; 699 } 700 701 @java.lang.Override clone()702 public Builder clone() { 703 return super.clone(); 704 } 705 706 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)707 public Builder setField( 708 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 709 return super.setField(field, value); 710 } 711 712 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)713 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 714 return super.clearField(field); 715 } 716 717 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)718 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 719 return super.clearOneof(oneof); 720 } 721 722 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)723 public Builder setRepeatedField( 724 com.google.protobuf.Descriptors.FieldDescriptor field, 725 int index, 726 java.lang.Object value) { 727 return super.setRepeatedField(field, index, value); 728 } 729 730 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)731 public Builder addRepeatedField( 732 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 733 return super.addRepeatedField(field, value); 734 } 735 736 @java.lang.Override mergeFrom(com.google.protobuf.Message other)737 public Builder mergeFrom(com.google.protobuf.Message other) { 738 if (other instanceof com.google.appengine.v1.Instance.Liveness) { 739 return mergeFrom((com.google.appengine.v1.Instance.Liveness) other); 740 } else { 741 super.mergeFrom(other); 742 return this; 743 } 744 } 745 mergeFrom(com.google.appengine.v1.Instance.Liveness other)746 public Builder mergeFrom(com.google.appengine.v1.Instance.Liveness other) { 747 if (other == com.google.appengine.v1.Instance.Liveness.getDefaultInstance()) return this; 748 this.mergeUnknownFields(other.getUnknownFields()); 749 onChanged(); 750 return this; 751 } 752 753 @java.lang.Override isInitialized()754 public final boolean isInitialized() { 755 return true; 756 } 757 758 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)759 public Builder mergeFrom( 760 com.google.protobuf.CodedInputStream input, 761 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 762 throws java.io.IOException { 763 if (extensionRegistry == null) { 764 throw new java.lang.NullPointerException(); 765 } 766 try { 767 boolean done = false; 768 while (!done) { 769 int tag = input.readTag(); 770 switch (tag) { 771 case 0: 772 done = true; 773 break; 774 default: 775 { 776 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 777 done = true; // was an endgroup tag 778 } 779 break; 780 } // default: 781 } // switch (tag) 782 } // while (!done) 783 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 784 throw e.unwrapIOException(); 785 } finally { 786 onChanged(); 787 } // finally 788 return this; 789 } 790 791 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)792 public final Builder setUnknownFields( 793 final com.google.protobuf.UnknownFieldSet unknownFields) { 794 return super.setUnknownFields(unknownFields); 795 } 796 797 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)798 public final Builder mergeUnknownFields( 799 final com.google.protobuf.UnknownFieldSet unknownFields) { 800 return super.mergeUnknownFields(unknownFields); 801 } 802 803 // @@protoc_insertion_point(builder_scope:google.appengine.v1.Instance.Liveness) 804 } 805 806 // @@protoc_insertion_point(class_scope:google.appengine.v1.Instance.Liveness) 807 private static final com.google.appengine.v1.Instance.Liveness DEFAULT_INSTANCE; 808 809 static { 810 DEFAULT_INSTANCE = new com.google.appengine.v1.Instance.Liveness(); 811 } 812 getDefaultInstance()813 public static com.google.appengine.v1.Instance.Liveness getDefaultInstance() { 814 return DEFAULT_INSTANCE; 815 } 816 817 private static final com.google.protobuf.Parser<Liveness> PARSER = 818 new com.google.protobuf.AbstractParser<Liveness>() { 819 @java.lang.Override 820 public Liveness parsePartialFrom( 821 com.google.protobuf.CodedInputStream input, 822 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 823 throws com.google.protobuf.InvalidProtocolBufferException { 824 Builder builder = newBuilder(); 825 try { 826 builder.mergeFrom(input, extensionRegistry); 827 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 828 throw e.setUnfinishedMessage(builder.buildPartial()); 829 } catch (com.google.protobuf.UninitializedMessageException e) { 830 throw e.asInvalidProtocolBufferException() 831 .setUnfinishedMessage(builder.buildPartial()); 832 } catch (java.io.IOException e) { 833 throw new com.google.protobuf.InvalidProtocolBufferException(e) 834 .setUnfinishedMessage(builder.buildPartial()); 835 } 836 return builder.buildPartial(); 837 } 838 }; 839 parser()840 public static com.google.protobuf.Parser<Liveness> parser() { 841 return PARSER; 842 } 843 844 @java.lang.Override getParserForType()845 public com.google.protobuf.Parser<Liveness> getParserForType() { 846 return PARSER; 847 } 848 849 @java.lang.Override getDefaultInstanceForType()850 public com.google.appengine.v1.Instance.Liveness getDefaultInstanceForType() { 851 return DEFAULT_INSTANCE; 852 } 853 } 854 855 public static final int NAME_FIELD_NUMBER = 1; 856 857 @SuppressWarnings("serial") 858 private volatile java.lang.Object name_ = ""; 859 /** 860 * 861 * 862 * <pre> 863 * Output only. Full path to the Instance resource in the API. 864 * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. 865 * </pre> 866 * 867 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 868 * 869 * @return The name. 870 */ 871 @java.lang.Override getName()872 public java.lang.String getName() { 873 java.lang.Object ref = name_; 874 if (ref instanceof java.lang.String) { 875 return (java.lang.String) ref; 876 } else { 877 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 878 java.lang.String s = bs.toStringUtf8(); 879 name_ = s; 880 return s; 881 } 882 } 883 /** 884 * 885 * 886 * <pre> 887 * Output only. Full path to the Instance resource in the API. 888 * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. 889 * </pre> 890 * 891 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 892 * 893 * @return The bytes for name. 894 */ 895 @java.lang.Override getNameBytes()896 public com.google.protobuf.ByteString getNameBytes() { 897 java.lang.Object ref = name_; 898 if (ref instanceof java.lang.String) { 899 com.google.protobuf.ByteString b = 900 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 901 name_ = b; 902 return b; 903 } else { 904 return (com.google.protobuf.ByteString) ref; 905 } 906 } 907 908 public static final int ID_FIELD_NUMBER = 2; 909 910 @SuppressWarnings("serial") 911 private volatile java.lang.Object id_ = ""; 912 /** 913 * 914 * 915 * <pre> 916 * Output only. Relative name of the instance within the version. 917 * Example: `instance-1`. 918 * </pre> 919 * 920 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 921 * 922 * @return The id. 923 */ 924 @java.lang.Override getId()925 public java.lang.String getId() { 926 java.lang.Object ref = id_; 927 if (ref instanceof java.lang.String) { 928 return (java.lang.String) ref; 929 } else { 930 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 931 java.lang.String s = bs.toStringUtf8(); 932 id_ = s; 933 return s; 934 } 935 } 936 /** 937 * 938 * 939 * <pre> 940 * Output only. Relative name of the instance within the version. 941 * Example: `instance-1`. 942 * </pre> 943 * 944 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 945 * 946 * @return The bytes for id. 947 */ 948 @java.lang.Override getIdBytes()949 public com.google.protobuf.ByteString getIdBytes() { 950 java.lang.Object ref = id_; 951 if (ref instanceof java.lang.String) { 952 com.google.protobuf.ByteString b = 953 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 954 id_ = b; 955 return b; 956 } else { 957 return (com.google.protobuf.ByteString) ref; 958 } 959 } 960 961 public static final int APP_ENGINE_RELEASE_FIELD_NUMBER = 3; 962 963 @SuppressWarnings("serial") 964 private volatile java.lang.Object appEngineRelease_ = ""; 965 /** 966 * 967 * 968 * <pre> 969 * Output only. App Engine release this instance is running on. 970 * </pre> 971 * 972 * <code>string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 973 * 974 * @return The appEngineRelease. 975 */ 976 @java.lang.Override getAppEngineRelease()977 public java.lang.String getAppEngineRelease() { 978 java.lang.Object ref = appEngineRelease_; 979 if (ref instanceof java.lang.String) { 980 return (java.lang.String) ref; 981 } else { 982 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 983 java.lang.String s = bs.toStringUtf8(); 984 appEngineRelease_ = s; 985 return s; 986 } 987 } 988 /** 989 * 990 * 991 * <pre> 992 * Output only. App Engine release this instance is running on. 993 * </pre> 994 * 995 * <code>string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 996 * 997 * @return The bytes for appEngineRelease. 998 */ 999 @java.lang.Override getAppEngineReleaseBytes()1000 public com.google.protobuf.ByteString getAppEngineReleaseBytes() { 1001 java.lang.Object ref = appEngineRelease_; 1002 if (ref instanceof java.lang.String) { 1003 com.google.protobuf.ByteString b = 1004 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1005 appEngineRelease_ = b; 1006 return b; 1007 } else { 1008 return (com.google.protobuf.ByteString) ref; 1009 } 1010 } 1011 1012 public static final int AVAILABILITY_FIELD_NUMBER = 4; 1013 private int availability_ = 0; 1014 /** 1015 * 1016 * 1017 * <pre> 1018 * Output only. Availability of the instance. 1019 * </pre> 1020 * 1021 * <code> 1022 * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1023 * </code> 1024 * 1025 * @return The enum numeric value on the wire for availability. 1026 */ 1027 @java.lang.Override getAvailabilityValue()1028 public int getAvailabilityValue() { 1029 return availability_; 1030 } 1031 /** 1032 * 1033 * 1034 * <pre> 1035 * Output only. Availability of the instance. 1036 * </pre> 1037 * 1038 * <code> 1039 * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1040 * </code> 1041 * 1042 * @return The availability. 1043 */ 1044 @java.lang.Override getAvailability()1045 public com.google.appengine.v1.Instance.Availability getAvailability() { 1046 com.google.appengine.v1.Instance.Availability result = 1047 com.google.appengine.v1.Instance.Availability.forNumber(availability_); 1048 return result == null ? com.google.appengine.v1.Instance.Availability.UNRECOGNIZED : result; 1049 } 1050 1051 public static final int VM_NAME_FIELD_NUMBER = 5; 1052 1053 @SuppressWarnings("serial") 1054 private volatile java.lang.Object vmName_ = ""; 1055 /** 1056 * 1057 * 1058 * <pre> 1059 * Output only. Name of the virtual machine where this instance lives. Only applicable 1060 * for instances in App Engine flexible environment. 1061 * </pre> 1062 * 1063 * <code>string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1064 * 1065 * @return The vmName. 1066 */ 1067 @java.lang.Override getVmName()1068 public java.lang.String getVmName() { 1069 java.lang.Object ref = vmName_; 1070 if (ref instanceof java.lang.String) { 1071 return (java.lang.String) ref; 1072 } else { 1073 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1074 java.lang.String s = bs.toStringUtf8(); 1075 vmName_ = s; 1076 return s; 1077 } 1078 } 1079 /** 1080 * 1081 * 1082 * <pre> 1083 * Output only. Name of the virtual machine where this instance lives. Only applicable 1084 * for instances in App Engine flexible environment. 1085 * </pre> 1086 * 1087 * <code>string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1088 * 1089 * @return The bytes for vmName. 1090 */ 1091 @java.lang.Override getVmNameBytes()1092 public com.google.protobuf.ByteString getVmNameBytes() { 1093 java.lang.Object ref = vmName_; 1094 if (ref instanceof java.lang.String) { 1095 com.google.protobuf.ByteString b = 1096 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1097 vmName_ = b; 1098 return b; 1099 } else { 1100 return (com.google.protobuf.ByteString) ref; 1101 } 1102 } 1103 1104 public static final int VM_ZONE_NAME_FIELD_NUMBER = 6; 1105 1106 @SuppressWarnings("serial") 1107 private volatile java.lang.Object vmZoneName_ = ""; 1108 /** 1109 * 1110 * 1111 * <pre> 1112 * Output only. Zone where the virtual machine is located. Only applicable for instances 1113 * in App Engine flexible environment. 1114 * </pre> 1115 * 1116 * <code>string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1117 * 1118 * @return The vmZoneName. 1119 */ 1120 @java.lang.Override getVmZoneName()1121 public java.lang.String getVmZoneName() { 1122 java.lang.Object ref = vmZoneName_; 1123 if (ref instanceof java.lang.String) { 1124 return (java.lang.String) ref; 1125 } else { 1126 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1127 java.lang.String s = bs.toStringUtf8(); 1128 vmZoneName_ = s; 1129 return s; 1130 } 1131 } 1132 /** 1133 * 1134 * 1135 * <pre> 1136 * Output only. Zone where the virtual machine is located. Only applicable for instances 1137 * in App Engine flexible environment. 1138 * </pre> 1139 * 1140 * <code>string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1141 * 1142 * @return The bytes for vmZoneName. 1143 */ 1144 @java.lang.Override getVmZoneNameBytes()1145 public com.google.protobuf.ByteString getVmZoneNameBytes() { 1146 java.lang.Object ref = vmZoneName_; 1147 if (ref instanceof java.lang.String) { 1148 com.google.protobuf.ByteString b = 1149 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1150 vmZoneName_ = b; 1151 return b; 1152 } else { 1153 return (com.google.protobuf.ByteString) ref; 1154 } 1155 } 1156 1157 public static final int VM_ID_FIELD_NUMBER = 7; 1158 1159 @SuppressWarnings("serial") 1160 private volatile java.lang.Object vmId_ = ""; 1161 /** 1162 * 1163 * 1164 * <pre> 1165 * Output only. Virtual machine ID of this instance. Only applicable for instances in 1166 * App Engine flexible environment. 1167 * </pre> 1168 * 1169 * <code>string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1170 * 1171 * @return The vmId. 1172 */ 1173 @java.lang.Override getVmId()1174 public java.lang.String getVmId() { 1175 java.lang.Object ref = vmId_; 1176 if (ref instanceof java.lang.String) { 1177 return (java.lang.String) ref; 1178 } else { 1179 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1180 java.lang.String s = bs.toStringUtf8(); 1181 vmId_ = s; 1182 return s; 1183 } 1184 } 1185 /** 1186 * 1187 * 1188 * <pre> 1189 * Output only. Virtual machine ID of this instance. Only applicable for instances in 1190 * App Engine flexible environment. 1191 * </pre> 1192 * 1193 * <code>string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1194 * 1195 * @return The bytes for vmId. 1196 */ 1197 @java.lang.Override getVmIdBytes()1198 public com.google.protobuf.ByteString getVmIdBytes() { 1199 java.lang.Object ref = vmId_; 1200 if (ref instanceof java.lang.String) { 1201 com.google.protobuf.ByteString b = 1202 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1203 vmId_ = b; 1204 return b; 1205 } else { 1206 return (com.google.protobuf.ByteString) ref; 1207 } 1208 } 1209 1210 public static final int START_TIME_FIELD_NUMBER = 8; 1211 private com.google.protobuf.Timestamp startTime_; 1212 /** 1213 * 1214 * 1215 * <pre> 1216 * Output only. Time that this instance was started. 1217 * @OutputOnly 1218 * </pre> 1219 * 1220 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1221 * </code> 1222 * 1223 * @return Whether the startTime field is set. 1224 */ 1225 @java.lang.Override hasStartTime()1226 public boolean hasStartTime() { 1227 return startTime_ != null; 1228 } 1229 /** 1230 * 1231 * 1232 * <pre> 1233 * Output only. Time that this instance was started. 1234 * @OutputOnly 1235 * </pre> 1236 * 1237 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1238 * </code> 1239 * 1240 * @return The startTime. 1241 */ 1242 @java.lang.Override getStartTime()1243 public com.google.protobuf.Timestamp getStartTime() { 1244 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 1245 } 1246 /** 1247 * 1248 * 1249 * <pre> 1250 * Output only. Time that this instance was started. 1251 * @OutputOnly 1252 * </pre> 1253 * 1254 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1255 * </code> 1256 */ 1257 @java.lang.Override getStartTimeOrBuilder()1258 public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 1259 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 1260 } 1261 1262 public static final int REQUESTS_FIELD_NUMBER = 9; 1263 private int requests_ = 0; 1264 /** 1265 * 1266 * 1267 * <pre> 1268 * Output only. Number of requests since this instance was started. 1269 * </pre> 1270 * 1271 * <code>int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1272 * 1273 * @return The requests. 1274 */ 1275 @java.lang.Override getRequests()1276 public int getRequests() { 1277 return requests_; 1278 } 1279 1280 public static final int ERRORS_FIELD_NUMBER = 10; 1281 private int errors_ = 0; 1282 /** 1283 * 1284 * 1285 * <pre> 1286 * Output only. Number of errors since this instance was started. 1287 * </pre> 1288 * 1289 * <code>int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1290 * 1291 * @return The errors. 1292 */ 1293 @java.lang.Override getErrors()1294 public int getErrors() { 1295 return errors_; 1296 } 1297 1298 public static final int QPS_FIELD_NUMBER = 11; 1299 private float qps_ = 0F; 1300 /** 1301 * 1302 * 1303 * <pre> 1304 * Output only. Average queries per second (QPS) over the last minute. 1305 * </pre> 1306 * 1307 * <code>float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1308 * 1309 * @return The qps. 1310 */ 1311 @java.lang.Override getQps()1312 public float getQps() { 1313 return qps_; 1314 } 1315 1316 public static final int AVERAGE_LATENCY_FIELD_NUMBER = 12; 1317 private int averageLatency_ = 0; 1318 /** 1319 * 1320 * 1321 * <pre> 1322 * Output only. Average latency (ms) over the last minute. 1323 * </pre> 1324 * 1325 * <code>int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1326 * 1327 * @return The averageLatency. 1328 */ 1329 @java.lang.Override getAverageLatency()1330 public int getAverageLatency() { 1331 return averageLatency_; 1332 } 1333 1334 public static final int MEMORY_USAGE_FIELD_NUMBER = 13; 1335 private long memoryUsage_ = 0L; 1336 /** 1337 * 1338 * 1339 * <pre> 1340 * Output only. Total memory in use (bytes). 1341 * </pre> 1342 * 1343 * <code>int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1344 * 1345 * @return The memoryUsage. 1346 */ 1347 @java.lang.Override getMemoryUsage()1348 public long getMemoryUsage() { 1349 return memoryUsage_; 1350 } 1351 1352 public static final int VM_STATUS_FIELD_NUMBER = 14; 1353 1354 @SuppressWarnings("serial") 1355 private volatile java.lang.Object vmStatus_ = ""; 1356 /** 1357 * 1358 * 1359 * <pre> 1360 * Output only. Status of the virtual machine where this instance lives. Only applicable 1361 * for instances in App Engine flexible environment. 1362 * </pre> 1363 * 1364 * <code>string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1365 * 1366 * @return The vmStatus. 1367 */ 1368 @java.lang.Override getVmStatus()1369 public java.lang.String getVmStatus() { 1370 java.lang.Object ref = vmStatus_; 1371 if (ref instanceof java.lang.String) { 1372 return (java.lang.String) ref; 1373 } else { 1374 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1375 java.lang.String s = bs.toStringUtf8(); 1376 vmStatus_ = s; 1377 return s; 1378 } 1379 } 1380 /** 1381 * 1382 * 1383 * <pre> 1384 * Output only. Status of the virtual machine where this instance lives. Only applicable 1385 * for instances in App Engine flexible environment. 1386 * </pre> 1387 * 1388 * <code>string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1389 * 1390 * @return The bytes for vmStatus. 1391 */ 1392 @java.lang.Override getVmStatusBytes()1393 public com.google.protobuf.ByteString getVmStatusBytes() { 1394 java.lang.Object ref = vmStatus_; 1395 if (ref instanceof java.lang.String) { 1396 com.google.protobuf.ByteString b = 1397 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1398 vmStatus_ = b; 1399 return b; 1400 } else { 1401 return (com.google.protobuf.ByteString) ref; 1402 } 1403 } 1404 1405 public static final int VM_DEBUG_ENABLED_FIELD_NUMBER = 15; 1406 private boolean vmDebugEnabled_ = false; 1407 /** 1408 * 1409 * 1410 * <pre> 1411 * Output only. Whether this instance is in debug mode. Only applicable for instances in 1412 * App Engine flexible environment. 1413 * </pre> 1414 * 1415 * <code>bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1416 * 1417 * @return The vmDebugEnabled. 1418 */ 1419 @java.lang.Override getVmDebugEnabled()1420 public boolean getVmDebugEnabled() { 1421 return vmDebugEnabled_; 1422 } 1423 1424 public static final int VM_IP_FIELD_NUMBER = 16; 1425 1426 @SuppressWarnings("serial") 1427 private volatile java.lang.Object vmIp_ = ""; 1428 /** 1429 * 1430 * 1431 * <pre> 1432 * Output only. The IP address of this instance. Only applicable for instances in App 1433 * Engine flexible environment. 1434 * </pre> 1435 * 1436 * <code>string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1437 * 1438 * @return The vmIp. 1439 */ 1440 @java.lang.Override getVmIp()1441 public java.lang.String getVmIp() { 1442 java.lang.Object ref = vmIp_; 1443 if (ref instanceof java.lang.String) { 1444 return (java.lang.String) ref; 1445 } else { 1446 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1447 java.lang.String s = bs.toStringUtf8(); 1448 vmIp_ = s; 1449 return s; 1450 } 1451 } 1452 /** 1453 * 1454 * 1455 * <pre> 1456 * Output only. The IP address of this instance. Only applicable for instances in App 1457 * Engine flexible environment. 1458 * </pre> 1459 * 1460 * <code>string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1461 * 1462 * @return The bytes for vmIp. 1463 */ 1464 @java.lang.Override getVmIpBytes()1465 public com.google.protobuf.ByteString getVmIpBytes() { 1466 java.lang.Object ref = vmIp_; 1467 if (ref instanceof java.lang.String) { 1468 com.google.protobuf.ByteString b = 1469 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1470 vmIp_ = b; 1471 return b; 1472 } else { 1473 return (com.google.protobuf.ByteString) ref; 1474 } 1475 } 1476 1477 public static final int VM_LIVENESS_FIELD_NUMBER = 17; 1478 private int vmLiveness_ = 0; 1479 /** 1480 * 1481 * 1482 * <pre> 1483 * Output only. The liveness health check of this instance. Only applicable for instances 1484 * in App Engine flexible environment. 1485 * </pre> 1486 * 1487 * <code> 1488 * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1489 * </code> 1490 * 1491 * @return The enum numeric value on the wire for vmLiveness. 1492 */ 1493 @java.lang.Override getVmLivenessValue()1494 public int getVmLivenessValue() { 1495 return vmLiveness_; 1496 } 1497 /** 1498 * 1499 * 1500 * <pre> 1501 * Output only. The liveness health check of this instance. Only applicable for instances 1502 * in App Engine flexible environment. 1503 * </pre> 1504 * 1505 * <code> 1506 * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1507 * </code> 1508 * 1509 * @return The vmLiveness. 1510 */ 1511 @java.lang.Override getVmLiveness()1512 public com.google.appengine.v1.Instance.Liveness.LivenessState getVmLiveness() { 1513 com.google.appengine.v1.Instance.Liveness.LivenessState result = 1514 com.google.appengine.v1.Instance.Liveness.LivenessState.forNumber(vmLiveness_); 1515 return result == null 1516 ? com.google.appengine.v1.Instance.Liveness.LivenessState.UNRECOGNIZED 1517 : result; 1518 } 1519 1520 private byte memoizedIsInitialized = -1; 1521 1522 @java.lang.Override isInitialized()1523 public final boolean isInitialized() { 1524 byte isInitialized = memoizedIsInitialized; 1525 if (isInitialized == 1) return true; 1526 if (isInitialized == 0) return false; 1527 1528 memoizedIsInitialized = 1; 1529 return true; 1530 } 1531 1532 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1533 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1534 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1535 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 1536 } 1537 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 1538 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); 1539 } 1540 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appEngineRelease_)) { 1541 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appEngineRelease_); 1542 } 1543 if (availability_ != com.google.appengine.v1.Instance.Availability.UNSPECIFIED.getNumber()) { 1544 output.writeEnum(4, availability_); 1545 } 1546 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmName_)) { 1547 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, vmName_); 1548 } 1549 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmZoneName_)) { 1550 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vmZoneName_); 1551 } 1552 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { 1553 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, vmId_); 1554 } 1555 if (startTime_ != null) { 1556 output.writeMessage(8, getStartTime()); 1557 } 1558 if (requests_ != 0) { 1559 output.writeInt32(9, requests_); 1560 } 1561 if (errors_ != 0) { 1562 output.writeInt32(10, errors_); 1563 } 1564 if (java.lang.Float.floatToRawIntBits(qps_) != 0) { 1565 output.writeFloat(11, qps_); 1566 } 1567 if (averageLatency_ != 0) { 1568 output.writeInt32(12, averageLatency_); 1569 } 1570 if (memoryUsage_ != 0L) { 1571 output.writeInt64(13, memoryUsage_); 1572 } 1573 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmStatus_)) { 1574 com.google.protobuf.GeneratedMessageV3.writeString(output, 14, vmStatus_); 1575 } 1576 if (vmDebugEnabled_ != false) { 1577 output.writeBool(15, vmDebugEnabled_); 1578 } 1579 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmIp_)) { 1580 com.google.protobuf.GeneratedMessageV3.writeString(output, 16, vmIp_); 1581 } 1582 if (vmLiveness_ 1583 != com.google.appengine.v1.Instance.Liveness.LivenessState.LIVENESS_STATE_UNSPECIFIED 1584 .getNumber()) { 1585 output.writeEnum(17, vmLiveness_); 1586 } 1587 getUnknownFields().writeTo(output); 1588 } 1589 1590 @java.lang.Override getSerializedSize()1591 public int getSerializedSize() { 1592 int size = memoizedSize; 1593 if (size != -1) return size; 1594 1595 size = 0; 1596 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1597 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 1598 } 1599 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 1600 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); 1601 } 1602 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appEngineRelease_)) { 1603 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appEngineRelease_); 1604 } 1605 if (availability_ != com.google.appengine.v1.Instance.Availability.UNSPECIFIED.getNumber()) { 1606 size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, availability_); 1607 } 1608 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmName_)) { 1609 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, vmName_); 1610 } 1611 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmZoneName_)) { 1612 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vmZoneName_); 1613 } 1614 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { 1615 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vmId_); 1616 } 1617 if (startTime_ != null) { 1618 size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStartTime()); 1619 } 1620 if (requests_ != 0) { 1621 size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, requests_); 1622 } 1623 if (errors_ != 0) { 1624 size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, errors_); 1625 } 1626 if (java.lang.Float.floatToRawIntBits(qps_) != 0) { 1627 size += com.google.protobuf.CodedOutputStream.computeFloatSize(11, qps_); 1628 } 1629 if (averageLatency_ != 0) { 1630 size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, averageLatency_); 1631 } 1632 if (memoryUsage_ != 0L) { 1633 size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, memoryUsage_); 1634 } 1635 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmStatus_)) { 1636 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, vmStatus_); 1637 } 1638 if (vmDebugEnabled_ != false) { 1639 size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, vmDebugEnabled_); 1640 } 1641 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmIp_)) { 1642 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, vmIp_); 1643 } 1644 if (vmLiveness_ 1645 != com.google.appengine.v1.Instance.Liveness.LivenessState.LIVENESS_STATE_UNSPECIFIED 1646 .getNumber()) { 1647 size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, vmLiveness_); 1648 } 1649 size += getUnknownFields().getSerializedSize(); 1650 memoizedSize = size; 1651 return size; 1652 } 1653 1654 @java.lang.Override equals(final java.lang.Object obj)1655 public boolean equals(final java.lang.Object obj) { 1656 if (obj == this) { 1657 return true; 1658 } 1659 if (!(obj instanceof com.google.appengine.v1.Instance)) { 1660 return super.equals(obj); 1661 } 1662 com.google.appengine.v1.Instance other = (com.google.appengine.v1.Instance) obj; 1663 1664 if (!getName().equals(other.getName())) return false; 1665 if (!getId().equals(other.getId())) return false; 1666 if (!getAppEngineRelease().equals(other.getAppEngineRelease())) return false; 1667 if (availability_ != other.availability_) return false; 1668 if (!getVmName().equals(other.getVmName())) return false; 1669 if (!getVmZoneName().equals(other.getVmZoneName())) return false; 1670 if (!getVmId().equals(other.getVmId())) return false; 1671 if (hasStartTime() != other.hasStartTime()) return false; 1672 if (hasStartTime()) { 1673 if (!getStartTime().equals(other.getStartTime())) return false; 1674 } 1675 if (getRequests() != other.getRequests()) return false; 1676 if (getErrors() != other.getErrors()) return false; 1677 if (java.lang.Float.floatToIntBits(getQps()) != java.lang.Float.floatToIntBits(other.getQps())) 1678 return false; 1679 if (getAverageLatency() != other.getAverageLatency()) return false; 1680 if (getMemoryUsage() != other.getMemoryUsage()) return false; 1681 if (!getVmStatus().equals(other.getVmStatus())) return false; 1682 if (getVmDebugEnabled() != other.getVmDebugEnabled()) return false; 1683 if (!getVmIp().equals(other.getVmIp())) return false; 1684 if (vmLiveness_ != other.vmLiveness_) return false; 1685 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1686 return true; 1687 } 1688 1689 @java.lang.Override hashCode()1690 public int hashCode() { 1691 if (memoizedHashCode != 0) { 1692 return memoizedHashCode; 1693 } 1694 int hash = 41; 1695 hash = (19 * hash) + getDescriptor().hashCode(); 1696 hash = (37 * hash) + NAME_FIELD_NUMBER; 1697 hash = (53 * hash) + getName().hashCode(); 1698 hash = (37 * hash) + ID_FIELD_NUMBER; 1699 hash = (53 * hash) + getId().hashCode(); 1700 hash = (37 * hash) + APP_ENGINE_RELEASE_FIELD_NUMBER; 1701 hash = (53 * hash) + getAppEngineRelease().hashCode(); 1702 hash = (37 * hash) + AVAILABILITY_FIELD_NUMBER; 1703 hash = (53 * hash) + availability_; 1704 hash = (37 * hash) + VM_NAME_FIELD_NUMBER; 1705 hash = (53 * hash) + getVmName().hashCode(); 1706 hash = (37 * hash) + VM_ZONE_NAME_FIELD_NUMBER; 1707 hash = (53 * hash) + getVmZoneName().hashCode(); 1708 hash = (37 * hash) + VM_ID_FIELD_NUMBER; 1709 hash = (53 * hash) + getVmId().hashCode(); 1710 if (hasStartTime()) { 1711 hash = (37 * hash) + START_TIME_FIELD_NUMBER; 1712 hash = (53 * hash) + getStartTime().hashCode(); 1713 } 1714 hash = (37 * hash) + REQUESTS_FIELD_NUMBER; 1715 hash = (53 * hash) + getRequests(); 1716 hash = (37 * hash) + ERRORS_FIELD_NUMBER; 1717 hash = (53 * hash) + getErrors(); 1718 hash = (37 * hash) + QPS_FIELD_NUMBER; 1719 hash = (53 * hash) + java.lang.Float.floatToIntBits(getQps()); 1720 hash = (37 * hash) + AVERAGE_LATENCY_FIELD_NUMBER; 1721 hash = (53 * hash) + getAverageLatency(); 1722 hash = (37 * hash) + MEMORY_USAGE_FIELD_NUMBER; 1723 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMemoryUsage()); 1724 hash = (37 * hash) + VM_STATUS_FIELD_NUMBER; 1725 hash = (53 * hash) + getVmStatus().hashCode(); 1726 hash = (37 * hash) + VM_DEBUG_ENABLED_FIELD_NUMBER; 1727 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVmDebugEnabled()); 1728 hash = (37 * hash) + VM_IP_FIELD_NUMBER; 1729 hash = (53 * hash) + getVmIp().hashCode(); 1730 hash = (37 * hash) + VM_LIVENESS_FIELD_NUMBER; 1731 hash = (53 * hash) + vmLiveness_; 1732 hash = (29 * hash) + getUnknownFields().hashCode(); 1733 memoizedHashCode = hash; 1734 return hash; 1735 } 1736 parseFrom(java.nio.ByteBuffer data)1737 public static com.google.appengine.v1.Instance parseFrom(java.nio.ByteBuffer data) 1738 throws com.google.protobuf.InvalidProtocolBufferException { 1739 return PARSER.parseFrom(data); 1740 } 1741 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1742 public static com.google.appengine.v1.Instance parseFrom( 1743 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1744 throws com.google.protobuf.InvalidProtocolBufferException { 1745 return PARSER.parseFrom(data, extensionRegistry); 1746 } 1747 parseFrom(com.google.protobuf.ByteString data)1748 public static com.google.appengine.v1.Instance parseFrom(com.google.protobuf.ByteString data) 1749 throws com.google.protobuf.InvalidProtocolBufferException { 1750 return PARSER.parseFrom(data); 1751 } 1752 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1753 public static com.google.appengine.v1.Instance parseFrom( 1754 com.google.protobuf.ByteString data, 1755 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1756 throws com.google.protobuf.InvalidProtocolBufferException { 1757 return PARSER.parseFrom(data, extensionRegistry); 1758 } 1759 parseFrom(byte[] data)1760 public static com.google.appengine.v1.Instance parseFrom(byte[] data) 1761 throws com.google.protobuf.InvalidProtocolBufferException { 1762 return PARSER.parseFrom(data); 1763 } 1764 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1765 public static com.google.appengine.v1.Instance parseFrom( 1766 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1767 throws com.google.protobuf.InvalidProtocolBufferException { 1768 return PARSER.parseFrom(data, extensionRegistry); 1769 } 1770 parseFrom(java.io.InputStream input)1771 public static com.google.appengine.v1.Instance parseFrom(java.io.InputStream input) 1772 throws java.io.IOException { 1773 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1774 } 1775 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1776 public static com.google.appengine.v1.Instance parseFrom( 1777 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1778 throws java.io.IOException { 1779 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1780 PARSER, input, extensionRegistry); 1781 } 1782 parseDelimitedFrom(java.io.InputStream input)1783 public static com.google.appengine.v1.Instance parseDelimitedFrom(java.io.InputStream input) 1784 throws java.io.IOException { 1785 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1786 } 1787 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1788 public static com.google.appengine.v1.Instance parseDelimitedFrom( 1789 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1790 throws java.io.IOException { 1791 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1792 PARSER, input, extensionRegistry); 1793 } 1794 parseFrom( com.google.protobuf.CodedInputStream input)1795 public static com.google.appengine.v1.Instance parseFrom( 1796 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1797 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1798 } 1799 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1800 public static com.google.appengine.v1.Instance parseFrom( 1801 com.google.protobuf.CodedInputStream input, 1802 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1803 throws java.io.IOException { 1804 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1805 PARSER, input, extensionRegistry); 1806 } 1807 1808 @java.lang.Override newBuilderForType()1809 public Builder newBuilderForType() { 1810 return newBuilder(); 1811 } 1812 newBuilder()1813 public static Builder newBuilder() { 1814 return DEFAULT_INSTANCE.toBuilder(); 1815 } 1816 newBuilder(com.google.appengine.v1.Instance prototype)1817 public static Builder newBuilder(com.google.appengine.v1.Instance prototype) { 1818 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1819 } 1820 1821 @java.lang.Override toBuilder()1822 public Builder toBuilder() { 1823 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1824 } 1825 1826 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1827 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1828 Builder builder = new Builder(parent); 1829 return builder; 1830 } 1831 /** 1832 * 1833 * 1834 * <pre> 1835 * An Instance resource is the computing unit that App Engine uses to 1836 * automatically scale an application. 1837 * </pre> 1838 * 1839 * Protobuf type {@code google.appengine.v1.Instance} 1840 */ 1841 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1842 implements 1843 // @@protoc_insertion_point(builder_implements:google.appengine.v1.Instance) 1844 com.google.appengine.v1.InstanceOrBuilder { getDescriptor()1845 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1846 return com.google.appengine.v1.InstanceProto 1847 .internal_static_google_appengine_v1_Instance_descriptor; 1848 } 1849 1850 @java.lang.Override 1851 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1852 internalGetFieldAccessorTable() { 1853 return com.google.appengine.v1.InstanceProto 1854 .internal_static_google_appengine_v1_Instance_fieldAccessorTable 1855 .ensureFieldAccessorsInitialized( 1856 com.google.appengine.v1.Instance.class, 1857 com.google.appengine.v1.Instance.Builder.class); 1858 } 1859 1860 // Construct using com.google.appengine.v1.Instance.newBuilder() Builder()1861 private Builder() {} 1862 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1863 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1864 super(parent); 1865 } 1866 1867 @java.lang.Override clear()1868 public Builder clear() { 1869 super.clear(); 1870 bitField0_ = 0; 1871 name_ = ""; 1872 id_ = ""; 1873 appEngineRelease_ = ""; 1874 availability_ = 0; 1875 vmName_ = ""; 1876 vmZoneName_ = ""; 1877 vmId_ = ""; 1878 startTime_ = null; 1879 if (startTimeBuilder_ != null) { 1880 startTimeBuilder_.dispose(); 1881 startTimeBuilder_ = null; 1882 } 1883 requests_ = 0; 1884 errors_ = 0; 1885 qps_ = 0F; 1886 averageLatency_ = 0; 1887 memoryUsage_ = 0L; 1888 vmStatus_ = ""; 1889 vmDebugEnabled_ = false; 1890 vmIp_ = ""; 1891 vmLiveness_ = 0; 1892 return this; 1893 } 1894 1895 @java.lang.Override getDescriptorForType()1896 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1897 return com.google.appengine.v1.InstanceProto 1898 .internal_static_google_appengine_v1_Instance_descriptor; 1899 } 1900 1901 @java.lang.Override getDefaultInstanceForType()1902 public com.google.appengine.v1.Instance getDefaultInstanceForType() { 1903 return com.google.appengine.v1.Instance.getDefaultInstance(); 1904 } 1905 1906 @java.lang.Override build()1907 public com.google.appengine.v1.Instance build() { 1908 com.google.appengine.v1.Instance result = buildPartial(); 1909 if (!result.isInitialized()) { 1910 throw newUninitializedMessageException(result); 1911 } 1912 return result; 1913 } 1914 1915 @java.lang.Override buildPartial()1916 public com.google.appengine.v1.Instance buildPartial() { 1917 com.google.appengine.v1.Instance result = new com.google.appengine.v1.Instance(this); 1918 if (bitField0_ != 0) { 1919 buildPartial0(result); 1920 } 1921 onBuilt(); 1922 return result; 1923 } 1924 buildPartial0(com.google.appengine.v1.Instance result)1925 private void buildPartial0(com.google.appengine.v1.Instance result) { 1926 int from_bitField0_ = bitField0_; 1927 if (((from_bitField0_ & 0x00000001) != 0)) { 1928 result.name_ = name_; 1929 } 1930 if (((from_bitField0_ & 0x00000002) != 0)) { 1931 result.id_ = id_; 1932 } 1933 if (((from_bitField0_ & 0x00000004) != 0)) { 1934 result.appEngineRelease_ = appEngineRelease_; 1935 } 1936 if (((from_bitField0_ & 0x00000008) != 0)) { 1937 result.availability_ = availability_; 1938 } 1939 if (((from_bitField0_ & 0x00000010) != 0)) { 1940 result.vmName_ = vmName_; 1941 } 1942 if (((from_bitField0_ & 0x00000020) != 0)) { 1943 result.vmZoneName_ = vmZoneName_; 1944 } 1945 if (((from_bitField0_ & 0x00000040) != 0)) { 1946 result.vmId_ = vmId_; 1947 } 1948 if (((from_bitField0_ & 0x00000080) != 0)) { 1949 result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); 1950 } 1951 if (((from_bitField0_ & 0x00000100) != 0)) { 1952 result.requests_ = requests_; 1953 } 1954 if (((from_bitField0_ & 0x00000200) != 0)) { 1955 result.errors_ = errors_; 1956 } 1957 if (((from_bitField0_ & 0x00000400) != 0)) { 1958 result.qps_ = qps_; 1959 } 1960 if (((from_bitField0_ & 0x00000800) != 0)) { 1961 result.averageLatency_ = averageLatency_; 1962 } 1963 if (((from_bitField0_ & 0x00001000) != 0)) { 1964 result.memoryUsage_ = memoryUsage_; 1965 } 1966 if (((from_bitField0_ & 0x00002000) != 0)) { 1967 result.vmStatus_ = vmStatus_; 1968 } 1969 if (((from_bitField0_ & 0x00004000) != 0)) { 1970 result.vmDebugEnabled_ = vmDebugEnabled_; 1971 } 1972 if (((from_bitField0_ & 0x00008000) != 0)) { 1973 result.vmIp_ = vmIp_; 1974 } 1975 if (((from_bitField0_ & 0x00010000) != 0)) { 1976 result.vmLiveness_ = vmLiveness_; 1977 } 1978 } 1979 1980 @java.lang.Override clone()1981 public Builder clone() { 1982 return super.clone(); 1983 } 1984 1985 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1986 public Builder setField( 1987 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1988 return super.setField(field, value); 1989 } 1990 1991 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1992 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1993 return super.clearField(field); 1994 } 1995 1996 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1997 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1998 return super.clearOneof(oneof); 1999 } 2000 2001 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2002 public Builder setRepeatedField( 2003 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 2004 return super.setRepeatedField(field, index, value); 2005 } 2006 2007 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2008 public Builder addRepeatedField( 2009 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2010 return super.addRepeatedField(field, value); 2011 } 2012 2013 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2014 public Builder mergeFrom(com.google.protobuf.Message other) { 2015 if (other instanceof com.google.appengine.v1.Instance) { 2016 return mergeFrom((com.google.appengine.v1.Instance) other); 2017 } else { 2018 super.mergeFrom(other); 2019 return this; 2020 } 2021 } 2022 mergeFrom(com.google.appengine.v1.Instance other)2023 public Builder mergeFrom(com.google.appengine.v1.Instance other) { 2024 if (other == com.google.appengine.v1.Instance.getDefaultInstance()) return this; 2025 if (!other.getName().isEmpty()) { 2026 name_ = other.name_; 2027 bitField0_ |= 0x00000001; 2028 onChanged(); 2029 } 2030 if (!other.getId().isEmpty()) { 2031 id_ = other.id_; 2032 bitField0_ |= 0x00000002; 2033 onChanged(); 2034 } 2035 if (!other.getAppEngineRelease().isEmpty()) { 2036 appEngineRelease_ = other.appEngineRelease_; 2037 bitField0_ |= 0x00000004; 2038 onChanged(); 2039 } 2040 if (other.availability_ != 0) { 2041 setAvailabilityValue(other.getAvailabilityValue()); 2042 } 2043 if (!other.getVmName().isEmpty()) { 2044 vmName_ = other.vmName_; 2045 bitField0_ |= 0x00000010; 2046 onChanged(); 2047 } 2048 if (!other.getVmZoneName().isEmpty()) { 2049 vmZoneName_ = other.vmZoneName_; 2050 bitField0_ |= 0x00000020; 2051 onChanged(); 2052 } 2053 if (!other.getVmId().isEmpty()) { 2054 vmId_ = other.vmId_; 2055 bitField0_ |= 0x00000040; 2056 onChanged(); 2057 } 2058 if (other.hasStartTime()) { 2059 mergeStartTime(other.getStartTime()); 2060 } 2061 if (other.getRequests() != 0) { 2062 setRequests(other.getRequests()); 2063 } 2064 if (other.getErrors() != 0) { 2065 setErrors(other.getErrors()); 2066 } 2067 if (other.getQps() != 0F) { 2068 setQps(other.getQps()); 2069 } 2070 if (other.getAverageLatency() != 0) { 2071 setAverageLatency(other.getAverageLatency()); 2072 } 2073 if (other.getMemoryUsage() != 0L) { 2074 setMemoryUsage(other.getMemoryUsage()); 2075 } 2076 if (!other.getVmStatus().isEmpty()) { 2077 vmStatus_ = other.vmStatus_; 2078 bitField0_ |= 0x00002000; 2079 onChanged(); 2080 } 2081 if (other.getVmDebugEnabled() != false) { 2082 setVmDebugEnabled(other.getVmDebugEnabled()); 2083 } 2084 if (!other.getVmIp().isEmpty()) { 2085 vmIp_ = other.vmIp_; 2086 bitField0_ |= 0x00008000; 2087 onChanged(); 2088 } 2089 if (other.vmLiveness_ != 0) { 2090 setVmLivenessValue(other.getVmLivenessValue()); 2091 } 2092 this.mergeUnknownFields(other.getUnknownFields()); 2093 onChanged(); 2094 return this; 2095 } 2096 2097 @java.lang.Override isInitialized()2098 public final boolean isInitialized() { 2099 return true; 2100 } 2101 2102 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2103 public Builder mergeFrom( 2104 com.google.protobuf.CodedInputStream input, 2105 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2106 throws java.io.IOException { 2107 if (extensionRegistry == null) { 2108 throw new java.lang.NullPointerException(); 2109 } 2110 try { 2111 boolean done = false; 2112 while (!done) { 2113 int tag = input.readTag(); 2114 switch (tag) { 2115 case 0: 2116 done = true; 2117 break; 2118 case 10: 2119 { 2120 name_ = input.readStringRequireUtf8(); 2121 bitField0_ |= 0x00000001; 2122 break; 2123 } // case 10 2124 case 18: 2125 { 2126 id_ = input.readStringRequireUtf8(); 2127 bitField0_ |= 0x00000002; 2128 break; 2129 } // case 18 2130 case 26: 2131 { 2132 appEngineRelease_ = input.readStringRequireUtf8(); 2133 bitField0_ |= 0x00000004; 2134 break; 2135 } // case 26 2136 case 32: 2137 { 2138 availability_ = input.readEnum(); 2139 bitField0_ |= 0x00000008; 2140 break; 2141 } // case 32 2142 case 42: 2143 { 2144 vmName_ = input.readStringRequireUtf8(); 2145 bitField0_ |= 0x00000010; 2146 break; 2147 } // case 42 2148 case 50: 2149 { 2150 vmZoneName_ = input.readStringRequireUtf8(); 2151 bitField0_ |= 0x00000020; 2152 break; 2153 } // case 50 2154 case 58: 2155 { 2156 vmId_ = input.readStringRequireUtf8(); 2157 bitField0_ |= 0x00000040; 2158 break; 2159 } // case 58 2160 case 66: 2161 { 2162 input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); 2163 bitField0_ |= 0x00000080; 2164 break; 2165 } // case 66 2166 case 72: 2167 { 2168 requests_ = input.readInt32(); 2169 bitField0_ |= 0x00000100; 2170 break; 2171 } // case 72 2172 case 80: 2173 { 2174 errors_ = input.readInt32(); 2175 bitField0_ |= 0x00000200; 2176 break; 2177 } // case 80 2178 case 93: 2179 { 2180 qps_ = input.readFloat(); 2181 bitField0_ |= 0x00000400; 2182 break; 2183 } // case 93 2184 case 96: 2185 { 2186 averageLatency_ = input.readInt32(); 2187 bitField0_ |= 0x00000800; 2188 break; 2189 } // case 96 2190 case 104: 2191 { 2192 memoryUsage_ = input.readInt64(); 2193 bitField0_ |= 0x00001000; 2194 break; 2195 } // case 104 2196 case 114: 2197 { 2198 vmStatus_ = input.readStringRequireUtf8(); 2199 bitField0_ |= 0x00002000; 2200 break; 2201 } // case 114 2202 case 120: 2203 { 2204 vmDebugEnabled_ = input.readBool(); 2205 bitField0_ |= 0x00004000; 2206 break; 2207 } // case 120 2208 case 130: 2209 { 2210 vmIp_ = input.readStringRequireUtf8(); 2211 bitField0_ |= 0x00008000; 2212 break; 2213 } // case 130 2214 case 136: 2215 { 2216 vmLiveness_ = input.readEnum(); 2217 bitField0_ |= 0x00010000; 2218 break; 2219 } // case 136 2220 default: 2221 { 2222 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2223 done = true; // was an endgroup tag 2224 } 2225 break; 2226 } // default: 2227 } // switch (tag) 2228 } // while (!done) 2229 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2230 throw e.unwrapIOException(); 2231 } finally { 2232 onChanged(); 2233 } // finally 2234 return this; 2235 } 2236 2237 private int bitField0_; 2238 2239 private java.lang.Object name_ = ""; 2240 /** 2241 * 2242 * 2243 * <pre> 2244 * Output only. Full path to the Instance resource in the API. 2245 * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. 2246 * </pre> 2247 * 2248 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2249 * 2250 * @return The name. 2251 */ getName()2252 public java.lang.String getName() { 2253 java.lang.Object ref = name_; 2254 if (!(ref instanceof java.lang.String)) { 2255 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2256 java.lang.String s = bs.toStringUtf8(); 2257 name_ = s; 2258 return s; 2259 } else { 2260 return (java.lang.String) ref; 2261 } 2262 } 2263 /** 2264 * 2265 * 2266 * <pre> 2267 * Output only. Full path to the Instance resource in the API. 2268 * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. 2269 * </pre> 2270 * 2271 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2272 * 2273 * @return The bytes for name. 2274 */ getNameBytes()2275 public com.google.protobuf.ByteString getNameBytes() { 2276 java.lang.Object ref = name_; 2277 if (ref instanceof String) { 2278 com.google.protobuf.ByteString b = 2279 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2280 name_ = b; 2281 return b; 2282 } else { 2283 return (com.google.protobuf.ByteString) ref; 2284 } 2285 } 2286 /** 2287 * 2288 * 2289 * <pre> 2290 * Output only. Full path to the Instance resource in the API. 2291 * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. 2292 * </pre> 2293 * 2294 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2295 * 2296 * @param value The name to set. 2297 * @return This builder for chaining. 2298 */ setName(java.lang.String value)2299 public Builder setName(java.lang.String value) { 2300 if (value == null) { 2301 throw new NullPointerException(); 2302 } 2303 name_ = value; 2304 bitField0_ |= 0x00000001; 2305 onChanged(); 2306 return this; 2307 } 2308 /** 2309 * 2310 * 2311 * <pre> 2312 * Output only. Full path to the Instance resource in the API. 2313 * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. 2314 * </pre> 2315 * 2316 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2317 * 2318 * @return This builder for chaining. 2319 */ clearName()2320 public Builder clearName() { 2321 name_ = getDefaultInstance().getName(); 2322 bitField0_ = (bitField0_ & ~0x00000001); 2323 onChanged(); 2324 return this; 2325 } 2326 /** 2327 * 2328 * 2329 * <pre> 2330 * Output only. Full path to the Instance resource in the API. 2331 * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. 2332 * </pre> 2333 * 2334 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2335 * 2336 * @param value The bytes for name to set. 2337 * @return This builder for chaining. 2338 */ setNameBytes(com.google.protobuf.ByteString value)2339 public Builder setNameBytes(com.google.protobuf.ByteString value) { 2340 if (value == null) { 2341 throw new NullPointerException(); 2342 } 2343 checkByteStringIsUtf8(value); 2344 name_ = value; 2345 bitField0_ |= 0x00000001; 2346 onChanged(); 2347 return this; 2348 } 2349 2350 private java.lang.Object id_ = ""; 2351 /** 2352 * 2353 * 2354 * <pre> 2355 * Output only. Relative name of the instance within the version. 2356 * Example: `instance-1`. 2357 * </pre> 2358 * 2359 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2360 * 2361 * @return The id. 2362 */ getId()2363 public java.lang.String getId() { 2364 java.lang.Object ref = id_; 2365 if (!(ref instanceof java.lang.String)) { 2366 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2367 java.lang.String s = bs.toStringUtf8(); 2368 id_ = s; 2369 return s; 2370 } else { 2371 return (java.lang.String) ref; 2372 } 2373 } 2374 /** 2375 * 2376 * 2377 * <pre> 2378 * Output only. Relative name of the instance within the version. 2379 * Example: `instance-1`. 2380 * </pre> 2381 * 2382 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2383 * 2384 * @return The bytes for id. 2385 */ getIdBytes()2386 public com.google.protobuf.ByteString getIdBytes() { 2387 java.lang.Object ref = id_; 2388 if (ref instanceof String) { 2389 com.google.protobuf.ByteString b = 2390 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2391 id_ = b; 2392 return b; 2393 } else { 2394 return (com.google.protobuf.ByteString) ref; 2395 } 2396 } 2397 /** 2398 * 2399 * 2400 * <pre> 2401 * Output only. Relative name of the instance within the version. 2402 * Example: `instance-1`. 2403 * </pre> 2404 * 2405 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2406 * 2407 * @param value The id to set. 2408 * @return This builder for chaining. 2409 */ setId(java.lang.String value)2410 public Builder setId(java.lang.String value) { 2411 if (value == null) { 2412 throw new NullPointerException(); 2413 } 2414 id_ = value; 2415 bitField0_ |= 0x00000002; 2416 onChanged(); 2417 return this; 2418 } 2419 /** 2420 * 2421 * 2422 * <pre> 2423 * Output only. Relative name of the instance within the version. 2424 * Example: `instance-1`. 2425 * </pre> 2426 * 2427 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2428 * 2429 * @return This builder for chaining. 2430 */ clearId()2431 public Builder clearId() { 2432 id_ = getDefaultInstance().getId(); 2433 bitField0_ = (bitField0_ & ~0x00000002); 2434 onChanged(); 2435 return this; 2436 } 2437 /** 2438 * 2439 * 2440 * <pre> 2441 * Output only. Relative name of the instance within the version. 2442 * Example: `instance-1`. 2443 * </pre> 2444 * 2445 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2446 * 2447 * @param value The bytes for id to set. 2448 * @return This builder for chaining. 2449 */ setIdBytes(com.google.protobuf.ByteString value)2450 public Builder setIdBytes(com.google.protobuf.ByteString value) { 2451 if (value == null) { 2452 throw new NullPointerException(); 2453 } 2454 checkByteStringIsUtf8(value); 2455 id_ = value; 2456 bitField0_ |= 0x00000002; 2457 onChanged(); 2458 return this; 2459 } 2460 2461 private java.lang.Object appEngineRelease_ = ""; 2462 /** 2463 * 2464 * 2465 * <pre> 2466 * Output only. App Engine release this instance is running on. 2467 * </pre> 2468 * 2469 * <code>string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2470 * 2471 * @return The appEngineRelease. 2472 */ getAppEngineRelease()2473 public java.lang.String getAppEngineRelease() { 2474 java.lang.Object ref = appEngineRelease_; 2475 if (!(ref instanceof java.lang.String)) { 2476 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2477 java.lang.String s = bs.toStringUtf8(); 2478 appEngineRelease_ = s; 2479 return s; 2480 } else { 2481 return (java.lang.String) ref; 2482 } 2483 } 2484 /** 2485 * 2486 * 2487 * <pre> 2488 * Output only. App Engine release this instance is running on. 2489 * </pre> 2490 * 2491 * <code>string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2492 * 2493 * @return The bytes for appEngineRelease. 2494 */ getAppEngineReleaseBytes()2495 public com.google.protobuf.ByteString getAppEngineReleaseBytes() { 2496 java.lang.Object ref = appEngineRelease_; 2497 if (ref instanceof String) { 2498 com.google.protobuf.ByteString b = 2499 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2500 appEngineRelease_ = b; 2501 return b; 2502 } else { 2503 return (com.google.protobuf.ByteString) ref; 2504 } 2505 } 2506 /** 2507 * 2508 * 2509 * <pre> 2510 * Output only. App Engine release this instance is running on. 2511 * </pre> 2512 * 2513 * <code>string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2514 * 2515 * @param value The appEngineRelease to set. 2516 * @return This builder for chaining. 2517 */ setAppEngineRelease(java.lang.String value)2518 public Builder setAppEngineRelease(java.lang.String value) { 2519 if (value == null) { 2520 throw new NullPointerException(); 2521 } 2522 appEngineRelease_ = value; 2523 bitField0_ |= 0x00000004; 2524 onChanged(); 2525 return this; 2526 } 2527 /** 2528 * 2529 * 2530 * <pre> 2531 * Output only. App Engine release this instance is running on. 2532 * </pre> 2533 * 2534 * <code>string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2535 * 2536 * @return This builder for chaining. 2537 */ clearAppEngineRelease()2538 public Builder clearAppEngineRelease() { 2539 appEngineRelease_ = getDefaultInstance().getAppEngineRelease(); 2540 bitField0_ = (bitField0_ & ~0x00000004); 2541 onChanged(); 2542 return this; 2543 } 2544 /** 2545 * 2546 * 2547 * <pre> 2548 * Output only. App Engine release this instance is running on. 2549 * </pre> 2550 * 2551 * <code>string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2552 * 2553 * @param value The bytes for appEngineRelease to set. 2554 * @return This builder for chaining. 2555 */ setAppEngineReleaseBytes(com.google.protobuf.ByteString value)2556 public Builder setAppEngineReleaseBytes(com.google.protobuf.ByteString value) { 2557 if (value == null) { 2558 throw new NullPointerException(); 2559 } 2560 checkByteStringIsUtf8(value); 2561 appEngineRelease_ = value; 2562 bitField0_ |= 0x00000004; 2563 onChanged(); 2564 return this; 2565 } 2566 2567 private int availability_ = 0; 2568 /** 2569 * 2570 * 2571 * <pre> 2572 * Output only. Availability of the instance. 2573 * </pre> 2574 * 2575 * <code> 2576 * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2577 * </code> 2578 * 2579 * @return The enum numeric value on the wire for availability. 2580 */ 2581 @java.lang.Override getAvailabilityValue()2582 public int getAvailabilityValue() { 2583 return availability_; 2584 } 2585 /** 2586 * 2587 * 2588 * <pre> 2589 * Output only. Availability of the instance. 2590 * </pre> 2591 * 2592 * <code> 2593 * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2594 * </code> 2595 * 2596 * @param value The enum numeric value on the wire for availability to set. 2597 * @return This builder for chaining. 2598 */ setAvailabilityValue(int value)2599 public Builder setAvailabilityValue(int value) { 2600 availability_ = value; 2601 bitField0_ |= 0x00000008; 2602 onChanged(); 2603 return this; 2604 } 2605 /** 2606 * 2607 * 2608 * <pre> 2609 * Output only. Availability of the instance. 2610 * </pre> 2611 * 2612 * <code> 2613 * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2614 * </code> 2615 * 2616 * @return The availability. 2617 */ 2618 @java.lang.Override getAvailability()2619 public com.google.appengine.v1.Instance.Availability getAvailability() { 2620 com.google.appengine.v1.Instance.Availability result = 2621 com.google.appengine.v1.Instance.Availability.forNumber(availability_); 2622 return result == null ? com.google.appengine.v1.Instance.Availability.UNRECOGNIZED : result; 2623 } 2624 /** 2625 * 2626 * 2627 * <pre> 2628 * Output only. Availability of the instance. 2629 * </pre> 2630 * 2631 * <code> 2632 * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2633 * </code> 2634 * 2635 * @param value The availability to set. 2636 * @return This builder for chaining. 2637 */ setAvailability(com.google.appengine.v1.Instance.Availability value)2638 public Builder setAvailability(com.google.appengine.v1.Instance.Availability value) { 2639 if (value == null) { 2640 throw new NullPointerException(); 2641 } 2642 bitField0_ |= 0x00000008; 2643 availability_ = value.getNumber(); 2644 onChanged(); 2645 return this; 2646 } 2647 /** 2648 * 2649 * 2650 * <pre> 2651 * Output only. Availability of the instance. 2652 * </pre> 2653 * 2654 * <code> 2655 * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2656 * </code> 2657 * 2658 * @return This builder for chaining. 2659 */ clearAvailability()2660 public Builder clearAvailability() { 2661 bitField0_ = (bitField0_ & ~0x00000008); 2662 availability_ = 0; 2663 onChanged(); 2664 return this; 2665 } 2666 2667 private java.lang.Object vmName_ = ""; 2668 /** 2669 * 2670 * 2671 * <pre> 2672 * Output only. Name of the virtual machine where this instance lives. Only applicable 2673 * for instances in App Engine flexible environment. 2674 * </pre> 2675 * 2676 * <code>string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2677 * 2678 * @return The vmName. 2679 */ getVmName()2680 public java.lang.String getVmName() { 2681 java.lang.Object ref = vmName_; 2682 if (!(ref instanceof java.lang.String)) { 2683 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2684 java.lang.String s = bs.toStringUtf8(); 2685 vmName_ = s; 2686 return s; 2687 } else { 2688 return (java.lang.String) ref; 2689 } 2690 } 2691 /** 2692 * 2693 * 2694 * <pre> 2695 * Output only. Name of the virtual machine where this instance lives. Only applicable 2696 * for instances in App Engine flexible environment. 2697 * </pre> 2698 * 2699 * <code>string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2700 * 2701 * @return The bytes for vmName. 2702 */ getVmNameBytes()2703 public com.google.protobuf.ByteString getVmNameBytes() { 2704 java.lang.Object ref = vmName_; 2705 if (ref instanceof String) { 2706 com.google.protobuf.ByteString b = 2707 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2708 vmName_ = b; 2709 return b; 2710 } else { 2711 return (com.google.protobuf.ByteString) ref; 2712 } 2713 } 2714 /** 2715 * 2716 * 2717 * <pre> 2718 * Output only. Name of the virtual machine where this instance lives. Only applicable 2719 * for instances in App Engine flexible environment. 2720 * </pre> 2721 * 2722 * <code>string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2723 * 2724 * @param value The vmName to set. 2725 * @return This builder for chaining. 2726 */ setVmName(java.lang.String value)2727 public Builder setVmName(java.lang.String value) { 2728 if (value == null) { 2729 throw new NullPointerException(); 2730 } 2731 vmName_ = value; 2732 bitField0_ |= 0x00000010; 2733 onChanged(); 2734 return this; 2735 } 2736 /** 2737 * 2738 * 2739 * <pre> 2740 * Output only. Name of the virtual machine where this instance lives. Only applicable 2741 * for instances in App Engine flexible environment. 2742 * </pre> 2743 * 2744 * <code>string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2745 * 2746 * @return This builder for chaining. 2747 */ clearVmName()2748 public Builder clearVmName() { 2749 vmName_ = getDefaultInstance().getVmName(); 2750 bitField0_ = (bitField0_ & ~0x00000010); 2751 onChanged(); 2752 return this; 2753 } 2754 /** 2755 * 2756 * 2757 * <pre> 2758 * Output only. Name of the virtual machine where this instance lives. Only applicable 2759 * for instances in App Engine flexible environment. 2760 * </pre> 2761 * 2762 * <code>string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2763 * 2764 * @param value The bytes for vmName to set. 2765 * @return This builder for chaining. 2766 */ setVmNameBytes(com.google.protobuf.ByteString value)2767 public Builder setVmNameBytes(com.google.protobuf.ByteString value) { 2768 if (value == null) { 2769 throw new NullPointerException(); 2770 } 2771 checkByteStringIsUtf8(value); 2772 vmName_ = value; 2773 bitField0_ |= 0x00000010; 2774 onChanged(); 2775 return this; 2776 } 2777 2778 private java.lang.Object vmZoneName_ = ""; 2779 /** 2780 * 2781 * 2782 * <pre> 2783 * Output only. Zone where the virtual machine is located. Only applicable for instances 2784 * in App Engine flexible environment. 2785 * </pre> 2786 * 2787 * <code>string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2788 * 2789 * @return The vmZoneName. 2790 */ getVmZoneName()2791 public java.lang.String getVmZoneName() { 2792 java.lang.Object ref = vmZoneName_; 2793 if (!(ref instanceof java.lang.String)) { 2794 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2795 java.lang.String s = bs.toStringUtf8(); 2796 vmZoneName_ = s; 2797 return s; 2798 } else { 2799 return (java.lang.String) ref; 2800 } 2801 } 2802 /** 2803 * 2804 * 2805 * <pre> 2806 * Output only. Zone where the virtual machine is located. Only applicable for instances 2807 * in App Engine flexible environment. 2808 * </pre> 2809 * 2810 * <code>string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2811 * 2812 * @return The bytes for vmZoneName. 2813 */ getVmZoneNameBytes()2814 public com.google.protobuf.ByteString getVmZoneNameBytes() { 2815 java.lang.Object ref = vmZoneName_; 2816 if (ref instanceof String) { 2817 com.google.protobuf.ByteString b = 2818 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2819 vmZoneName_ = b; 2820 return b; 2821 } else { 2822 return (com.google.protobuf.ByteString) ref; 2823 } 2824 } 2825 /** 2826 * 2827 * 2828 * <pre> 2829 * Output only. Zone where the virtual machine is located. Only applicable for instances 2830 * in App Engine flexible environment. 2831 * </pre> 2832 * 2833 * <code>string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2834 * 2835 * @param value The vmZoneName to set. 2836 * @return This builder for chaining. 2837 */ setVmZoneName(java.lang.String value)2838 public Builder setVmZoneName(java.lang.String value) { 2839 if (value == null) { 2840 throw new NullPointerException(); 2841 } 2842 vmZoneName_ = value; 2843 bitField0_ |= 0x00000020; 2844 onChanged(); 2845 return this; 2846 } 2847 /** 2848 * 2849 * 2850 * <pre> 2851 * Output only. Zone where the virtual machine is located. Only applicable for instances 2852 * in App Engine flexible environment. 2853 * </pre> 2854 * 2855 * <code>string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2856 * 2857 * @return This builder for chaining. 2858 */ clearVmZoneName()2859 public Builder clearVmZoneName() { 2860 vmZoneName_ = getDefaultInstance().getVmZoneName(); 2861 bitField0_ = (bitField0_ & ~0x00000020); 2862 onChanged(); 2863 return this; 2864 } 2865 /** 2866 * 2867 * 2868 * <pre> 2869 * Output only. Zone where the virtual machine is located. Only applicable for instances 2870 * in App Engine flexible environment. 2871 * </pre> 2872 * 2873 * <code>string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2874 * 2875 * @param value The bytes for vmZoneName to set. 2876 * @return This builder for chaining. 2877 */ setVmZoneNameBytes(com.google.protobuf.ByteString value)2878 public Builder setVmZoneNameBytes(com.google.protobuf.ByteString value) { 2879 if (value == null) { 2880 throw new NullPointerException(); 2881 } 2882 checkByteStringIsUtf8(value); 2883 vmZoneName_ = value; 2884 bitField0_ |= 0x00000020; 2885 onChanged(); 2886 return this; 2887 } 2888 2889 private java.lang.Object vmId_ = ""; 2890 /** 2891 * 2892 * 2893 * <pre> 2894 * Output only. Virtual machine ID of this instance. Only applicable for instances in 2895 * App Engine flexible environment. 2896 * </pre> 2897 * 2898 * <code>string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2899 * 2900 * @return The vmId. 2901 */ getVmId()2902 public java.lang.String getVmId() { 2903 java.lang.Object ref = vmId_; 2904 if (!(ref instanceof java.lang.String)) { 2905 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2906 java.lang.String s = bs.toStringUtf8(); 2907 vmId_ = s; 2908 return s; 2909 } else { 2910 return (java.lang.String) ref; 2911 } 2912 } 2913 /** 2914 * 2915 * 2916 * <pre> 2917 * Output only. Virtual machine ID of this instance. Only applicable for instances in 2918 * App Engine flexible environment. 2919 * </pre> 2920 * 2921 * <code>string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2922 * 2923 * @return The bytes for vmId. 2924 */ getVmIdBytes()2925 public com.google.protobuf.ByteString getVmIdBytes() { 2926 java.lang.Object ref = vmId_; 2927 if (ref instanceof String) { 2928 com.google.protobuf.ByteString b = 2929 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2930 vmId_ = b; 2931 return b; 2932 } else { 2933 return (com.google.protobuf.ByteString) ref; 2934 } 2935 } 2936 /** 2937 * 2938 * 2939 * <pre> 2940 * Output only. Virtual machine ID of this instance. Only applicable for instances in 2941 * App Engine flexible environment. 2942 * </pre> 2943 * 2944 * <code>string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2945 * 2946 * @param value The vmId to set. 2947 * @return This builder for chaining. 2948 */ setVmId(java.lang.String value)2949 public Builder setVmId(java.lang.String value) { 2950 if (value == null) { 2951 throw new NullPointerException(); 2952 } 2953 vmId_ = value; 2954 bitField0_ |= 0x00000040; 2955 onChanged(); 2956 return this; 2957 } 2958 /** 2959 * 2960 * 2961 * <pre> 2962 * Output only. Virtual machine ID of this instance. Only applicable for instances in 2963 * App Engine flexible environment. 2964 * </pre> 2965 * 2966 * <code>string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2967 * 2968 * @return This builder for chaining. 2969 */ clearVmId()2970 public Builder clearVmId() { 2971 vmId_ = getDefaultInstance().getVmId(); 2972 bitField0_ = (bitField0_ & ~0x00000040); 2973 onChanged(); 2974 return this; 2975 } 2976 /** 2977 * 2978 * 2979 * <pre> 2980 * Output only. Virtual machine ID of this instance. Only applicable for instances in 2981 * App Engine flexible environment. 2982 * </pre> 2983 * 2984 * <code>string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2985 * 2986 * @param value The bytes for vmId to set. 2987 * @return This builder for chaining. 2988 */ setVmIdBytes(com.google.protobuf.ByteString value)2989 public Builder setVmIdBytes(com.google.protobuf.ByteString value) { 2990 if (value == null) { 2991 throw new NullPointerException(); 2992 } 2993 checkByteStringIsUtf8(value); 2994 vmId_ = value; 2995 bitField0_ |= 0x00000040; 2996 onChanged(); 2997 return this; 2998 } 2999 3000 private com.google.protobuf.Timestamp startTime_; 3001 private com.google.protobuf.SingleFieldBuilderV3< 3002 com.google.protobuf.Timestamp, 3003 com.google.protobuf.Timestamp.Builder, 3004 com.google.protobuf.TimestampOrBuilder> 3005 startTimeBuilder_; 3006 /** 3007 * 3008 * 3009 * <pre> 3010 * Output only. Time that this instance was started. 3011 * @OutputOnly 3012 * </pre> 3013 * 3014 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3015 * </code> 3016 * 3017 * @return Whether the startTime field is set. 3018 */ hasStartTime()3019 public boolean hasStartTime() { 3020 return ((bitField0_ & 0x00000080) != 0); 3021 } 3022 /** 3023 * 3024 * 3025 * <pre> 3026 * Output only. Time that this instance was started. 3027 * @OutputOnly 3028 * </pre> 3029 * 3030 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3031 * </code> 3032 * 3033 * @return The startTime. 3034 */ getStartTime()3035 public com.google.protobuf.Timestamp getStartTime() { 3036 if (startTimeBuilder_ == null) { 3037 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 3038 } else { 3039 return startTimeBuilder_.getMessage(); 3040 } 3041 } 3042 /** 3043 * 3044 * 3045 * <pre> 3046 * Output only. Time that this instance was started. 3047 * @OutputOnly 3048 * </pre> 3049 * 3050 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3051 * </code> 3052 */ setStartTime(com.google.protobuf.Timestamp value)3053 public Builder setStartTime(com.google.protobuf.Timestamp value) { 3054 if (startTimeBuilder_ == null) { 3055 if (value == null) { 3056 throw new NullPointerException(); 3057 } 3058 startTime_ = value; 3059 } else { 3060 startTimeBuilder_.setMessage(value); 3061 } 3062 bitField0_ |= 0x00000080; 3063 onChanged(); 3064 return this; 3065 } 3066 /** 3067 * 3068 * 3069 * <pre> 3070 * Output only. Time that this instance was started. 3071 * @OutputOnly 3072 * </pre> 3073 * 3074 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3075 * </code> 3076 */ setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)3077 public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { 3078 if (startTimeBuilder_ == null) { 3079 startTime_ = builderForValue.build(); 3080 } else { 3081 startTimeBuilder_.setMessage(builderForValue.build()); 3082 } 3083 bitField0_ |= 0x00000080; 3084 onChanged(); 3085 return this; 3086 } 3087 /** 3088 * 3089 * 3090 * <pre> 3091 * Output only. Time that this instance was started. 3092 * @OutputOnly 3093 * </pre> 3094 * 3095 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3096 * </code> 3097 */ mergeStartTime(com.google.protobuf.Timestamp value)3098 public Builder mergeStartTime(com.google.protobuf.Timestamp value) { 3099 if (startTimeBuilder_ == null) { 3100 if (((bitField0_ & 0x00000080) != 0) 3101 && startTime_ != null 3102 && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3103 getStartTimeBuilder().mergeFrom(value); 3104 } else { 3105 startTime_ = value; 3106 } 3107 } else { 3108 startTimeBuilder_.mergeFrom(value); 3109 } 3110 bitField0_ |= 0x00000080; 3111 onChanged(); 3112 return this; 3113 } 3114 /** 3115 * 3116 * 3117 * <pre> 3118 * Output only. Time that this instance was started. 3119 * @OutputOnly 3120 * </pre> 3121 * 3122 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3123 * </code> 3124 */ clearStartTime()3125 public Builder clearStartTime() { 3126 bitField0_ = (bitField0_ & ~0x00000080); 3127 startTime_ = null; 3128 if (startTimeBuilder_ != null) { 3129 startTimeBuilder_.dispose(); 3130 startTimeBuilder_ = null; 3131 } 3132 onChanged(); 3133 return this; 3134 } 3135 /** 3136 * 3137 * 3138 * <pre> 3139 * Output only. Time that this instance was started. 3140 * @OutputOnly 3141 * </pre> 3142 * 3143 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3144 * </code> 3145 */ getStartTimeBuilder()3146 public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { 3147 bitField0_ |= 0x00000080; 3148 onChanged(); 3149 return getStartTimeFieldBuilder().getBuilder(); 3150 } 3151 /** 3152 * 3153 * 3154 * <pre> 3155 * Output only. Time that this instance was started. 3156 * @OutputOnly 3157 * </pre> 3158 * 3159 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3160 * </code> 3161 */ getStartTimeOrBuilder()3162 public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 3163 if (startTimeBuilder_ != null) { 3164 return startTimeBuilder_.getMessageOrBuilder(); 3165 } else { 3166 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 3167 } 3168 } 3169 /** 3170 * 3171 * 3172 * <pre> 3173 * Output only. Time that this instance was started. 3174 * @OutputOnly 3175 * </pre> 3176 * 3177 * <code>.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3178 * </code> 3179 */ 3180 private com.google.protobuf.SingleFieldBuilderV3< 3181 com.google.protobuf.Timestamp, 3182 com.google.protobuf.Timestamp.Builder, 3183 com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder()3184 getStartTimeFieldBuilder() { 3185 if (startTimeBuilder_ == null) { 3186 startTimeBuilder_ = 3187 new com.google.protobuf.SingleFieldBuilderV3< 3188 com.google.protobuf.Timestamp, 3189 com.google.protobuf.Timestamp.Builder, 3190 com.google.protobuf.TimestampOrBuilder>( 3191 getStartTime(), getParentForChildren(), isClean()); 3192 startTime_ = null; 3193 } 3194 return startTimeBuilder_; 3195 } 3196 3197 private int requests_; 3198 /** 3199 * 3200 * 3201 * <pre> 3202 * Output only. Number of requests since this instance was started. 3203 * </pre> 3204 * 3205 * <code>int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3206 * 3207 * @return The requests. 3208 */ 3209 @java.lang.Override getRequests()3210 public int getRequests() { 3211 return requests_; 3212 } 3213 /** 3214 * 3215 * 3216 * <pre> 3217 * Output only. Number of requests since this instance was started. 3218 * </pre> 3219 * 3220 * <code>int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3221 * 3222 * @param value The requests to set. 3223 * @return This builder for chaining. 3224 */ setRequests(int value)3225 public Builder setRequests(int value) { 3226 3227 requests_ = value; 3228 bitField0_ |= 0x00000100; 3229 onChanged(); 3230 return this; 3231 } 3232 /** 3233 * 3234 * 3235 * <pre> 3236 * Output only. Number of requests since this instance was started. 3237 * </pre> 3238 * 3239 * <code>int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3240 * 3241 * @return This builder for chaining. 3242 */ clearRequests()3243 public Builder clearRequests() { 3244 bitField0_ = (bitField0_ & ~0x00000100); 3245 requests_ = 0; 3246 onChanged(); 3247 return this; 3248 } 3249 3250 private int errors_; 3251 /** 3252 * 3253 * 3254 * <pre> 3255 * Output only. Number of errors since this instance was started. 3256 * </pre> 3257 * 3258 * <code>int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3259 * 3260 * @return The errors. 3261 */ 3262 @java.lang.Override getErrors()3263 public int getErrors() { 3264 return errors_; 3265 } 3266 /** 3267 * 3268 * 3269 * <pre> 3270 * Output only. Number of errors since this instance was started. 3271 * </pre> 3272 * 3273 * <code>int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3274 * 3275 * @param value The errors to set. 3276 * @return This builder for chaining. 3277 */ setErrors(int value)3278 public Builder setErrors(int value) { 3279 3280 errors_ = value; 3281 bitField0_ |= 0x00000200; 3282 onChanged(); 3283 return this; 3284 } 3285 /** 3286 * 3287 * 3288 * <pre> 3289 * Output only. Number of errors since this instance was started. 3290 * </pre> 3291 * 3292 * <code>int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3293 * 3294 * @return This builder for chaining. 3295 */ clearErrors()3296 public Builder clearErrors() { 3297 bitField0_ = (bitField0_ & ~0x00000200); 3298 errors_ = 0; 3299 onChanged(); 3300 return this; 3301 } 3302 3303 private float qps_; 3304 /** 3305 * 3306 * 3307 * <pre> 3308 * Output only. Average queries per second (QPS) over the last minute. 3309 * </pre> 3310 * 3311 * <code>float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3312 * 3313 * @return The qps. 3314 */ 3315 @java.lang.Override getQps()3316 public float getQps() { 3317 return qps_; 3318 } 3319 /** 3320 * 3321 * 3322 * <pre> 3323 * Output only. Average queries per second (QPS) over the last minute. 3324 * </pre> 3325 * 3326 * <code>float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3327 * 3328 * @param value The qps to set. 3329 * @return This builder for chaining. 3330 */ setQps(float value)3331 public Builder setQps(float value) { 3332 3333 qps_ = value; 3334 bitField0_ |= 0x00000400; 3335 onChanged(); 3336 return this; 3337 } 3338 /** 3339 * 3340 * 3341 * <pre> 3342 * Output only. Average queries per second (QPS) over the last minute. 3343 * </pre> 3344 * 3345 * <code>float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3346 * 3347 * @return This builder for chaining. 3348 */ clearQps()3349 public Builder clearQps() { 3350 bitField0_ = (bitField0_ & ~0x00000400); 3351 qps_ = 0F; 3352 onChanged(); 3353 return this; 3354 } 3355 3356 private int averageLatency_; 3357 /** 3358 * 3359 * 3360 * <pre> 3361 * Output only. Average latency (ms) over the last minute. 3362 * </pre> 3363 * 3364 * <code>int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3365 * 3366 * @return The averageLatency. 3367 */ 3368 @java.lang.Override getAverageLatency()3369 public int getAverageLatency() { 3370 return averageLatency_; 3371 } 3372 /** 3373 * 3374 * 3375 * <pre> 3376 * Output only. Average latency (ms) over the last minute. 3377 * </pre> 3378 * 3379 * <code>int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3380 * 3381 * @param value The averageLatency to set. 3382 * @return This builder for chaining. 3383 */ setAverageLatency(int value)3384 public Builder setAverageLatency(int value) { 3385 3386 averageLatency_ = value; 3387 bitField0_ |= 0x00000800; 3388 onChanged(); 3389 return this; 3390 } 3391 /** 3392 * 3393 * 3394 * <pre> 3395 * Output only. Average latency (ms) over the last minute. 3396 * </pre> 3397 * 3398 * <code>int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3399 * 3400 * @return This builder for chaining. 3401 */ clearAverageLatency()3402 public Builder clearAverageLatency() { 3403 bitField0_ = (bitField0_ & ~0x00000800); 3404 averageLatency_ = 0; 3405 onChanged(); 3406 return this; 3407 } 3408 3409 private long memoryUsage_; 3410 /** 3411 * 3412 * 3413 * <pre> 3414 * Output only. Total memory in use (bytes). 3415 * </pre> 3416 * 3417 * <code>int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3418 * 3419 * @return The memoryUsage. 3420 */ 3421 @java.lang.Override getMemoryUsage()3422 public long getMemoryUsage() { 3423 return memoryUsage_; 3424 } 3425 /** 3426 * 3427 * 3428 * <pre> 3429 * Output only. Total memory in use (bytes). 3430 * </pre> 3431 * 3432 * <code>int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3433 * 3434 * @param value The memoryUsage to set. 3435 * @return This builder for chaining. 3436 */ setMemoryUsage(long value)3437 public Builder setMemoryUsage(long value) { 3438 3439 memoryUsage_ = value; 3440 bitField0_ |= 0x00001000; 3441 onChanged(); 3442 return this; 3443 } 3444 /** 3445 * 3446 * 3447 * <pre> 3448 * Output only. Total memory in use (bytes). 3449 * </pre> 3450 * 3451 * <code>int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3452 * 3453 * @return This builder for chaining. 3454 */ clearMemoryUsage()3455 public Builder clearMemoryUsage() { 3456 bitField0_ = (bitField0_ & ~0x00001000); 3457 memoryUsage_ = 0L; 3458 onChanged(); 3459 return this; 3460 } 3461 3462 private java.lang.Object vmStatus_ = ""; 3463 /** 3464 * 3465 * 3466 * <pre> 3467 * Output only. Status of the virtual machine where this instance lives. Only applicable 3468 * for instances in App Engine flexible environment. 3469 * </pre> 3470 * 3471 * <code>string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3472 * 3473 * @return The vmStatus. 3474 */ getVmStatus()3475 public java.lang.String getVmStatus() { 3476 java.lang.Object ref = vmStatus_; 3477 if (!(ref instanceof java.lang.String)) { 3478 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3479 java.lang.String s = bs.toStringUtf8(); 3480 vmStatus_ = s; 3481 return s; 3482 } else { 3483 return (java.lang.String) ref; 3484 } 3485 } 3486 /** 3487 * 3488 * 3489 * <pre> 3490 * Output only. Status of the virtual machine where this instance lives. Only applicable 3491 * for instances in App Engine flexible environment. 3492 * </pre> 3493 * 3494 * <code>string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3495 * 3496 * @return The bytes for vmStatus. 3497 */ getVmStatusBytes()3498 public com.google.protobuf.ByteString getVmStatusBytes() { 3499 java.lang.Object ref = vmStatus_; 3500 if (ref instanceof String) { 3501 com.google.protobuf.ByteString b = 3502 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3503 vmStatus_ = b; 3504 return b; 3505 } else { 3506 return (com.google.protobuf.ByteString) ref; 3507 } 3508 } 3509 /** 3510 * 3511 * 3512 * <pre> 3513 * Output only. Status of the virtual machine where this instance lives. Only applicable 3514 * for instances in App Engine flexible environment. 3515 * </pre> 3516 * 3517 * <code>string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3518 * 3519 * @param value The vmStatus to set. 3520 * @return This builder for chaining. 3521 */ setVmStatus(java.lang.String value)3522 public Builder setVmStatus(java.lang.String value) { 3523 if (value == null) { 3524 throw new NullPointerException(); 3525 } 3526 vmStatus_ = value; 3527 bitField0_ |= 0x00002000; 3528 onChanged(); 3529 return this; 3530 } 3531 /** 3532 * 3533 * 3534 * <pre> 3535 * Output only. Status of the virtual machine where this instance lives. Only applicable 3536 * for instances in App Engine flexible environment. 3537 * </pre> 3538 * 3539 * <code>string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3540 * 3541 * @return This builder for chaining. 3542 */ clearVmStatus()3543 public Builder clearVmStatus() { 3544 vmStatus_ = getDefaultInstance().getVmStatus(); 3545 bitField0_ = (bitField0_ & ~0x00002000); 3546 onChanged(); 3547 return this; 3548 } 3549 /** 3550 * 3551 * 3552 * <pre> 3553 * Output only. Status of the virtual machine where this instance lives. Only applicable 3554 * for instances in App Engine flexible environment. 3555 * </pre> 3556 * 3557 * <code>string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3558 * 3559 * @param value The bytes for vmStatus to set. 3560 * @return This builder for chaining. 3561 */ setVmStatusBytes(com.google.protobuf.ByteString value)3562 public Builder setVmStatusBytes(com.google.protobuf.ByteString value) { 3563 if (value == null) { 3564 throw new NullPointerException(); 3565 } 3566 checkByteStringIsUtf8(value); 3567 vmStatus_ = value; 3568 bitField0_ |= 0x00002000; 3569 onChanged(); 3570 return this; 3571 } 3572 3573 private boolean vmDebugEnabled_; 3574 /** 3575 * 3576 * 3577 * <pre> 3578 * Output only. Whether this instance is in debug mode. Only applicable for instances in 3579 * App Engine flexible environment. 3580 * </pre> 3581 * 3582 * <code>bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3583 * 3584 * @return The vmDebugEnabled. 3585 */ 3586 @java.lang.Override getVmDebugEnabled()3587 public boolean getVmDebugEnabled() { 3588 return vmDebugEnabled_; 3589 } 3590 /** 3591 * 3592 * 3593 * <pre> 3594 * Output only. Whether this instance is in debug mode. Only applicable for instances in 3595 * App Engine flexible environment. 3596 * </pre> 3597 * 3598 * <code>bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3599 * 3600 * @param value The vmDebugEnabled to set. 3601 * @return This builder for chaining. 3602 */ setVmDebugEnabled(boolean value)3603 public Builder setVmDebugEnabled(boolean value) { 3604 3605 vmDebugEnabled_ = value; 3606 bitField0_ |= 0x00004000; 3607 onChanged(); 3608 return this; 3609 } 3610 /** 3611 * 3612 * 3613 * <pre> 3614 * Output only. Whether this instance is in debug mode. Only applicable for instances in 3615 * App Engine flexible environment. 3616 * </pre> 3617 * 3618 * <code>bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3619 * 3620 * @return This builder for chaining. 3621 */ clearVmDebugEnabled()3622 public Builder clearVmDebugEnabled() { 3623 bitField0_ = (bitField0_ & ~0x00004000); 3624 vmDebugEnabled_ = false; 3625 onChanged(); 3626 return this; 3627 } 3628 3629 private java.lang.Object vmIp_ = ""; 3630 /** 3631 * 3632 * 3633 * <pre> 3634 * Output only. The IP address of this instance. Only applicable for instances in App 3635 * Engine flexible environment. 3636 * </pre> 3637 * 3638 * <code>string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3639 * 3640 * @return The vmIp. 3641 */ getVmIp()3642 public java.lang.String getVmIp() { 3643 java.lang.Object ref = vmIp_; 3644 if (!(ref instanceof java.lang.String)) { 3645 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3646 java.lang.String s = bs.toStringUtf8(); 3647 vmIp_ = s; 3648 return s; 3649 } else { 3650 return (java.lang.String) ref; 3651 } 3652 } 3653 /** 3654 * 3655 * 3656 * <pre> 3657 * Output only. The IP address of this instance. Only applicable for instances in App 3658 * Engine flexible environment. 3659 * </pre> 3660 * 3661 * <code>string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3662 * 3663 * @return The bytes for vmIp. 3664 */ getVmIpBytes()3665 public com.google.protobuf.ByteString getVmIpBytes() { 3666 java.lang.Object ref = vmIp_; 3667 if (ref instanceof String) { 3668 com.google.protobuf.ByteString b = 3669 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3670 vmIp_ = b; 3671 return b; 3672 } else { 3673 return (com.google.protobuf.ByteString) ref; 3674 } 3675 } 3676 /** 3677 * 3678 * 3679 * <pre> 3680 * Output only. The IP address of this instance. Only applicable for instances in App 3681 * Engine flexible environment. 3682 * </pre> 3683 * 3684 * <code>string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3685 * 3686 * @param value The vmIp to set. 3687 * @return This builder for chaining. 3688 */ setVmIp(java.lang.String value)3689 public Builder setVmIp(java.lang.String value) { 3690 if (value == null) { 3691 throw new NullPointerException(); 3692 } 3693 vmIp_ = value; 3694 bitField0_ |= 0x00008000; 3695 onChanged(); 3696 return this; 3697 } 3698 /** 3699 * 3700 * 3701 * <pre> 3702 * Output only. The IP address of this instance. Only applicable for instances in App 3703 * Engine flexible environment. 3704 * </pre> 3705 * 3706 * <code>string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3707 * 3708 * @return This builder for chaining. 3709 */ clearVmIp()3710 public Builder clearVmIp() { 3711 vmIp_ = getDefaultInstance().getVmIp(); 3712 bitField0_ = (bitField0_ & ~0x00008000); 3713 onChanged(); 3714 return this; 3715 } 3716 /** 3717 * 3718 * 3719 * <pre> 3720 * Output only. The IP address of this instance. Only applicable for instances in App 3721 * Engine flexible environment. 3722 * </pre> 3723 * 3724 * <code>string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3725 * 3726 * @param value The bytes for vmIp to set. 3727 * @return This builder for chaining. 3728 */ setVmIpBytes(com.google.protobuf.ByteString value)3729 public Builder setVmIpBytes(com.google.protobuf.ByteString value) { 3730 if (value == null) { 3731 throw new NullPointerException(); 3732 } 3733 checkByteStringIsUtf8(value); 3734 vmIp_ = value; 3735 bitField0_ |= 0x00008000; 3736 onChanged(); 3737 return this; 3738 } 3739 3740 private int vmLiveness_ = 0; 3741 /** 3742 * 3743 * 3744 * <pre> 3745 * Output only. The liveness health check of this instance. Only applicable for instances 3746 * in App Engine flexible environment. 3747 * </pre> 3748 * 3749 * <code> 3750 * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3751 * </code> 3752 * 3753 * @return The enum numeric value on the wire for vmLiveness. 3754 */ 3755 @java.lang.Override getVmLivenessValue()3756 public int getVmLivenessValue() { 3757 return vmLiveness_; 3758 } 3759 /** 3760 * 3761 * 3762 * <pre> 3763 * Output only. The liveness health check of this instance. Only applicable for instances 3764 * in App Engine flexible environment. 3765 * </pre> 3766 * 3767 * <code> 3768 * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3769 * </code> 3770 * 3771 * @param value The enum numeric value on the wire for vmLiveness to set. 3772 * @return This builder for chaining. 3773 */ setVmLivenessValue(int value)3774 public Builder setVmLivenessValue(int value) { 3775 vmLiveness_ = value; 3776 bitField0_ |= 0x00010000; 3777 onChanged(); 3778 return this; 3779 } 3780 /** 3781 * 3782 * 3783 * <pre> 3784 * Output only. The liveness health check of this instance. Only applicable for instances 3785 * in App Engine flexible environment. 3786 * </pre> 3787 * 3788 * <code> 3789 * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3790 * </code> 3791 * 3792 * @return The vmLiveness. 3793 */ 3794 @java.lang.Override getVmLiveness()3795 public com.google.appengine.v1.Instance.Liveness.LivenessState getVmLiveness() { 3796 com.google.appengine.v1.Instance.Liveness.LivenessState result = 3797 com.google.appengine.v1.Instance.Liveness.LivenessState.forNumber(vmLiveness_); 3798 return result == null 3799 ? com.google.appengine.v1.Instance.Liveness.LivenessState.UNRECOGNIZED 3800 : result; 3801 } 3802 /** 3803 * 3804 * 3805 * <pre> 3806 * Output only. The liveness health check of this instance. Only applicable for instances 3807 * in App Engine flexible environment. 3808 * </pre> 3809 * 3810 * <code> 3811 * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3812 * </code> 3813 * 3814 * @param value The vmLiveness to set. 3815 * @return This builder for chaining. 3816 */ setVmLiveness(com.google.appengine.v1.Instance.Liveness.LivenessState value)3817 public Builder setVmLiveness(com.google.appengine.v1.Instance.Liveness.LivenessState value) { 3818 if (value == null) { 3819 throw new NullPointerException(); 3820 } 3821 bitField0_ |= 0x00010000; 3822 vmLiveness_ = value.getNumber(); 3823 onChanged(); 3824 return this; 3825 } 3826 /** 3827 * 3828 * 3829 * <pre> 3830 * Output only. The liveness health check of this instance. Only applicable for instances 3831 * in App Engine flexible environment. 3832 * </pre> 3833 * 3834 * <code> 3835 * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3836 * </code> 3837 * 3838 * @return This builder for chaining. 3839 */ clearVmLiveness()3840 public Builder clearVmLiveness() { 3841 bitField0_ = (bitField0_ & ~0x00010000); 3842 vmLiveness_ = 0; 3843 onChanged(); 3844 return this; 3845 } 3846 3847 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3848 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3849 return super.setUnknownFields(unknownFields); 3850 } 3851 3852 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3853 public final Builder mergeUnknownFields( 3854 final com.google.protobuf.UnknownFieldSet unknownFields) { 3855 return super.mergeUnknownFields(unknownFields); 3856 } 3857 3858 // @@protoc_insertion_point(builder_scope:google.appengine.v1.Instance) 3859 } 3860 3861 // @@protoc_insertion_point(class_scope:google.appengine.v1.Instance) 3862 private static final com.google.appengine.v1.Instance DEFAULT_INSTANCE; 3863 3864 static { 3865 DEFAULT_INSTANCE = new com.google.appengine.v1.Instance(); 3866 } 3867 getDefaultInstance()3868 public static com.google.appengine.v1.Instance getDefaultInstance() { 3869 return DEFAULT_INSTANCE; 3870 } 3871 3872 private static final com.google.protobuf.Parser<Instance> PARSER = 3873 new com.google.protobuf.AbstractParser<Instance>() { 3874 @java.lang.Override 3875 public Instance parsePartialFrom( 3876 com.google.protobuf.CodedInputStream input, 3877 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3878 throws com.google.protobuf.InvalidProtocolBufferException { 3879 Builder builder = newBuilder(); 3880 try { 3881 builder.mergeFrom(input, extensionRegistry); 3882 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3883 throw e.setUnfinishedMessage(builder.buildPartial()); 3884 } catch (com.google.protobuf.UninitializedMessageException e) { 3885 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3886 } catch (java.io.IOException e) { 3887 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3888 .setUnfinishedMessage(builder.buildPartial()); 3889 } 3890 return builder.buildPartial(); 3891 } 3892 }; 3893 parser()3894 public static com.google.protobuf.Parser<Instance> parser() { 3895 return PARSER; 3896 } 3897 3898 @java.lang.Override getParserForType()3899 public com.google.protobuf.Parser<Instance> getParserForType() { 3900 return PARSER; 3901 } 3902 3903 @java.lang.Override getDefaultInstanceForType()3904 public com.google.appengine.v1.Instance getDefaultInstanceForType() { 3905 return DEFAULT_INSTANCE; 3906 } 3907 } 3908