Class GetInstanceHealthResponse.Builder (1.4.0)

public static final class GetInstanceHealthResponse.Builder extends GeneratedMessageV3.Builder<GetInstanceHealthResponse.Builder> implements GetInstanceHealthResponseOrBuilder

Response for checking if a notebook instance is healthy.

Protobuf type google.cloud.notebooks.v1.GetInstanceHealthResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetInstanceHealthResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

build()

public GetInstanceHealthResponse build()
Returns
TypeDescription
GetInstanceHealthResponse

buildPartial()

public GetInstanceHealthResponse buildPartial()
Returns
TypeDescription
GetInstanceHealthResponse

clear()

public GetInstanceHealthResponse.Builder clear()
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetInstanceHealthResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

clearHealthInfo()

public GetInstanceHealthResponse.Builder clearHealthInfo()
Returns
TypeDescription
GetInstanceHealthResponse.Builder

clearHealthState()

public GetInstanceHealthResponse.Builder clearHealthState()

Output only. Runtime health_state.

.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
GetInstanceHealthResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetInstanceHealthResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

clone()

public GetInstanceHealthResponse.Builder clone()
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

containsHealthInfo(String key)

public boolean containsHealthInfo(String key)

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public GetInstanceHealthResponse getDefaultInstanceForType()
Returns
TypeDescription
GetInstanceHealthResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHealthInfo()

public Map<String,String> getHealthInfo()

Use #getHealthInfoMap() instead.

Returns
TypeDescription
Map<String,String>

getHealthInfoCount()

public int getHealthInfoCount()

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getHealthInfoMap()

public Map<String,String> getHealthInfoMap()

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Map<String,String>

getHealthInfoOrDefault(String key, String defaultValue)

public String getHealthInfoOrDefault(String key, String defaultValue)

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getHealthInfoOrThrow(String key)

public String getHealthInfoOrThrow(String key)

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getHealthState()

public GetInstanceHealthResponse.HealthState getHealthState()

Output only. Runtime health_state.

.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
GetInstanceHealthResponse.HealthState

The healthState.

getHealthStateValue()

public int getHealthStateValue()

Output only. Runtime health_state.

.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for healthState.

getMutableHealthInfo()

public Map<String,String> getMutableHealthInfo()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetInstanceHealthResponse other)

public GetInstanceHealthResponse.Builder mergeFrom(GetInstanceHealthResponse other)
Parameter
NameDescription
otherGetInstanceHealthResponse
Returns
TypeDescription
GetInstanceHealthResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetInstanceHealthResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetInstanceHealthResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetInstanceHealthResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

putAllHealthInfo(Map<String,String> values)

public GetInstanceHealthResponse.Builder putAllHealthInfo(Map<String,String> values)

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
GetInstanceHealthResponse.Builder

putHealthInfo(String key, String value)

public GetInstanceHealthResponse.Builder putHealthInfo(String key, String value)

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
GetInstanceHealthResponse.Builder

removeHealthInfo(String key)

public GetInstanceHealthResponse.Builder removeHealthInfo(String key)

Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }

map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
GetInstanceHealthResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GetInstanceHealthResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

setHealthState(GetInstanceHealthResponse.HealthState value)

public GetInstanceHealthResponse.Builder setHealthState(GetInstanceHealthResponse.HealthState value)

Output only. Runtime health_state.

.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueGetInstanceHealthResponse.HealthState

The healthState to set.

Returns
TypeDescription
GetInstanceHealthResponse.Builder

This builder for chaining.

setHealthStateValue(int value)

public GetInstanceHealthResponse.Builder setHealthStateValue(int value)

Output only. Runtime health_state.

.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for healthState to set.

Returns
TypeDescription
GetInstanceHealthResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetInstanceHealthResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetInstanceHealthResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides