public static final class Instance.Builder extends GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder
An Instance resource is the computing unit that App Engine uses to automatically scale an application.Protobuf type
google.appengine.v1.Instance
Modifier and Type | Method and Description |
---|---|
Instance.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Instance |
build() |
Instance |
buildPartial() |
Instance.Builder |
clear() |
Instance.Builder |
clearAppEngineRelease()
App Engine release this instance is running on.
|
Instance.Builder |
clearAvailability()
Availability of the instance.
|
Instance.Builder |
clearAverageLatency()
Average latency (ms) over the last minute.
|
Instance.Builder |
clearErrors()
Number of errors since this instance was started.
|
Instance.Builder |
clearField(Descriptors.FieldDescriptor field) |
Instance.Builder |
clearId()
Relative name of the instance within the version.
|
Instance.Builder |
clearMemoryUsage()
Total memory in use (bytes).
|
Instance.Builder |
clearName()
Full path to the Instance resource in the API.
|
Instance.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Instance.Builder |
clearQps()
Average queries per second (QPS) over the last minute.
|
Instance.Builder |
clearRequests()
Number of requests since this instance was started.
|
Instance.Builder |
clearStartTime()
Time that this instance was started.
|
Instance.Builder |
clearVmDebugEnabled()
Whether this instance is in debug mode.
|
Instance.Builder |
clearVmId()
Virtual machine ID of this instance.
|
Instance.Builder |
clearVmName()
Name of the virtual machine where this instance lives.
|
Instance.Builder |
clearVmStatus()
Status of the virtual machine where this instance lives.
|
Instance.Builder |
clearVmZoneName()
Zone where the virtual machine is located.
|
Instance.Builder |
clone() |
java.lang.String |
getAppEngineRelease()
App Engine release this instance is running on.
|
ByteString |
getAppEngineReleaseBytes()
App Engine release this instance is running on.
|
Instance.Availability |
getAvailability()
Availability of the instance.
|
int |
getAvailabilityValue()
Availability of the instance.
|
int |
getAverageLatency()
Average latency (ms) over the last minute.
|
Instance |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
int |
getErrors()
Number of errors since this instance was started.
|
java.lang.String |
getId()
Relative name of the instance within the version.
|
ByteString |
getIdBytes()
Relative name of the instance within the version.
|
long |
getMemoryUsage()
Total memory in use (bytes).
|
java.lang.String |
getName()
Full path to the Instance resource in the API.
|
ByteString |
getNameBytes()
Full path to the Instance resource in the API.
|
float |
getQps()
Average queries per second (QPS) over the last minute.
|
int |
getRequests()
Number of requests since this instance was started.
|
Timestamp |
getStartTime()
Time that this instance was started.
|
Timestamp.Builder |
getStartTimeBuilder()
Time that this instance was started.
|
TimestampOrBuilder |
getStartTimeOrBuilder()
Time that this instance was started.
|
boolean |
getVmDebugEnabled()
Whether this instance is in debug mode.
|
java.lang.String |
getVmId()
Virtual machine ID of this instance.
|
ByteString |
getVmIdBytes()
Virtual machine ID of this instance.
|
java.lang.String |
getVmName()
Name of the virtual machine where this instance lives.
|
ByteString |
getVmNameBytes()
Name of the virtual machine where this instance lives.
|
java.lang.String |
getVmStatus()
Status of the virtual machine where this instance lives.
|
ByteString |
getVmStatusBytes()
Status of the virtual machine where this instance lives.
|
java.lang.String |
getVmZoneName()
Zone where the virtual machine is located.
|
ByteString |
getVmZoneNameBytes()
Zone where the virtual machine is located.
|
boolean |
hasStartTime()
Time that this instance was started.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Instance.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Instance.Builder |
mergeFrom(Instance other) |
Instance.Builder |
mergeFrom(Message other) |
Instance.Builder |
mergeStartTime(Timestamp value)
Time that this instance was started.
|
Instance.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Instance.Builder |
setAppEngineRelease(java.lang.String value)
App Engine release this instance is running on.
|
Instance.Builder |
setAppEngineReleaseBytes(ByteString value)
App Engine release this instance is running on.
|
Instance.Builder |
setAvailability(Instance.Availability value)
Availability of the instance.
|
Instance.Builder |
setAvailabilityValue(int value)
Availability of the instance.
|
Instance.Builder |
setAverageLatency(int value)
Average latency (ms) over the last minute.
|
Instance.Builder |
setErrors(int value)
Number of errors since this instance was started.
|
Instance.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Instance.Builder |
setId(java.lang.String value)
Relative name of the instance within the version.
|
Instance.Builder |
setIdBytes(ByteString value)
Relative name of the instance within the version.
|
Instance.Builder |
setMemoryUsage(long value)
Total memory in use (bytes).
|
Instance.Builder |
setName(java.lang.String value)
Full path to the Instance resource in the API.
|
Instance.Builder |
setNameBytes(ByteString value)
Full path to the Instance resource in the API.
|
Instance.Builder |
setQps(float value)
Average queries per second (QPS) over the last minute.
|
Instance.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Instance.Builder |
setRequests(int value)
Number of requests since this instance was started.
|
Instance.Builder |
setStartTime(Timestamp.Builder builderForValue)
Time that this instance was started.
|
Instance.Builder |
setStartTime(Timestamp value)
Time that this instance was started.
|
Instance.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
Instance.Builder |
setVmDebugEnabled(boolean value)
Whether this instance is in debug mode.
|
Instance.Builder |
setVmId(java.lang.String value)
Virtual machine ID of this instance.
|
Instance.Builder |
setVmIdBytes(ByteString value)
Virtual machine ID of this instance.
|
Instance.Builder |
setVmName(java.lang.String value)
Name of the virtual machine where this instance lives.
|
Instance.Builder |
setVmNameBytes(ByteString value)
Name of the virtual machine where this instance lives.
|
Instance.Builder |
setVmStatus(java.lang.String value)
Status of the virtual machine where this instance lives.
|
Instance.Builder |
setVmStatusBytes(ByteString value)
Status of the virtual machine where this instance lives.
|
Instance.Builder |
setVmZoneName(java.lang.String value)
Zone where the virtual machine is located.
|
Instance.Builder |
setVmZoneNameBytes(ByteString value)
Zone where the virtual machine is located.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Instance.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Instance build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Instance buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Instance.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Instance.Builder>
public Instance.Builder mergeFrom(Instance other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Instance.Builder>
public Instance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Instance.Builder>
java.io.IOException
public java.lang.String getName()
Full path to the Instance resource in the API. Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. @OutputOnly
string name = 1;
getName
in interface InstanceOrBuilder
public ByteString getNameBytes()
Full path to the Instance resource in the API. Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. @OutputOnly
string name = 1;
getNameBytes
in interface InstanceOrBuilder
public Instance.Builder setName(java.lang.String value)
Full path to the Instance resource in the API. Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. @OutputOnly
string name = 1;
public Instance.Builder clearName()
Full path to the Instance resource in the API. Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. @OutputOnly
string name = 1;
public Instance.Builder setNameBytes(ByteString value)
Full path to the Instance resource in the API. Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. @OutputOnly
string name = 1;
public java.lang.String getId()
Relative name of the instance within the version. Example: `instance-1`. @OutputOnly
string id = 2;
getId
in interface InstanceOrBuilder
public ByteString getIdBytes()
Relative name of the instance within the version. Example: `instance-1`. @OutputOnly
string id = 2;
getIdBytes
in interface InstanceOrBuilder
public Instance.Builder setId(java.lang.String value)
Relative name of the instance within the version. Example: `instance-1`. @OutputOnly
string id = 2;
public Instance.Builder clearId()
Relative name of the instance within the version. Example: `instance-1`. @OutputOnly
string id = 2;
public Instance.Builder setIdBytes(ByteString value)
Relative name of the instance within the version. Example: `instance-1`. @OutputOnly
string id = 2;
public java.lang.String getAppEngineRelease()
App Engine release this instance is running on. @OutputOnly
string app_engine_release = 3;
getAppEngineRelease
in interface InstanceOrBuilder
public ByteString getAppEngineReleaseBytes()
App Engine release this instance is running on. @OutputOnly
string app_engine_release = 3;
getAppEngineReleaseBytes
in interface InstanceOrBuilder
public Instance.Builder setAppEngineRelease(java.lang.String value)
App Engine release this instance is running on. @OutputOnly
string app_engine_release = 3;
public Instance.Builder clearAppEngineRelease()
App Engine release this instance is running on. @OutputOnly
string app_engine_release = 3;
public Instance.Builder setAppEngineReleaseBytes(ByteString value)
App Engine release this instance is running on. @OutputOnly
string app_engine_release = 3;
public int getAvailabilityValue()
Availability of the instance. @OutputOnly
.google.appengine.v1.Instance.Availability availability = 4;
getAvailabilityValue
in interface InstanceOrBuilder
public Instance.Builder setAvailabilityValue(int value)
Availability of the instance. @OutputOnly
.google.appengine.v1.Instance.Availability availability = 4;
public Instance.Availability getAvailability()
Availability of the instance. @OutputOnly
.google.appengine.v1.Instance.Availability availability = 4;
getAvailability
in interface InstanceOrBuilder
public Instance.Builder setAvailability(Instance.Availability value)
Availability of the instance. @OutputOnly
.google.appengine.v1.Instance.Availability availability = 4;
public Instance.Builder clearAvailability()
Availability of the instance. @OutputOnly
.google.appengine.v1.Instance.Availability availability = 4;
public java.lang.String getVmName()
Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_name = 5;
getVmName
in interface InstanceOrBuilder
public ByteString getVmNameBytes()
Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_name = 5;
getVmNameBytes
in interface InstanceOrBuilder
public Instance.Builder setVmName(java.lang.String value)
Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_name = 5;
public Instance.Builder clearVmName()
Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_name = 5;
public Instance.Builder setVmNameBytes(ByteString value)
Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_name = 5;
public java.lang.String getVmZoneName()
Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_zone_name = 6;
getVmZoneName
in interface InstanceOrBuilder
public ByteString getVmZoneNameBytes()
Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_zone_name = 6;
getVmZoneNameBytes
in interface InstanceOrBuilder
public Instance.Builder setVmZoneName(java.lang.String value)
Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_zone_name = 6;
public Instance.Builder clearVmZoneName()
Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_zone_name = 6;
public Instance.Builder setVmZoneNameBytes(ByteString value)
Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_zone_name = 6;
public java.lang.String getVmId()
Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_id = 7;
getVmId
in interface InstanceOrBuilder
public ByteString getVmIdBytes()
Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_id = 7;
getVmIdBytes
in interface InstanceOrBuilder
public Instance.Builder setVmId(java.lang.String value)
Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_id = 7;
public Instance.Builder clearVmId()
Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_id = 7;
public Instance.Builder setVmIdBytes(ByteString value)
Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_id = 7;
public boolean hasStartTime()
Time that this instance was started. @OutputOnly
.google.protobuf.Timestamp start_time = 8;
hasStartTime
in interface InstanceOrBuilder
public Timestamp getStartTime()
Time that this instance was started. @OutputOnly
.google.protobuf.Timestamp start_time = 8;
getStartTime
in interface InstanceOrBuilder
public Instance.Builder setStartTime(Timestamp value)
Time that this instance was started. @OutputOnly
.google.protobuf.Timestamp start_time = 8;
public Instance.Builder setStartTime(Timestamp.Builder builderForValue)
Time that this instance was started. @OutputOnly
.google.protobuf.Timestamp start_time = 8;
public Instance.Builder mergeStartTime(Timestamp value)
Time that this instance was started. @OutputOnly
.google.protobuf.Timestamp start_time = 8;
public Instance.Builder clearStartTime()
Time that this instance was started. @OutputOnly
.google.protobuf.Timestamp start_time = 8;
public Timestamp.Builder getStartTimeBuilder()
Time that this instance was started. @OutputOnly
.google.protobuf.Timestamp start_time = 8;
public TimestampOrBuilder getStartTimeOrBuilder()
Time that this instance was started. @OutputOnly
.google.protobuf.Timestamp start_time = 8;
getStartTimeOrBuilder
in interface InstanceOrBuilder
public int getRequests()
Number of requests since this instance was started. @OutputOnly
int32 requests = 9;
getRequests
in interface InstanceOrBuilder
public Instance.Builder setRequests(int value)
Number of requests since this instance was started. @OutputOnly
int32 requests = 9;
public Instance.Builder clearRequests()
Number of requests since this instance was started. @OutputOnly
int32 requests = 9;
public int getErrors()
Number of errors since this instance was started. @OutputOnly
int32 errors = 10;
getErrors
in interface InstanceOrBuilder
public Instance.Builder setErrors(int value)
Number of errors since this instance was started. @OutputOnly
int32 errors = 10;
public Instance.Builder clearErrors()
Number of errors since this instance was started. @OutputOnly
int32 errors = 10;
public float getQps()
Average queries per second (QPS) over the last minute. @OutputOnly
float qps = 11;
getQps
in interface InstanceOrBuilder
public Instance.Builder setQps(float value)
Average queries per second (QPS) over the last minute. @OutputOnly
float qps = 11;
public Instance.Builder clearQps()
Average queries per second (QPS) over the last minute. @OutputOnly
float qps = 11;
public int getAverageLatency()
Average latency (ms) over the last minute. @OutputOnly
int32 average_latency = 12;
getAverageLatency
in interface InstanceOrBuilder
public Instance.Builder setAverageLatency(int value)
Average latency (ms) over the last minute. @OutputOnly
int32 average_latency = 12;
public Instance.Builder clearAverageLatency()
Average latency (ms) over the last minute. @OutputOnly
int32 average_latency = 12;
public long getMemoryUsage()
Total memory in use (bytes). @OutputOnly
int64 memory_usage = 13;
getMemoryUsage
in interface InstanceOrBuilder
public Instance.Builder setMemoryUsage(long value)
Total memory in use (bytes). @OutputOnly
int64 memory_usage = 13;
public Instance.Builder clearMemoryUsage()
Total memory in use (bytes). @OutputOnly
int64 memory_usage = 13;
public java.lang.String getVmStatus()
Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_status = 14;
getVmStatus
in interface InstanceOrBuilder
public ByteString getVmStatusBytes()
Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_status = 14;
getVmStatusBytes
in interface InstanceOrBuilder
public Instance.Builder setVmStatus(java.lang.String value)
Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_status = 14;
public Instance.Builder clearVmStatus()
Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_status = 14;
public Instance.Builder setVmStatusBytes(ByteString value)
Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. @OutputOnly
string vm_status = 14;
public boolean getVmDebugEnabled()
Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment. @OutputOnly
bool vm_debug_enabled = 15;
getVmDebugEnabled
in interface InstanceOrBuilder
public Instance.Builder setVmDebugEnabled(boolean value)
Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment. @OutputOnly
bool vm_debug_enabled = 15;
public Instance.Builder clearVmDebugEnabled()
Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment. @OutputOnly
bool vm_debug_enabled = 15;
public final Instance.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Instance.Builder>
public final Instance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Instance.Builder>