com.google.appengine.v1.Instance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-appengine-v1 Show documentation
Show all versions of proto-google-appengine-v1 Show documentation
PROTO library for proto-google-appengine-v1
// 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_ = "";
requests_ = 0;
errors_ = 0;
qps_ = 0F;
averageLatency_ = 0;
memoryUsage_ = 0L;
vmStatus_ = "";
vmDebugEnabled_ = false;
}
@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();
}
int mutable_bitField0_ = 0;
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
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;
}
}
}
} 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;
}
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;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Availability valueOf(int value) {
return forNumber(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<
Availability> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Availability findValueByNumber(int number) {
return Availability.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
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 static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Full path to the Instance resource in the API.
* Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
* @OutputOnly
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Full path to the Instance resource in the API.
* Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
* @OutputOnly
*
*
* string name = 1;
*/
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_;
/**
*
* Relative name of the instance within the version.
* Example: `instance-1`.
* @OutputOnly
*
*
* string id = 2;
*/
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;
}
}
/**
*
* Relative name of the instance within the version.
* Example: `instance-1`.
* @OutputOnly
*
*
* string id = 2;
*/
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_;
/**
*
* App Engine release this instance is running on.
* @OutputOnly
*
*
* string app_engine_release = 3;
*/
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;
}
}
/**
*
* App Engine release this instance is running on.
* @OutputOnly
*
*
* string app_engine_release = 3;
*/
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_;
/**
*
* Availability of the instance.
* @OutputOnly
*
*
* .google.appengine.v1.Instance.Availability availability = 4;
*/
public int getAvailabilityValue() {
return availability_;
}
/**
*
* Availability of the instance.
* @OutputOnly
*
*
* .google.appengine.v1.Instance.Availability availability = 4;
*/
public com.google.appengine.v1.Instance.Availability getAvailability() {
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_;
/**
*
* Name of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_name = 5;
*/
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;
}
}
/**
*
* Name of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_name = 5;
*/
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_;
/**
*
* Zone where the virtual machine is located. Only applicable for instances
* in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_zone_name = 6;
*/
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;
}
}
/**
*
* Zone where the virtual machine is located. Only applicable for instances
* in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_zone_name = 6;
*/
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_;
/**
*
* Virtual machine ID of this instance. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* string vm_id = 7;
*/
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;
}
}
/**
*
* Virtual machine ID of this instance. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* string vm_id = 7;
*/
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_;
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public boolean hasStartTime() {
return startTime_ != null;
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
public static final int REQUESTS_FIELD_NUMBER = 9;
private int requests_;
/**
*
* Number of requests since this instance was started.
* @OutputOnly
*
*
* int32 requests = 9;
*/
public int getRequests() {
return requests_;
}
public static final int ERRORS_FIELD_NUMBER = 10;
private int errors_;
/**
*
* Number of errors since this instance was started.
* @OutputOnly
*
*
* int32 errors = 10;
*/
public int getErrors() {
return errors_;
}
public static final int QPS_FIELD_NUMBER = 11;
private float qps_;
/**
*
* Average queries per second (QPS) over the last minute.
* @OutputOnly
*
*
* float qps = 11;
*/
public float getQps() {
return qps_;
}
public static final int AVERAGE_LATENCY_FIELD_NUMBER = 12;
private int averageLatency_;
/**
*
* Average latency (ms) over the last minute.
* @OutputOnly
*
*
* int32 average_latency = 12;
*/
public int getAverageLatency() {
return averageLatency_;
}
public static final int MEMORY_USAGE_FIELD_NUMBER = 13;
private long memoryUsage_;
/**
*
* Total memory in use (bytes).
* @OutputOnly
*
*
* int64 memory_usage = 13;
*/
public long getMemoryUsage() {
return memoryUsage_;
}
public static final int VM_STATUS_FIELD_NUMBER = 14;
private volatile java.lang.Object vmStatus_;
/**
*
* Status of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_status = 14;
*/
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;
}
}
/**
*
* Status of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_status = 14;
*/
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_;
/**
*
* Whether this instance is in debug mode. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* bool vm_debug_enabled = 15;
*/
public boolean getVmDebugEnabled() {
return vmDebugEnabled_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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_);
}
unknownFields.writeTo(output);
}
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_);
}
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;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getId()
.equals(other.getId());
result = result && getAppEngineRelease()
.equals(other.getAppEngineRelease());
result = result && availability_ == other.availability_;
result = result && getVmName()
.equals(other.getVmName());
result = result && getVmZoneName()
.equals(other.getVmZoneName());
result = result && getVmId()
.equals(other.getVmId());
result = result && (hasStartTime() == other.hasStartTime());
if (hasStartTime()) {
result = result && getStartTime()
.equals(other.getStartTime());
}
result = result && (getRequests()
== other.getRequests());
result = result && (getErrors()
== other.getErrors());
result = result && (
java.lang.Float.floatToIntBits(getQps())
== java.lang.Float.floatToIntBits(
other.getQps()));
result = result && (getAverageLatency()
== other.getAverageLatency());
result = result && (getMemoryUsage()
== other.getMemoryUsage());
result = result && getVmStatus()
.equals(other.getVmStatus());
result = result && (getVmDebugEnabled()
== other.getVmDebugEnabled());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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 = (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);
}
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);
}
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;
}
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) {
}
}
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;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.v1.InstanceProto.internal_static_google_appengine_v1_Instance_descriptor;
}
public com.google.appengine.v1.Instance getDefaultInstanceForType() {
return com.google.appengine.v1.Instance.getDefaultInstance();
}
public com.google.appengine.v1.Instance build() {
com.google.appengine.v1.Instance result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
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_ = "";
/**
*
* Full path to the Instance resource in the API.
* Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
* @OutputOnly
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Full path to the Instance resource in the API.
* Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
* @OutputOnly
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Full path to the Instance resource in the API.
* Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
* @OutputOnly
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Full path to the Instance resource in the API.
* Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
* @OutputOnly
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Full path to the Instance resource in the API.
* Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
* @OutputOnly
*
*
* string name = 1;
*/
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_ = "";
/**
*
* Relative name of the instance within the version.
* Example: `instance-1`.
* @OutputOnly
*
*
* string id = 2;
*/
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;
}
}
/**
*
* Relative name of the instance within the version.
* Example: `instance-1`.
* @OutputOnly
*
*
* string id = 2;
*/
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;
}
}
/**
*
* Relative name of the instance within the version.
* Example: `instance-1`.
* @OutputOnly
*
*
* string id = 2;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* Relative name of the instance within the version.
* Example: `instance-1`.
* @OutputOnly
*
*
* string id = 2;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Relative name of the instance within the version.
* Example: `instance-1`.
* @OutputOnly
*
*
* string id = 2;
*/
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_ = "";
/**
*
* App Engine release this instance is running on.
* @OutputOnly
*
*
* string app_engine_release = 3;
*/
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;
}
}
/**
*
* App Engine release this instance is running on.
* @OutputOnly
*
*
* string app_engine_release = 3;
*/
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;
}
}
/**
*
* App Engine release this instance is running on.
* @OutputOnly
*
*
* string app_engine_release = 3;
*/
public Builder setAppEngineRelease(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appEngineRelease_ = value;
onChanged();
return this;
}
/**
*
* App Engine release this instance is running on.
* @OutputOnly
*
*
* string app_engine_release = 3;
*/
public Builder clearAppEngineRelease() {
appEngineRelease_ = getDefaultInstance().getAppEngineRelease();
onChanged();
return this;
}
/**
*
* App Engine release this instance is running on.
* @OutputOnly
*
*
* string app_engine_release = 3;
*/
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;
/**
*
* Availability of the instance.
* @OutputOnly
*
*
* .google.appengine.v1.Instance.Availability availability = 4;
*/
public int getAvailabilityValue() {
return availability_;
}
/**
*
* Availability of the instance.
* @OutputOnly
*
*
* .google.appengine.v1.Instance.Availability availability = 4;
*/
public Builder setAvailabilityValue(int value) {
availability_ = value;
onChanged();
return this;
}
/**
*
* Availability of the instance.
* @OutputOnly
*
*
* .google.appengine.v1.Instance.Availability availability = 4;
*/
public com.google.appengine.v1.Instance.Availability getAvailability() {
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;
}
/**
*
* Availability of the instance.
* @OutputOnly
*
*
* .google.appengine.v1.Instance.Availability availability = 4;
*/
public Builder setAvailability(com.google.appengine.v1.Instance.Availability value) {
if (value == null) {
throw new NullPointerException();
}
availability_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Availability of the instance.
* @OutputOnly
*
*
* .google.appengine.v1.Instance.Availability availability = 4;
*/
public Builder clearAvailability() {
availability_ = 0;
onChanged();
return this;
}
private java.lang.Object vmName_ = "";
/**
*
* Name of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_name = 5;
*/
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;
}
}
/**
*
* Name of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_name = 5;
*/
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;
}
}
/**
*
* Name of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_name = 5;
*/
public Builder setVmName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
vmName_ = value;
onChanged();
return this;
}
/**
*
* Name of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_name = 5;
*/
public Builder clearVmName() {
vmName_ = getDefaultInstance().getVmName();
onChanged();
return this;
}
/**
*
* Name of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_name = 5;
*/
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_ = "";
/**
*
* Zone where the virtual machine is located. Only applicable for instances
* in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_zone_name = 6;
*/
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;
}
}
/**
*
* Zone where the virtual machine is located. Only applicable for instances
* in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_zone_name = 6;
*/
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;
}
}
/**
*
* Zone where the virtual machine is located. Only applicable for instances
* in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_zone_name = 6;
*/
public Builder setVmZoneName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
vmZoneName_ = value;
onChanged();
return this;
}
/**
*
* Zone where the virtual machine is located. Only applicable for instances
* in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_zone_name = 6;
*/
public Builder clearVmZoneName() {
vmZoneName_ = getDefaultInstance().getVmZoneName();
onChanged();
return this;
}
/**
*
* Zone where the virtual machine is located. Only applicable for instances
* in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_zone_name = 6;
*/
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_ = "";
/**
*
* Virtual machine ID of this instance. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* string vm_id = 7;
*/
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;
}
}
/**
*
* Virtual machine ID of this instance. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* string vm_id = 7;
*/
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;
}
}
/**
*
* Virtual machine ID of this instance. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* string vm_id = 7;
*/
public Builder setVmId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
vmId_ = value;
onChanged();
return this;
}
/**
*
* Virtual machine ID of this instance. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* string vm_id = 7;
*/
public Builder clearVmId() {
vmId_ = getDefaultInstance().getVmId();
onChanged();
return this;
}
/**
*
* Virtual machine ID of this instance. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* string vm_id = 7;
*/
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_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public boolean hasStartTime() {
return startTimeBuilder_ != null || startTime_ != null;
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
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;
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public Builder setStartTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
onChanged();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
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;
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public Builder clearStartTime() {
if (startTimeBuilder_ == null) {
startTime_ = null;
onChanged();
} else {
startTime_ = null;
startTimeBuilder_ = null;
}
return this;
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
}
/**
*
* Time that this instance was started.
* @OutputOnly
*
*
* .google.protobuf.Timestamp start_time = 8;
*/
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_ ;
/**
*
* Number of requests since this instance was started.
* @OutputOnly
*
*
* int32 requests = 9;
*/
public int getRequests() {
return requests_;
}
/**
*
* Number of requests since this instance was started.
* @OutputOnly
*
*
* int32 requests = 9;
*/
public Builder setRequests(int value) {
requests_ = value;
onChanged();
return this;
}
/**
*
* Number of requests since this instance was started.
* @OutputOnly
*
*
* int32 requests = 9;
*/
public Builder clearRequests() {
requests_ = 0;
onChanged();
return this;
}
private int errors_ ;
/**
*
* Number of errors since this instance was started.
* @OutputOnly
*
*
* int32 errors = 10;
*/
public int getErrors() {
return errors_;
}
/**
*
* Number of errors since this instance was started.
* @OutputOnly
*
*
* int32 errors = 10;
*/
public Builder setErrors(int value) {
errors_ = value;
onChanged();
return this;
}
/**
*
* Number of errors since this instance was started.
* @OutputOnly
*
*
* int32 errors = 10;
*/
public Builder clearErrors() {
errors_ = 0;
onChanged();
return this;
}
private float qps_ ;
/**
*
* Average queries per second (QPS) over the last minute.
* @OutputOnly
*
*
* float qps = 11;
*/
public float getQps() {
return qps_;
}
/**
*
* Average queries per second (QPS) over the last minute.
* @OutputOnly
*
*
* float qps = 11;
*/
public Builder setQps(float value) {
qps_ = value;
onChanged();
return this;
}
/**
*
* Average queries per second (QPS) over the last minute.
* @OutputOnly
*
*
* float qps = 11;
*/
public Builder clearQps() {
qps_ = 0F;
onChanged();
return this;
}
private int averageLatency_ ;
/**
*
* Average latency (ms) over the last minute.
* @OutputOnly
*
*
* int32 average_latency = 12;
*/
public int getAverageLatency() {
return averageLatency_;
}
/**
*
* Average latency (ms) over the last minute.
* @OutputOnly
*
*
* int32 average_latency = 12;
*/
public Builder setAverageLatency(int value) {
averageLatency_ = value;
onChanged();
return this;
}
/**
*
* Average latency (ms) over the last minute.
* @OutputOnly
*
*
* int32 average_latency = 12;
*/
public Builder clearAverageLatency() {
averageLatency_ = 0;
onChanged();
return this;
}
private long memoryUsage_ ;
/**
*
* Total memory in use (bytes).
* @OutputOnly
*
*
* int64 memory_usage = 13;
*/
public long getMemoryUsage() {
return memoryUsage_;
}
/**
*
* Total memory in use (bytes).
* @OutputOnly
*
*
* int64 memory_usage = 13;
*/
public Builder setMemoryUsage(long value) {
memoryUsage_ = value;
onChanged();
return this;
}
/**
*
* Total memory in use (bytes).
* @OutputOnly
*
*
* int64 memory_usage = 13;
*/
public Builder clearMemoryUsage() {
memoryUsage_ = 0L;
onChanged();
return this;
}
private java.lang.Object vmStatus_ = "";
/**
*
* Status of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_status = 14;
*/
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;
}
}
/**
*
* Status of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_status = 14;
*/
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;
}
}
/**
*
* Status of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_status = 14;
*/
public Builder setVmStatus(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
vmStatus_ = value;
onChanged();
return this;
}
/**
*
* Status of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_status = 14;
*/
public Builder clearVmStatus() {
vmStatus_ = getDefaultInstance().getVmStatus();
onChanged();
return this;
}
/**
*
* Status of the virtual machine where this instance lives. Only applicable
* for instances in App Engine flexible environment.
* @OutputOnly
*
*
* string vm_status = 14;
*/
public Builder setVmStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
vmStatus_ = value;
onChanged();
return this;
}
private boolean vmDebugEnabled_ ;
/**
*
* Whether this instance is in debug mode. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* bool vm_debug_enabled = 15;
*/
public boolean getVmDebugEnabled() {
return vmDebugEnabled_;
}
/**
*
* Whether this instance is in debug mode. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* bool vm_debug_enabled = 15;
*/
public Builder setVmDebugEnabled(boolean value) {
vmDebugEnabled_ = value;
onChanged();
return this;
}
/**
*
* Whether this instance is in debug mode. Only applicable for instances in
* App Engine flexible environment.
* @OutputOnly
*
*
* bool vm_debug_enabled = 15;
*/
public Builder clearVmDebugEnabled() {
vmDebugEnabled_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
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() {
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;
}
public com.google.appengine.v1.Instance getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy