public static final class Protos.Metric.Builder extends <any> implements Protos.MetricOrBuilder
Metric consists of a name and optionally its value.Protobuf type
mesos.Metric
Modifier and Type | Method and Description |
---|---|
Protos.Metric.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Metric |
build() |
Protos.Metric |
buildPartial() |
Protos.Metric.Builder |
clear() |
Protos.Metric.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Metric.Builder |
clearName()
required string name = 1; |
Protos.Metric.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Metric.Builder |
clearValue()
optional double value = 2; |
Protos.Metric.Builder |
clone() |
Protos.Metric |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
double |
getValue()
optional double value = 2; |
boolean |
hasName()
required string name = 1; |
boolean |
hasValue()
optional double value = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Metric.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Metric.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Metric.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Metric.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Metric.Builder |
setName(java.lang.String value)
required string name = 1; |
Protos.Metric.Builder |
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1; |
Protos.Metric.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Metric.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Metric.Builder |
setValue(double value)
optional double value = 2; |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Metric.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Metric getDefaultInstanceForType()
public Protos.Metric build()
public Protos.Metric buildPartial()
public Protos.Metric.Builder clone()
public Protos.Metric.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Metric.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Metric.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Metric.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Metric.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Metric.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Metric.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasName()
required string name = 1;
hasName
in interface Protos.MetricOrBuilder
public java.lang.String getName()
required string name = 1;
getName
in interface Protos.MetricOrBuilder
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
getNameBytes
in interface Protos.MetricOrBuilder
public Protos.Metric.Builder setName(java.lang.String value)
required string name = 1;
public Protos.Metric.Builder clearName()
required string name = 1;
public Protos.Metric.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
public boolean hasValue()
optional double value = 2;
hasValue
in interface Protos.MetricOrBuilder
public double getValue()
optional double value = 2;
getValue
in interface Protos.MetricOrBuilder
public Protos.Metric.Builder setValue(double value)
optional double value = 2;
public Protos.Metric.Builder clearValue()
optional double value = 2;
public final Protos.Metric.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Metric.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)