Class GetInstanceHealthResponse (1.1.0)

public final class GetInstanceHealthResponse extends GeneratedMessageV3 implements GetInstanceHealthResponseOrBuilder

Response for checking if a notebook instance is healthy.

Protobuf type google.cloud.notebooks.v1.GetInstanceHealthResponse

Static Fields

HEALTH_INFO_FIELD_NUMBER

public static final int HEALTH_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

HEALTH_STATE_FIELD_NUMBER

public static final int HEALTH_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GetInstanceHealthResponse getDefaultInstance()
Returns
TypeDescription
GetInstanceHealthResponse

getDescriptor()

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

newBuilder()

public static GetInstanceHealthResponse.Builder newBuilder()
Returns
TypeDescription
GetInstanceHealthResponse.Builder

newBuilder(GetInstanceHealthResponse prototype)

public static GetInstanceHealthResponse.Builder newBuilder(GetInstanceHealthResponse prototype)
Parameter
NameDescription
prototypeGetInstanceHealthResponse
Returns
TypeDescription
GetInstanceHealthResponse.Builder

parseDelimitedFrom(InputStream input)

public static GetInstanceHealthResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetInstanceHealthResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GetInstanceHealthResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GetInstanceHealthResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GetInstanceHealthResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GetInstanceHealthResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GetInstanceHealthResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GetInstanceHealthResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GetInstanceHealthResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetInstanceHealthResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GetInstanceHealthResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GetInstanceHealthResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetInstanceHealthResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GetInstanceHealthResponse> parser()
Returns
TypeDescription
Parser<GetInstanceHealthResponse>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GetInstanceHealthResponse getDefaultInstanceForType()
Returns
TypeDescription
GetInstanceHealthResponse

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.

getParserForType()

public Parser<GetInstanceHealthResponse> getParserForType()
Returns
TypeDescription
Parser<GetInstanceHealthResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GetInstanceHealthResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GetInstanceHealthResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException