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

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

There is a newer version: 2.54.0
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/appengine/v1/instance.proto

package com.google.appengine.v1;

/**
 *
 *
 * 
 * An Instance resource is the computing unit that App Engine uses to
 * automatically scale an application.
 * 
* * Protobuf type {@code google.appengine.v1.Instance} */ public final class Instance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.appengine.v1.Instance) InstanceOrBuilder { private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Instance() { name_ = ""; id_ = ""; appEngineRelease_ = ""; availability_ = 0; vmName_ = ""; vmZoneName_ = ""; vmId_ = ""; vmStatus_ = ""; vmIp_ = ""; vmLiveness_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); appEngineRelease_ = s; break; } case 32: { int rawValue = input.readEnum(); availability_ = rawValue; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); vmName_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); vmZoneName_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); vmId_ = s; break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (startTime_ != null) { subBuilder = startTime_.toBuilder(); } startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startTime_); startTime_ = subBuilder.buildPartial(); } break; } case 72: { requests_ = input.readInt32(); break; } case 80: { errors_ = input.readInt32(); break; } case 93: { qps_ = input.readFloat(); break; } case 96: { averageLatency_ = input.readInt32(); break; } case 104: { memoryUsage_ = input.readInt64(); break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); vmStatus_ = s; break; } case 120: { vmDebugEnabled_ = input.readBool(); break; } case 130: { java.lang.String s = input.readStringRequireUtf8(); vmIp_ = s; break; } case 136: { int rawValue = input.readEnum(); vmLiveness_ = rawValue; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.Instance.class, com.google.appengine.v1.Instance.Builder.class); } /** * * *
   * Availability of the instance.
   * 
* * Protobuf enum {@code google.appengine.v1.Instance.Availability} */ public enum Availability implements com.google.protobuf.ProtocolMessageEnum { /** UNSPECIFIED = 0; */ UNSPECIFIED(0), /** RESIDENT = 1; */ RESIDENT(1), /** DYNAMIC = 2; */ DYNAMIC(2), UNRECOGNIZED(-1), ; /** UNSPECIFIED = 0; */ public static final int UNSPECIFIED_VALUE = 0; /** RESIDENT = 1; */ public static final int RESIDENT_VALUE = 1; /** DYNAMIC = 2; */ public static final int DYNAMIC_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Availability valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Availability forNumber(int value) { switch (value) { case 0: return UNSPECIFIED; case 1: return RESIDENT; case 2: return DYNAMIC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Availability findValueByNumber(int number) { return Availability.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.appengine.v1.Instance.getDescriptor().getEnumTypes().get(0); } private static final Availability[] VALUES = values(); public static Availability valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Availability(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.appengine.v1.Instance.Availability) } public interface LivenessOrBuilder extends // @@protoc_insertion_point(interface_extends:google.appengine.v1.Instance.Liveness) com.google.protobuf.MessageOrBuilder {} /** * * *
   * Wrapper for LivenessState enum.
   * 
* * Protobuf type {@code google.appengine.v1.Instance.Liveness} */ public static final class Liveness extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.appengine.v1.Instance.Liveness) LivenessOrBuilder { private static final long serialVersionUID = 0L; // Use Liveness.newBuilder() to construct. private Liveness(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Liveness() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Liveness(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Liveness( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_Liveness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_Liveness_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.Instance.Liveness.class, com.google.appengine.v1.Instance.Liveness.Builder.class); } /** * * *
     * Liveness health check status for Flex instances.
     * 
* * Protobuf enum {@code google.appengine.v1.Instance.Liveness.LivenessState} */ public enum LivenessState implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * There is no liveness health check for the instance. Only applicable for
       * instances in App Engine standard environment.
       * 
* * LIVENESS_STATE_UNSPECIFIED = 0; */ LIVENESS_STATE_UNSPECIFIED(0), /** * * *
       * The health checking system is aware of the instance but its health is
       * not known at the moment.
       * 
* * UNKNOWN = 1; */ UNKNOWN(1), /** * * *
       * The instance is reachable i.e. a connection to the application health
       * checking endpoint can be established, and conforms to the requirements
       * defined by the health check.
       * 
* * HEALTHY = 2; */ HEALTHY(2), /** * * *
       * The instance is reachable, but does not conform to the requirements
       * defined by the health check.
       * 
* * UNHEALTHY = 3; */ UNHEALTHY(3), /** * * *
       * The instance is being drained. The existing connections to the instance
       * have time to complete, but the new ones are being refused.
       * 
* * DRAINING = 4; */ DRAINING(4), /** * * *
       * The instance is unreachable i.e. a connection to the application health
       * checking endpoint cannot be established, or the server does not respond
       * within the specified timeout.
       * 
* * TIMEOUT = 5; */ TIMEOUT(5), UNRECOGNIZED(-1), ; /** * * *
       * There is no liveness health check for the instance. Only applicable for
       * instances in App Engine standard environment.
       * 
* * LIVENESS_STATE_UNSPECIFIED = 0; */ public static final int LIVENESS_STATE_UNSPECIFIED_VALUE = 0; /** * * *
       * The health checking system is aware of the instance but its health is
       * not known at the moment.
       * 
* * UNKNOWN = 1; */ public static final int UNKNOWN_VALUE = 1; /** * * *
       * The instance is reachable i.e. a connection to the application health
       * checking endpoint can be established, and conforms to the requirements
       * defined by the health check.
       * 
* * HEALTHY = 2; */ public static final int HEALTHY_VALUE = 2; /** * * *
       * The instance is reachable, but does not conform to the requirements
       * defined by the health check.
       * 
* * UNHEALTHY = 3; */ public static final int UNHEALTHY_VALUE = 3; /** * * *
       * The instance is being drained. The existing connections to the instance
       * have time to complete, but the new ones are being refused.
       * 
* * DRAINING = 4; */ public static final int DRAINING_VALUE = 4; /** * * *
       * The instance is unreachable i.e. a connection to the application health
       * checking endpoint cannot be established, or the server does not respond
       * within the specified timeout.
       * 
* * TIMEOUT = 5; */ public static final int TIMEOUT_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LivenessState valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static LivenessState forNumber(int value) { switch (value) { case 0: return LIVENESS_STATE_UNSPECIFIED; case 1: return UNKNOWN; case 2: return HEALTHY; case 3: return UNHEALTHY; case 4: return DRAINING; case 5: return TIMEOUT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LivenessState findValueByNumber(int number) { return LivenessState.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.appengine.v1.Instance.Liveness.getDescriptor().getEnumTypes().get(0); } private static final LivenessState[] VALUES = values(); public static LivenessState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LivenessState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.appengine.v1.Instance.Liveness.LivenessState) } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.appengine.v1.Instance.Liveness)) { return super.equals(obj); } com.google.appengine.v1.Instance.Liveness other = (com.google.appengine.v1.Instance.Liveness) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.v1.Instance.Liveness parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Instance.Liveness parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.Instance.Liveness parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Instance.Liveness parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.Instance.Liveness parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Instance.Liveness parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.Instance.Liveness parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.Instance.Liveness parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.Instance.Liveness parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.appengine.v1.Instance.Liveness parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.Instance.Liveness parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.Instance.Liveness parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.appengine.v1.Instance.Liveness prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Wrapper for LivenessState enum.
     * 
* * Protobuf type {@code google.appengine.v1.Instance.Liveness} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.appengine.v1.Instance.Liveness) com.google.appengine.v1.Instance.LivenessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_Liveness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_Liveness_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.Instance.Liveness.class, com.google.appengine.v1.Instance.Liveness.Builder.class); } // Construct using com.google.appengine.v1.Instance.Liveness.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_Liveness_descriptor; } @java.lang.Override public com.google.appengine.v1.Instance.Liveness getDefaultInstanceForType() { return com.google.appengine.v1.Instance.Liveness.getDefaultInstance(); } @java.lang.Override public com.google.appengine.v1.Instance.Liveness build() { com.google.appengine.v1.Instance.Liveness result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.v1.Instance.Liveness buildPartial() { com.google.appengine.v1.Instance.Liveness result = new com.google.appengine.v1.Instance.Liveness(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.appengine.v1.Instance.Liveness) { return mergeFrom((com.google.appengine.v1.Instance.Liveness) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.v1.Instance.Liveness other) { if (other == com.google.appengine.v1.Instance.Liveness.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.appengine.v1.Instance.Liveness parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.appengine.v1.Instance.Liveness) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.appengine.v1.Instance.Liveness) } // @@protoc_insertion_point(class_scope:google.appengine.v1.Instance.Liveness) private static final com.google.appengine.v1.Instance.Liveness DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.v1.Instance.Liveness(); } public static com.google.appengine.v1.Instance.Liveness getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Liveness parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Liveness(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.appengine.v1.Instance.Liveness getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
   * Output only. Full path to the Instance resource in the API.
   * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Output only. Full path to the Instance resource in the API.
   * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** * * *
   * Output only. Relative name of the instance within the version.
   * Example: `instance-1`.
   * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * * *
   * Output only. Relative name of the instance within the version.
   * Example: `instance-1`.
   * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APP_ENGINE_RELEASE_FIELD_NUMBER = 3; private volatile java.lang.Object appEngineRelease_; /** * * *
   * Output only. App Engine release this instance is running on.
   * 
* * string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The appEngineRelease. */ @java.lang.Override public java.lang.String getAppEngineRelease() { java.lang.Object ref = appEngineRelease_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appEngineRelease_ = s; return s; } } /** * * *
   * Output only. App Engine release this instance is running on.
   * 
* * string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for appEngineRelease. */ @java.lang.Override public com.google.protobuf.ByteString getAppEngineReleaseBytes() { java.lang.Object ref = appEngineRelease_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); appEngineRelease_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AVAILABILITY_FIELD_NUMBER = 4; private int availability_; /** * * *
   * Output only. Availability of the instance.
   * 
* * * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for availability. */ @java.lang.Override public int getAvailabilityValue() { return availability_; } /** * * *
   * Output only. Availability of the instance.
   * 
* * * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The availability. */ @java.lang.Override public com.google.appengine.v1.Instance.Availability getAvailability() { @SuppressWarnings("deprecation") com.google.appengine.v1.Instance.Availability result = com.google.appengine.v1.Instance.Availability.valueOf(availability_); return result == null ? com.google.appengine.v1.Instance.Availability.UNRECOGNIZED : result; } public static final int VM_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object vmName_; /** * * *
   * Output only. Name of the virtual machine where this instance lives. Only applicable
   * for instances in App Engine flexible environment.
   * 
* * string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmName. */ @java.lang.Override public java.lang.String getVmName() { java.lang.Object ref = vmName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmName_ = s; return s; } } /** * * *
   * Output only. Name of the virtual machine where this instance lives. Only applicable
   * for instances in App Engine flexible environment.
   * 
* * string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmName. */ @java.lang.Override public com.google.protobuf.ByteString getVmNameBytes() { java.lang.Object ref = vmName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VM_ZONE_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object vmZoneName_; /** * * *
   * Output only. Zone where the virtual machine is located. Only applicable for instances
   * in App Engine flexible environment.
   * 
* * string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmZoneName. */ @java.lang.Override public java.lang.String getVmZoneName() { java.lang.Object ref = vmZoneName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZoneName_ = s; return s; } } /** * * *
   * Output only. Zone where the virtual machine is located. Only applicable for instances
   * in App Engine flexible environment.
   * 
* * string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmZoneName. */ @java.lang.Override public com.google.protobuf.ByteString getVmZoneNameBytes() { java.lang.Object ref = vmZoneName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmZoneName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VM_ID_FIELD_NUMBER = 7; private volatile java.lang.Object vmId_; /** * * *
   * Output only. Virtual machine ID of this instance. Only applicable for instances in
   * App Engine flexible environment.
   * 
* * string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmId. */ @java.lang.Override public java.lang.String getVmId() { java.lang.Object ref = vmId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmId_ = s; return s; } } /** * * *
   * Output only. Virtual machine ID of this instance. Only applicable for instances in
   * App Engine flexible environment.
   * 
* * string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmId. */ @java.lang.Override public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp startTime_; /** * * *
   * Output only. Time that this instance was started.
   * @OutputOnly
   * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return startTime_ != null; } /** * * *
   * Output only. Time that this instance was started.
   * @OutputOnly
   * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * * *
   * Output only. Time that this instance was started.
   * @OutputOnly
   * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); } public static final int REQUESTS_FIELD_NUMBER = 9; private int requests_; /** * * *
   * Output only. Number of requests since this instance was started.
   * 
* * int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The requests. */ @java.lang.Override public int getRequests() { return requests_; } public static final int ERRORS_FIELD_NUMBER = 10; private int errors_; /** * * *
   * Output only. Number of errors since this instance was started.
   * 
* * int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The errors. */ @java.lang.Override public int getErrors() { return errors_; } public static final int QPS_FIELD_NUMBER = 11; private float qps_; /** * * *
   * Output only. Average queries per second (QPS) over the last minute.
   * 
* * float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The qps. */ @java.lang.Override public float getQps() { return qps_; } public static final int AVERAGE_LATENCY_FIELD_NUMBER = 12; private int averageLatency_; /** * * *
   * Output only. Average latency (ms) over the last minute.
   * 
* * int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The averageLatency. */ @java.lang.Override public int getAverageLatency() { return averageLatency_; } public static final int MEMORY_USAGE_FIELD_NUMBER = 13; private long memoryUsage_; /** * * *
   * Output only. Total memory in use (bytes).
   * 
* * int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The memoryUsage. */ @java.lang.Override public long getMemoryUsage() { return memoryUsage_; } public static final int VM_STATUS_FIELD_NUMBER = 14; private volatile java.lang.Object vmStatus_; /** * * *
   * Output only. Status of the virtual machine where this instance lives. Only applicable
   * for instances in App Engine flexible environment.
   * 
* * string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmStatus. */ @java.lang.Override public java.lang.String getVmStatus() { java.lang.Object ref = vmStatus_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmStatus_ = s; return s; } } /** * * *
   * Output only. Status of the virtual machine where this instance lives. Only applicable
   * for instances in App Engine flexible environment.
   * 
* * string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmStatus. */ @java.lang.Override public com.google.protobuf.ByteString getVmStatusBytes() { java.lang.Object ref = vmStatus_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmStatus_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VM_DEBUG_ENABLED_FIELD_NUMBER = 15; private boolean vmDebugEnabled_; /** * * *
   * Output only. Whether this instance is in debug mode. Only applicable for instances in
   * App Engine flexible environment.
   * 
* * bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmDebugEnabled. */ @java.lang.Override public boolean getVmDebugEnabled() { return vmDebugEnabled_; } public static final int VM_IP_FIELD_NUMBER = 16; private volatile java.lang.Object vmIp_; /** * * *
   * Output only. The IP address of this instance. Only applicable for instances in App
   * Engine flexible environment.
   * 
* * string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmIp. */ @java.lang.Override public java.lang.String getVmIp() { java.lang.Object ref = vmIp_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmIp_ = s; return s; } } /** * * *
   * Output only. The IP address of this instance. Only applicable for instances in App
   * Engine flexible environment.
   * 
* * string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmIp. */ @java.lang.Override public com.google.protobuf.ByteString getVmIpBytes() { java.lang.Object ref = vmIp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VM_LIVENESS_FIELD_NUMBER = 17; private int vmLiveness_; /** * * *
   * Output only. The liveness health check of this instance. Only applicable for instances
   * in App Engine flexible environment.
   * 
* * * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for vmLiveness. */ @java.lang.Override public int getVmLivenessValue() { return vmLiveness_; } /** * * *
   * Output only. The liveness health check of this instance. Only applicable for instances
   * in App Engine flexible environment.
   * 
* * * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The vmLiveness. */ @java.lang.Override public com.google.appengine.v1.Instance.Liveness.LivenessState getVmLiveness() { @SuppressWarnings("deprecation") com.google.appengine.v1.Instance.Liveness.LivenessState result = com.google.appengine.v1.Instance.Liveness.LivenessState.valueOf(vmLiveness_); return result == null ? com.google.appengine.v1.Instance.Liveness.LivenessState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (!getAppEngineReleaseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appEngineRelease_); } if (availability_ != com.google.appengine.v1.Instance.Availability.UNSPECIFIED.getNumber()) { output.writeEnum(4, availability_); } if (!getVmNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, vmName_); } if (!getVmZoneNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vmZoneName_); } if (!getVmIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, vmId_); } if (startTime_ != null) { output.writeMessage(8, getStartTime()); } if (requests_ != 0) { output.writeInt32(9, requests_); } if (errors_ != 0) { output.writeInt32(10, errors_); } if (qps_ != 0F) { output.writeFloat(11, qps_); } if (averageLatency_ != 0) { output.writeInt32(12, averageLatency_); } if (memoryUsage_ != 0L) { output.writeInt64(13, memoryUsage_); } if (!getVmStatusBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, vmStatus_); } if (vmDebugEnabled_ != false) { output.writeBool(15, vmDebugEnabled_); } if (!getVmIpBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, vmIp_); } if (vmLiveness_ != com.google.appengine.v1.Instance.Liveness.LivenessState.LIVENESS_STATE_UNSPECIFIED .getNumber()) { output.writeEnum(17, vmLiveness_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (!getAppEngineReleaseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appEngineRelease_); } if (availability_ != com.google.appengine.v1.Instance.Availability.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, availability_); } if (!getVmNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, vmName_); } if (!getVmZoneNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vmZoneName_); } if (!getVmIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vmId_); } if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStartTime()); } if (requests_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, requests_); } if (errors_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, errors_); } if (qps_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(11, qps_); } if (averageLatency_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, averageLatency_); } if (memoryUsage_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, memoryUsage_); } if (!getVmStatusBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, vmStatus_); } if (vmDebugEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, vmDebugEnabled_); } if (!getVmIpBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, vmIp_); } if (vmLiveness_ != com.google.appengine.v1.Instance.Liveness.LivenessState.LIVENESS_STATE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, vmLiveness_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.appengine.v1.Instance)) { return super.equals(obj); } com.google.appengine.v1.Instance other = (com.google.appengine.v1.Instance) obj; if (!getName().equals(other.getName())) return false; if (!getId().equals(other.getId())) return false; if (!getAppEngineRelease().equals(other.getAppEngineRelease())) return false; if (availability_ != other.availability_) return false; if (!getVmName().equals(other.getVmName())) return false; if (!getVmZoneName().equals(other.getVmZoneName())) return false; if (!getVmId().equals(other.getVmId())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; } if (getRequests() != other.getRequests()) return false; if (getErrors() != other.getErrors()) return false; if (java.lang.Float.floatToIntBits(getQps()) != java.lang.Float.floatToIntBits(other.getQps())) return false; if (getAverageLatency() != other.getAverageLatency()) return false; if (getMemoryUsage() != other.getMemoryUsage()) return false; if (!getVmStatus().equals(other.getVmStatus())) return false; if (getVmDebugEnabled() != other.getVmDebugEnabled()) return false; if (!getVmIp().equals(other.getVmIp())) return false; if (vmLiveness_ != other.vmLiveness_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + APP_ENGINE_RELEASE_FIELD_NUMBER; hash = (53 * hash) + getAppEngineRelease().hashCode(); hash = (37 * hash) + AVAILABILITY_FIELD_NUMBER; hash = (53 * hash) + availability_; hash = (37 * hash) + VM_NAME_FIELD_NUMBER; hash = (53 * hash) + getVmName().hashCode(); hash = (37 * hash) + VM_ZONE_NAME_FIELD_NUMBER; hash = (53 * hash) + getVmZoneName().hashCode(); hash = (37 * hash) + VM_ID_FIELD_NUMBER; hash = (53 * hash) + getVmId().hashCode(); if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRequests(); hash = (37 * hash) + ERRORS_FIELD_NUMBER; hash = (53 * hash) + getErrors(); hash = (37 * hash) + QPS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getQps()); hash = (37 * hash) + AVERAGE_LATENCY_FIELD_NUMBER; hash = (53 * hash) + getAverageLatency(); hash = (37 * hash) + MEMORY_USAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMemoryUsage()); hash = (37 * hash) + VM_STATUS_FIELD_NUMBER; hash = (53 * hash) + getVmStatus().hashCode(); hash = (37 * hash) + VM_DEBUG_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVmDebugEnabled()); hash = (37 * hash) + VM_IP_FIELD_NUMBER; hash = (53 * hash) + getVmIp().hashCode(); hash = (37 * hash) + VM_LIVENESS_FIELD_NUMBER; hash = (53 * hash) + vmLiveness_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.v1.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Instance parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.Instance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Instance parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.Instance parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.Instance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.appengine.v1.Instance parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.Instance parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.appengine.v1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * An Instance resource is the computing unit that App Engine uses to
   * automatically scale an application.
   * 
* * Protobuf type {@code google.appengine.v1.Instance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.appengine.v1.Instance) com.google.appengine.v1.InstanceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.Instance.class, com.google.appengine.v1.Instance.Builder.class); } // Construct using com.google.appengine.v1.Instance.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; id_ = ""; appEngineRelease_ = ""; availability_ = 0; vmName_ = ""; vmZoneName_ = ""; vmId_ = ""; if (startTimeBuilder_ == null) { startTime_ = null; } else { startTime_ = null; startTimeBuilder_ = null; } requests_ = 0; errors_ = 0; qps_ = 0F; averageLatency_ = 0; memoryUsage_ = 0L; vmStatus_ = ""; vmDebugEnabled_ = false; vmIp_ = ""; vmLiveness_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.InstanceProto .internal_static_google_appengine_v1_Instance_descriptor; } @java.lang.Override public com.google.appengine.v1.Instance getDefaultInstanceForType() { return com.google.appengine.v1.Instance.getDefaultInstance(); } @java.lang.Override public com.google.appengine.v1.Instance build() { com.google.appengine.v1.Instance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.v1.Instance buildPartial() { com.google.appengine.v1.Instance result = new com.google.appengine.v1.Instance(this); result.name_ = name_; result.id_ = id_; result.appEngineRelease_ = appEngineRelease_; result.availability_ = availability_; result.vmName_ = vmName_; result.vmZoneName_ = vmZoneName_; result.vmId_ = vmId_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } result.requests_ = requests_; result.errors_ = errors_; result.qps_ = qps_; result.averageLatency_ = averageLatency_; result.memoryUsage_ = memoryUsage_; result.vmStatus_ = vmStatus_; result.vmDebugEnabled_ = vmDebugEnabled_; result.vmIp_ = vmIp_; result.vmLiveness_ = vmLiveness_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.appengine.v1.Instance) { return mergeFrom((com.google.appengine.v1.Instance) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.v1.Instance other) { if (other == com.google.appengine.v1.Instance.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getAppEngineRelease().isEmpty()) { appEngineRelease_ = other.appEngineRelease_; onChanged(); } if (other.availability_ != 0) { setAvailabilityValue(other.getAvailabilityValue()); } if (!other.getVmName().isEmpty()) { vmName_ = other.vmName_; onChanged(); } if (!other.getVmZoneName().isEmpty()) { vmZoneName_ = other.vmZoneName_; onChanged(); } if (!other.getVmId().isEmpty()) { vmId_ = other.vmId_; onChanged(); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.getRequests() != 0) { setRequests(other.getRequests()); } if (other.getErrors() != 0) { setErrors(other.getErrors()); } if (other.getQps() != 0F) { setQps(other.getQps()); } if (other.getAverageLatency() != 0) { setAverageLatency(other.getAverageLatency()); } if (other.getMemoryUsage() != 0L) { setMemoryUsage(other.getMemoryUsage()); } if (!other.getVmStatus().isEmpty()) { vmStatus_ = other.vmStatus_; onChanged(); } if (other.getVmDebugEnabled() != false) { setVmDebugEnabled(other.getVmDebugEnabled()); } if (!other.getVmIp().isEmpty()) { vmIp_ = other.vmIp_; onChanged(); } if (other.vmLiveness_ != 0) { setVmLivenessValue(other.getVmLivenessValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.appengine.v1.Instance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.appengine.v1.Instance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * * *
     * Output only. Full path to the Instance resource in the API.
     * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Full path to the Instance resource in the API.
     * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Full path to the Instance resource in the API.
     * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * * *
     * Output only. Full path to the Instance resource in the API.
     * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
     * Output only. Full path to the Instance resource in the API.
     * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object id_ = ""; /** * * *
     * Output only. Relative name of the instance within the version.
     * Example: `instance-1`.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Relative name of the instance within the version.
     * Example: `instance-1`.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Relative name of the instance within the version.
     * Example: `instance-1`.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * * *
     * Output only. Relative name of the instance within the version.
     * Example: `instance-1`.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * * *
     * Output only. Relative name of the instance within the version.
     * Example: `instance-1`.
     * 
* * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object appEngineRelease_ = ""; /** * * *
     * Output only. App Engine release this instance is running on.
     * 
* * string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The appEngineRelease. */ public java.lang.String getAppEngineRelease() { java.lang.Object ref = appEngineRelease_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appEngineRelease_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. App Engine release this instance is running on.
     * 
* * string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for appEngineRelease. */ public com.google.protobuf.ByteString getAppEngineReleaseBytes() { java.lang.Object ref = appEngineRelease_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); appEngineRelease_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. App Engine release this instance is running on.
     * 
* * string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The appEngineRelease to set. * @return This builder for chaining. */ public Builder setAppEngineRelease(java.lang.String value) { if (value == null) { throw new NullPointerException(); } appEngineRelease_ = value; onChanged(); return this; } /** * * *
     * Output only. App Engine release this instance is running on.
     * 
* * string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearAppEngineRelease() { appEngineRelease_ = getDefaultInstance().getAppEngineRelease(); onChanged(); return this; } /** * * *
     * Output only. App Engine release this instance is running on.
     * 
* * string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for appEngineRelease to set. * @return This builder for chaining. */ public Builder setAppEngineReleaseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appEngineRelease_ = value; onChanged(); return this; } private int availability_ = 0; /** * * *
     * Output only. Availability of the instance.
     * 
* * * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for availability. */ @java.lang.Override public int getAvailabilityValue() { return availability_; } /** * * *
     * Output only. Availability of the instance.
     * 
* * * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for availability to set. * @return This builder for chaining. */ public Builder setAvailabilityValue(int value) { availability_ = value; onChanged(); return this; } /** * * *
     * Output only. Availability of the instance.
     * 
* * * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The availability. */ @java.lang.Override public com.google.appengine.v1.Instance.Availability getAvailability() { @SuppressWarnings("deprecation") com.google.appengine.v1.Instance.Availability result = com.google.appengine.v1.Instance.Availability.valueOf(availability_); return result == null ? com.google.appengine.v1.Instance.Availability.UNRECOGNIZED : result; } /** * * *
     * Output only. Availability of the instance.
     * 
* * * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The availability to set. * @return This builder for chaining. */ public Builder setAvailability(com.google.appengine.v1.Instance.Availability value) { if (value == null) { throw new NullPointerException(); } availability_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Availability of the instance.
     * 
* * * .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearAvailability() { availability_ = 0; onChanged(); return this; } private java.lang.Object vmName_ = ""; /** * * *
     * Output only. Name of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmName. */ public java.lang.String getVmName() { java.lang.Object ref = vmName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Name of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmName. */ public com.google.protobuf.ByteString getVmNameBytes() { java.lang.Object ref = vmName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Name of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The vmName to set. * @return This builder for chaining. */ public Builder setVmName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } vmName_ = value; onChanged(); return this; } /** * * *
     * Output only. Name of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVmName() { vmName_ = getDefaultInstance().getVmName(); onChanged(); return this; } /** * * *
     * Output only. Name of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for vmName to set. * @return This builder for chaining. */ public Builder setVmNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vmName_ = value; onChanged(); return this; } private java.lang.Object vmZoneName_ = ""; /** * * *
     * Output only. Zone where the virtual machine is located. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmZoneName. */ public java.lang.String getVmZoneName() { java.lang.Object ref = vmZoneName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZoneName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Zone where the virtual machine is located. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmZoneName. */ public com.google.protobuf.ByteString getVmZoneNameBytes() { java.lang.Object ref = vmZoneName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmZoneName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Zone where the virtual machine is located. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The vmZoneName to set. * @return This builder for chaining. */ public Builder setVmZoneName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } vmZoneName_ = value; onChanged(); return this; } /** * * *
     * Output only. Zone where the virtual machine is located. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVmZoneName() { vmZoneName_ = getDefaultInstance().getVmZoneName(); onChanged(); return this; } /** * * *
     * Output only. Zone where the virtual machine is located. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for vmZoneName to set. * @return This builder for chaining. */ public Builder setVmZoneNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vmZoneName_ = value; onChanged(); return this; } private java.lang.Object vmId_ = ""; /** * * *
     * Output only. Virtual machine ID of this instance. Only applicable for instances in
     * App Engine flexible environment.
     * 
* * string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmId. */ public java.lang.String getVmId() { java.lang.Object ref = vmId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Virtual machine ID of this instance. Only applicable for instances in
     * App Engine flexible environment.
     * 
* * string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmId. */ public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Virtual machine ID of this instance. Only applicable for instances in
     * App Engine flexible environment.
     * 
* * string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The vmId to set. * @return This builder for chaining. */ public Builder setVmId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } vmId_ = value; onChanged(); return this; } /** * * *
     * Output only. Virtual machine ID of this instance. Only applicable for instances in
     * App Engine flexible environment.
     * 
* * string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVmId() { vmId_ = getDefaultInstance().getVmId(); onChanged(); return this; } /** * * *
     * Output only. Virtual machine ID of this instance. Only applicable for instances in
     * App Engine flexible environment.
     * 
* * string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for vmId to set. * @return This builder for chaining. */ public Builder setVmIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vmId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; onChanged(); } else { startTimeBuilder_.setMessage(value); } return this; } /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } onChanged(); } else { startTimeBuilder_.mergeFrom(value); } return this; } /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTime_ = null; startTimeBuilder_ = null; } return this; } /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * * *
     * Output only. Time that this instance was started.
     * @OutputOnly
     * 
