Class Instance.Builder (2.62.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.78.0 (latest)
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.72.0
- 2.70.0
- 2.68.0
- 2.67.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.4
- 2.2.0
- 2.1.10
- 0.2.0
publicstaticfinalclass Instance.BuilderextendsGeneratedMessageV3.Builder<Instance.Builder>implementsInstanceOrBuilderAn Instance resource is the computing unit that App Engine uses to automatically scale an application.
Protobuf type google.appengine.v1.Instance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Instance.BuilderImplements
InstanceOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicInstance.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
build()
publicInstancebuild()| Returns | |
|---|---|
| Type | Description |
Instance |
|
buildPartial()
publicInstancebuildPartial()| Returns | |
|---|---|
| Type | Description |
Instance |
|
clear()
publicInstance.Builderclear()| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
clearAppEngineRelease()
publicInstance.BuilderclearAppEngineRelease()Output only. App Engine release this instance is running on.
string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearAvailability()
publicInstance.BuilderclearAvailability()Output only. Availability of the instance.
.google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearAverageLatency()
publicInstance.BuilderclearAverageLatency()Output only. Average latency (ms) over the last minute.
int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearErrors()
publicInstance.BuilderclearErrors()Output only. Number of errors since this instance was started.
int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
publicInstance.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
clearId()
publicInstance.BuilderclearId() Output only. Relative name of the instance within the version.
Example: instance-1.
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearMemoryUsage()
publicInstance.BuilderclearMemoryUsage()Output only. Total memory in use (bytes).
int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearName()
publicInstance.BuilderclearName() 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];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicInstance.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
clearQps()
publicInstance.BuilderclearQps()Output only. Average queries per second (QPS) over the last minute.
float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearRequests()
publicInstance.BuilderclearRequests()Output only. Number of requests since this instance was started.
int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearStartTime()
publicInstance.BuilderclearStartTime()Output only. Time that this instance was started.
@OutputOnly
.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
clearVmDebugEnabled()
publicInstance.BuilderclearVmDebugEnabled()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];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearVmId()
publicInstance.BuilderclearVmId()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];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearVmIp()
publicInstance.BuilderclearVmIp()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];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearVmLiveness()
publicInstance.BuilderclearVmLiveness()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];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearVmName()
publicInstance.BuilderclearVmName()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];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearVmStatus()
publicInstance.BuilderclearVmStatus()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];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clearVmZoneName()
publicInstance.BuilderclearVmZoneName()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];
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
clone()
publicInstance.Builderclone()| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
getAppEngineRelease()
publicStringgetAppEngineRelease()Output only. App Engine release this instance is running on.
string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The appEngineRelease. |
getAppEngineReleaseBytes()
publicByteStringgetAppEngineReleaseBytes()Output only. App Engine release this instance is running on.
string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for appEngineRelease. |
getAvailability()
publicInstance.AvailabilitygetAvailability()Output only. Availability of the instance.
.google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Instance.Availability |
The availability. |
getAvailabilityValue()
publicintgetAvailabilityValue()Output only. Availability of the instance.
.google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for availability. |
getAverageLatency()
publicintgetAverageLatency()Output only. Average latency (ms) over the last minute.
int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The averageLatency. |
getDefaultInstanceForType()
publicInstancegetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Instance |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getErrors()
publicintgetErrors()Output only. Number of errors since this instance was started.
int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The errors. |
getId()
publicStringgetId() Output only. Relative name of the instance within the version.
Example: instance-1.
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes()
publicByteStringgetIdBytes() Output only. Relative name of the instance within the version.
Example: instance-1.
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for id. |
getMemoryUsage()
publiclonggetMemoryUsage()Output only. Total memory in use (bytes).
int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The memoryUsage. |
getName()
publicStringgetName() 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];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
publicByteStringgetNameBytes() 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getQps()
publicfloatgetQps()Output only. Average queries per second (QPS) over the last minute.
float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
float |
The qps. |
getRequests()
publicintgetRequests()Output only. Number of requests since this instance was started.
int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The requests. |
getStartTime()
publicTimestampgetStartTime()Output only. Time that this instance was started.
@OutputOnly
.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The startTime. |
getStartTimeBuilder()
publicTimestamp.BuildergetStartTimeBuilder()Output only. Time that this instance was started.
@OutputOnly
.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getStartTimeOrBuilder()
publicTimestampOrBuildergetStartTimeOrBuilder()Output only. Time that this instance was started.
@OutputOnly
.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getVmDebugEnabled()
publicbooleangetVmDebugEnabled()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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The vmDebugEnabled. |
getVmId()
publicStringgetVmId()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];
| Returns | |
|---|---|
| Type | Description |
String |
The vmId. |
getVmIdBytes()
publicByteStringgetVmIdBytes()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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vmId. |
getVmIp()
publicStringgetVmIp()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];
| Returns | |
|---|---|
| Type | Description |
String |
The vmIp. |
getVmIpBytes()
publicByteStringgetVmIpBytes()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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vmIp. |
getVmLiveness()
publicInstance.Liveness.LivenessStategetVmLiveness()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];
| Returns | |
|---|---|
| Type | Description |
Instance.Liveness.LivenessState |
The vmLiveness. |
getVmLivenessValue()
publicintgetVmLivenessValue()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];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for vmLiveness. |
getVmName()
publicStringgetVmName()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];
| Returns | |
|---|---|
| Type | Description |
String |
The vmName. |
getVmNameBytes()
publicByteStringgetVmNameBytes()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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vmName. |
getVmStatus()
publicStringgetVmStatus()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];
| Returns | |
|---|---|
| Type | Description |
String |
The vmStatus. |
getVmStatusBytes()
publicByteStringgetVmStatusBytes()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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vmStatus. |
getVmZoneName()
publicStringgetVmZoneName()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];
| Returns | |
|---|---|
| Type | Description |
String |
The vmZoneName. |
getVmZoneNameBytes()
publicByteStringgetVmZoneNameBytes()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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vmZoneName. |
hasStartTime()
publicbooleanhasStartTime()Output only. Time that this instance was started.
@OutputOnly
.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startTime field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Instance other)
publicInstance.BuildermergeFrom(Instanceother)| Parameter | |
|---|---|
| Name | Description |
other |
Instance |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicInstance.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicInstance.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
mergeStartTime(Timestamp value)
publicInstance.BuildermergeStartTime(Timestampvalue)Output only. Time that this instance was started.
@OutputOnly
.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalInstance.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
setAppEngineRelease(String value)
publicInstance.BuildersetAppEngineRelease(Stringvalue)Output only. App Engine release this instance is running on.
string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
String The appEngineRelease to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setAppEngineReleaseBytes(ByteString value)
publicInstance.BuildersetAppEngineReleaseBytes(ByteStringvalue)Output only. App Engine release this instance is running on.
string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for appEngineRelease to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setAvailability(Instance.Availability value)
publicInstance.BuildersetAvailability(Instance.Availabilityvalue)Output only. Availability of the instance.
.google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Instance.Availability The availability to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setAvailabilityValue(int value)
publicInstance.BuildersetAvailabilityValue(intvalue)Output only. Availability of the instance.
.google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for availability to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setAverageLatency(int value)
publicInstance.BuildersetAverageLatency(intvalue)Output only. Average latency (ms) over the last minute.
int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
int The averageLatency to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setErrors(int value)
publicInstance.BuildersetErrors(intvalue)Output only. Number of errors since this instance was started.
int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
int The errors to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
publicInstance.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
setId(String value)
publicInstance.BuildersetId(Stringvalue) Output only. Relative name of the instance within the version.
Example: instance-1.
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
String The id to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
publicInstance.BuildersetIdBytes(ByteStringvalue) Output only. Relative name of the instance within the version.
Example: instance-1.
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setMemoryUsage(long value)
publicInstance.BuildersetMemoryUsage(longvalue)Output only. Total memory in use (bytes).
int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
long The memoryUsage to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setName(String value)
publicInstance.BuildersetName(Stringvalue) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The name to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
publicInstance.BuildersetNameBytes(ByteStringvalue) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setQps(float value)
publicInstance.BuildersetQps(floatvalue)Output only. Average queries per second (QPS) over the last minute.
float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
float The qps to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicInstance.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
setRequests(int value)
publicInstance.BuildersetRequests(intvalue)Output only. Number of requests since this instance was started.
int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
int The requests to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setStartTime(Timestamp value)
publicInstance.BuildersetStartTime(Timestampvalue)Output only. Time that this instance was started.
@OutputOnly
.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
setStartTime(Timestamp.Builder builderForValue)
publicInstance.BuildersetStartTime(Timestamp.BuilderbuilderForValue)Output only. Time that this instance was started.
@OutputOnly
.google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalInstance.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
|
setVmDebugEnabled(boolean value)
publicInstance.BuildersetVmDebugEnabled(booleanvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
boolean The vmDebugEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmId(String value)
publicInstance.BuildersetVmId(Stringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The vmId to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmIdBytes(ByteString value)
publicInstance.BuildersetVmIdBytes(ByteStringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for vmId to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmIp(String value)
publicInstance.BuildersetVmIp(Stringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The vmIp to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmIpBytes(ByteString value)
publicInstance.BuildersetVmIpBytes(ByteStringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for vmIp to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmLiveness(Instance.Liveness.LivenessState value)
publicInstance.BuildersetVmLiveness(Instance.Liveness.LivenessStatevalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Instance.Liveness.LivenessState The vmLiveness to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmLivenessValue(int value)
publicInstance.BuildersetVmLivenessValue(intvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for vmLiveness to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmName(String value)
publicInstance.BuildersetVmName(Stringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The vmName to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmNameBytes(ByteString value)
publicInstance.BuildersetVmNameBytes(ByteStringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for vmName to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmStatus(String value)
publicInstance.BuildersetVmStatus(Stringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The vmStatus to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmStatusBytes(ByteString value)
publicInstance.BuildersetVmStatusBytes(ByteStringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for vmStatus to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmZoneName(String value)
publicInstance.BuildersetVmZoneName(Stringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The vmZoneName to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |
setVmZoneNameBytes(ByteString value)
publicInstance.BuildersetVmZoneNameBytes(ByteStringvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for vmZoneName to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.Builder |
This builder for chaining. |