Class RuntimeMetrics.Builder (1.81.0)

public static final class RuntimeMetrics.Builder extends GeneratedMessage.Builder<RuntimeMetrics.Builder> implements RuntimeMetricsOrBuilder

Contains runtime daemon metrics, such as OS and kernels and sessions stats.

Protobuf type google.cloud.notebooks.v1.RuntimeMetrics

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RuntimeMetrics build()
Returns
Type Description
RuntimeMetrics

buildPartial()

public RuntimeMetrics buildPartial()
Returns
Type Description
RuntimeMetrics

clear()

public RuntimeMetrics.Builder clear()
Returns
Type Description
RuntimeMetrics.Builder
Overrides

clearSystemMetrics()

public RuntimeMetrics.Builder clearSystemMetrics()
Returns
Type Description
RuntimeMetrics.Builder

containsSystemMetrics(String key)

public boolean containsSystemMetrics(String key)

Output only. The system metrics.

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public RuntimeMetrics getDefaultInstanceForType()
Returns
Type Description
RuntimeMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableSystemMetrics() (deprecated)

public Map<String,String> getMutableSystemMetrics()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getSystemMetrics() (deprecated)

public Map<String,String> getSystemMetrics()
Returns
Type Description
Map<String,String>

getSystemMetricsCount()

public int getSystemMetricsCount()

Output only. The system metrics.

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

Returns
Type Description
int

getSystemMetricsMap()

public Map<String,String> getSystemMetricsMap()

Output only. The system metrics.

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

Returns
Type Description
Map<String,String>

getSystemMetricsOrDefault(String key, String defaultValue)

public String getSystemMetricsOrDefault(String key, String defaultValue)

Output only. The system metrics.

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

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getSystemMetricsOrThrow(String key)

public String getSystemMetricsOrThrow(String key)

Output only. The system metrics.

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

Parameter
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RuntimeMetrics other)

public RuntimeMetrics.Builder mergeFrom(RuntimeMetrics other)
Parameter
Name Description
other RuntimeMetrics
Returns
Type Description
RuntimeMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RuntimeMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuntimeMetrics.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RuntimeMetrics.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RuntimeMetrics.Builder
Overrides

putAllSystemMetrics(Map<String,String> values)

public RuntimeMetrics.Builder putAllSystemMetrics(Map<String,String> values)

Output only. The system metrics.

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

Parameter
Name Description
values Map<String,String>
Returns
Type Description
RuntimeMetrics.Builder

putSystemMetrics(String key, String value)

public RuntimeMetrics.Builder putSystemMetrics(String key, String value)

Output only. The system metrics.

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

Parameters
Name Description
key String
value String
Returns
Type Description
RuntimeMetrics.Builder

removeSystemMetrics(String key)

public RuntimeMetrics.Builder removeSystemMetrics(String key)

Output only. The system metrics.

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

Parameter
Name Description
key String
Returns
Type Description
RuntimeMetrics.Builder