* * .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private int requests_; /** * * *
     * Output only. Number of requests since this instance was started.
     * 
* * int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The requests. */ @java.lang.Override public int getRequests() { return requests_; } /** * * *
     * Output only. Number of requests since this instance was started.
     * 
* * int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The requests to set. * @return This builder for chaining. */ public Builder setRequests(int value) { requests_ = value; onChanged(); return this; } /** * * *
     * Output only. Number of requests since this instance was started.
     * 
* * int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearRequests() { requests_ = 0; onChanged(); return this; } private int errors_; /** * * *
     * Output only. Number of errors since this instance was started.
     * 
* * int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The errors. */ @java.lang.Override public int getErrors() { return errors_; } /** * * *
     * Output only. Number of errors since this instance was started.
     * 
* * int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The errors to set. * @return This builder for chaining. */ public Builder setErrors(int value) { errors_ = value; onChanged(); return this; } /** * * *
     * Output only. Number of errors since this instance was started.
     * 
* * int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearErrors() { errors_ = 0; onChanged(); return this; } private float qps_; /** * * *
     * Output only. Average queries per second (QPS) over the last minute.
     * 
* * float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The qps. */ @java.lang.Override public float getQps() { return qps_; } /** * * *
     * Output only. Average queries per second (QPS) over the last minute.
     * 
* * float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The qps to set. * @return This builder for chaining. */ public Builder setQps(float value) { qps_ = value; onChanged(); return this; } /** * * *
     * Output only. Average queries per second (QPS) over the last minute.
     * 
* * float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearQps() { qps_ = 0F; onChanged(); return this; } private int averageLatency_; /** * * *
     * Output only. Average latency (ms) over the last minute.
     * 
* * int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The averageLatency. */ @java.lang.Override public int getAverageLatency() { return averageLatency_; } /** * * *
     * Output only. Average latency (ms) over the last minute.
     * 
* * int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The averageLatency to set. * @return This builder for chaining. */ public Builder setAverageLatency(int value) { averageLatency_ = value; onChanged(); return this; } /** * * *
     * Output only. Average latency (ms) over the last minute.
     * 
* * int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearAverageLatency() { averageLatency_ = 0; onChanged(); return this; } private long memoryUsage_; /** * * *
     * Output only. Total memory in use (bytes).
     * 
* * int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The memoryUsage. */ @java.lang.Override public long getMemoryUsage() { return memoryUsage_; } /** * * *
     * Output only. Total memory in use (bytes).
     * 
* * int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The memoryUsage to set. * @return This builder for chaining. */ public Builder setMemoryUsage(long value) { memoryUsage_ = value; onChanged(); return this; } /** * * *
     * Output only. Total memory in use (bytes).
     * 
* * int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearMemoryUsage() { memoryUsage_ = 0L; onChanged(); return this; } private java.lang.Object vmStatus_ = ""; /** * * *
     * Output only. Status of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmStatus. */ public java.lang.String getVmStatus() { java.lang.Object ref = vmStatus_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmStatus_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Status of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmStatus. */ public com.google.protobuf.ByteString getVmStatusBytes() { java.lang.Object ref = vmStatus_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmStatus_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Status of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The vmStatus to set. * @return This builder for chaining. */ public Builder setVmStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } vmStatus_ = value; onChanged(); return this; } /** * * *
     * Output only. Status of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVmStatus() { vmStatus_ = getDefaultInstance().getVmStatus(); onChanged(); return this; } /** * * *
     * Output only. Status of the virtual machine where this instance lives. Only applicable
     * for instances in App Engine flexible environment.
     * 
* * string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for vmStatus to set. * @return This builder for chaining. */ public Builder setVmStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vmStatus_ = value; onChanged(); return this; } private boolean vmDebugEnabled_; /** * * *
     * Output only. Whether this instance is in debug mode. Only applicable for instances in
     * App Engine flexible environment.
     * 
* * bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmDebugEnabled. */ @java.lang.Override public boolean getVmDebugEnabled() { return vmDebugEnabled_; } /** * * *
     * Output only. Whether this instance is in debug mode. Only applicable for instances in
     * App Engine flexible environment.
     * 
* * bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The vmDebugEnabled to set. * @return This builder for chaining. */ public Builder setVmDebugEnabled(boolean value) { vmDebugEnabled_ = value; onChanged(); return this; } /** * * *
     * Output only. Whether this instance is in debug mode. Only applicable for instances in
     * App Engine flexible environment.
     * 
* * bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVmDebugEnabled() { vmDebugEnabled_ = false; onChanged(); return this; } private java.lang.Object vmIp_ = ""; /** * * *
     * Output only. The IP address of this instance. Only applicable for instances in App
     * Engine flexible environment.
     * 
* * string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The vmIp. */ public java.lang.String getVmIp() { java.lang.Object ref = vmIp_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmIp_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The IP address of this instance. Only applicable for instances in App
     * Engine flexible environment.
     * 
* * string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for vmIp. */ public com.google.protobuf.ByteString getVmIpBytes() { java.lang.Object ref = vmIp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The IP address of this instance. Only applicable for instances in App
     * Engine flexible environment.
     * 
* * string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The vmIp to set. * @return This builder for chaining. */ public Builder setVmIp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } vmIp_ = value; onChanged(); return this; } /** * * *
     * Output only. The IP address of this instance. Only applicable for instances in App
     * Engine flexible environment.
     * 
* * string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVmIp() { vmIp_ = getDefaultInstance().getVmIp(); onChanged(); return this; } /** * * *
     * Output only. The IP address of this instance. Only applicable for instances in App
     * Engine flexible environment.
     * 
* * string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for vmIp to set. * @return This builder for chaining. */ public Builder setVmIpBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vmIp_ = value; onChanged(); return this; } private int vmLiveness_ = 0; /** * * *
     * Output only. The liveness health check of this instance. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for vmLiveness. */ @java.lang.Override public int getVmLivenessValue() { return vmLiveness_; } /** * * *
     * Output only. The liveness health check of this instance. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for vmLiveness to set. * @return This builder for chaining. */ public Builder setVmLivenessValue(int value) { vmLiveness_ = value; onChanged(); return this; } /** * * *
     * Output only. The liveness health check of this instance. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The vmLiveness. */ @java.lang.Override public com.google.appengine.v1.Instance.Liveness.LivenessState getVmLiveness() { @SuppressWarnings("deprecation") com.google.appengine.v1.Instance.Liveness.LivenessState result = com.google.appengine.v1.Instance.Liveness.LivenessState.valueOf(vmLiveness_); return result == null ? com.google.appengine.v1.Instance.Liveness.LivenessState.UNRECOGNIZED : result; } /** * * *
     * Output only. The liveness health check of this instance. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The vmLiveness to set. * @return This builder for chaining. */ public Builder setVmLiveness(com.google.appengine.v1.Instance.Liveness.LivenessState value) { if (value == null) { throw new NullPointerException(); } vmLiveness_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. The liveness health check of this instance. Only applicable for instances
     * in App Engine flexible environment.
     * 
* * * .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearVmLiveness() { vmLiveness_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.appengine.v1.Instance) } // @@protoc_insertion_point(class_scope:google.appengine.v1.Instance) private static final com.google.appengine.v1.Instance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.v1.Instance(); } public static com.google.appengine.v1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Instance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Instance(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.appengine.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy