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-cloud-appengine-admin-v1 Show documentation
Show all versions of proto-google-cloud-appengine-admin-v1 Show documentation
Proto library for google-cloud-appengine-admin
/*
* Copyright 2023 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();
}
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();
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@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.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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_ = 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];
*
*
* @return The availability.
*/
@java.lang.Override
public com.google.appengine.v1.Instance.Availability getAvailability() {
com.google.appengine.v1.Instance.Availability result =
com.google.appengine.v1.Instance.Availability.forNumber(availability_);
return result == null ? com.google.appengine.v1.Instance.Availability.UNRECOGNIZED : result;
}
public static final int VM_NAME_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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 startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
public static final int REQUESTS_FIELD_NUMBER = 9;
private int requests_ = 0;
/**
*
*
*
* 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_ = 0;
/**
*
*
*
* 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_ = 0F;
/**
*
*
*
* 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_ = 0;
/**
*
*
*
* 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_ = 0L;
/**
*
*
*
* 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;
@SuppressWarnings("serial")
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_ = false;
/**
*
*
*
* 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;
@SuppressWarnings("serial")
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_ = 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];
*
*
* @return The vmLiveness.
*/
@java.lang.Override
public com.google.appengine.v1.Instance.Liveness.LivenessState getVmLiveness() {
com.google.appengine.v1.Instance.Liveness.LivenessState result =
com.google.appengine.v1.Instance.Liveness.LivenessState.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appEngineRelease_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appEngineRelease_);
}
if (availability_ != com.google.appengine.v1.Instance.Availability.UNSPECIFIED.getNumber()) {
output.writeEnum(4, availability_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, vmName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmZoneName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vmZoneName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) {
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 (java.lang.Float.floatToRawIntBits(qps_) != 0) {
output.writeFloat(11, qps_);
}
if (averageLatency_ != 0) {
output.writeInt32(12, averageLatency_);
}
if (memoryUsage_ != 0L) {
output.writeInt64(13, memoryUsage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmStatus_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, vmStatus_);
}
if (vmDebugEnabled_ != false) {
output.writeBool(15, vmDebugEnabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmIp_)) {
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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appEngineRelease_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, vmName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmZoneName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vmZoneName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) {
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 (java.lang.Float.floatToRawIntBits(qps_) != 0) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmStatus_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, vmStatus_);
}
if (vmDebugEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, vmDebugEnabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmIp_)) {
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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
id_ = "";
appEngineRelease_ = "";
availability_ = 0;
vmName_ = "";
vmZoneName_ = "";
vmId_ = "";
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
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);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.v1.Instance result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.appEngineRelease_ = appEngineRelease_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.availability_ = availability_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.vmName_ = vmName_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.vmZoneName_ = vmZoneName_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.vmId_ = vmId_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.requests_ = requests_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.errors_ = errors_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.qps_ = qps_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.averageLatency_ = averageLatency_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.memoryUsage_ = memoryUsage_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.vmStatus_ = vmStatus_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.vmDebugEnabled_ = vmDebugEnabled_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.vmIp_ = vmIp_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.vmLiveness_ = vmLiveness_;
}
}
@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_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getAppEngineRelease().isEmpty()) {
appEngineRelease_ = other.appEngineRelease_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.availability_ != 0) {
setAvailabilityValue(other.getAvailabilityValue());
}
if (!other.getVmName().isEmpty()) {
vmName_ = other.vmName_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getVmZoneName().isEmpty()) {
vmZoneName_ = other.vmZoneName_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getVmId().isEmpty()) {
vmId_ = other.vmId_;
bitField0_ |= 0x00000040;
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_;
bitField0_ |= 0x00002000;
onChanged();
}
if (other.getVmDebugEnabled() != false) {
setVmDebugEnabled(other.getVmDebugEnabled());
}
if (!other.getVmIp().isEmpty()) {
vmIp_ = other.vmIp_;
bitField0_ |= 0x00008000;
onChanged();
}
if (other.vmLiveness_ != 0) {
setVmLivenessValue(other.getVmLivenessValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
appEngineRelease_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32:
{
availability_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
vmName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
vmZoneName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
vmId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 72:
{
requests_ = input.readInt32();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80:
{
errors_ = input.readInt32();
bitField0_ |= 0x00000200;
break;
} // case 80
case 93:
{
qps_ = input.readFloat();
bitField0_ |= 0x00000400;
break;
} // case 93
case 96:
{
averageLatency_ = input.readInt32();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104:
{
memoryUsage_ = input.readInt64();
bitField0_ |= 0x00001000;
break;
} // case 104
case 114:
{
vmStatus_ = input.readStringRequireUtf8();
bitField0_ |= 0x00002000;
break;
} // case 114
case 120:
{
vmDebugEnabled_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 120
case 130:
{
vmIp_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 130
case 136:
{
vmLiveness_ = input.readEnum();
bitField0_ |= 0x00010000;
break;
} // case 136
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
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;
bitField0_ |= 0x00000001;
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();
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000001;
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;
bitField0_ |= 0x00000002;
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();
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000002;
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;
bitField0_ |= 0x00000004;
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();
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000004;
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;
bitField0_ |= 0x00000008;
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() {
com.google.appengine.v1.Instance.Availability result =
com.google.appengine.v1.Instance.Availability.forNumber(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();
}
bitField0_ |= 0x00000008;
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() {
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000010;
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();
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000010;
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;
bitField0_ |= 0x00000020;
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();
bitField0_ = (bitField0_ & ~0x00000020);
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;
bitField0_ |= 0x00000020;
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;
bitField0_ |= 0x00000040;
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();
bitField0_ = (bitField0_ & ~0x00000040);
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;
bitField0_ |= 0x00000040;
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 ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* 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;
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
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();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
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 (((bitField0_ & 0x00000080) != 0)
&& startTime_ != null
&& startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
} else {
startTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
onChanged();
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() {
bitField0_ = (bitField0_ & ~0x00000080);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000080;
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;
bitField0_ |= 0x00000100;
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() {
bitField0_ = (bitField0_ & ~0x00000100);
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;
bitField0_ |= 0x00000200;
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() {
bitField0_ = (bitField0_ & ~0x00000200);
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;
bitField0_ |= 0x00000400;
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() {
bitField0_ = (bitField0_ & ~0x00000400);
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;
bitField0_ |= 0x00000800;
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() {
bitField0_ = (bitField0_ & ~0x00000800);
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;
bitField0_ |= 0x00001000;
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() {
bitField0_ = (bitField0_ & ~0x00001000);
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;
bitField0_ |= 0x00002000;
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();
bitField0_ = (bitField0_ & ~0x00002000);
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;
bitField0_ |= 0x00002000;
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;
bitField0_ |= 0x00004000;
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() {
bitField0_ = (bitField0_ & ~0x00004000);
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;
bitField0_ |= 0x00008000;
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();
bitField0_ = (bitField0_ & ~0x00008000);
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;
bitField0_ |= 0x00008000;
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;
bitField0_ |= 0x00010000;
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() {
com.google.appengine.v1.Instance.Liveness.LivenessState result =
com.google.appengine.v1.Instance.Liveness.LivenessState.forNumber(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();
}
bitField0_ |= 0x00010000;
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() {
bitField0_ = (bitField0_ & ~0x00010000);
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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