Class RuntimeMetrics.Builder (1.10.0)

public static final class RuntimeMetrics.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RuntimeMetrics build()
Returns
TypeDescription
RuntimeMetrics

buildPartial()

public RuntimeMetrics buildPartial()
Returns
TypeDescription
RuntimeMetrics

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSystemMetrics()

public RuntimeMetrics.Builder clearSystemMetrics()
Returns
TypeDescription
RuntimeMetrics.Builder

clone()

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

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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public RuntimeMetrics getDefaultInstanceForType()
Returns
TypeDescription
RuntimeMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableSystemMetrics()

public Map<String,String> getMutableSystemMetrics()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getSystemMetrics()

public Map<String,String> getSystemMetrics()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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(RuntimeMetrics other)

public RuntimeMetrics.Builder mergeFrom(RuntimeMetrics other)
Parameter
NameDescription
otherRuntimeMetrics
Returns
TypeDescription
RuntimeMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RuntimeMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
RuntimeMetrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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