public static final class Protos.Value.Scalar.Builder extends <any> implements Protos.Value.ScalarOrBuilder
mesos.Value.Scalar
Modifier and Type | Method and Description |
---|---|
Protos.Value.Scalar.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Value.Scalar |
build() |
Protos.Value.Scalar |
buildPartial() |
Protos.Value.Scalar.Builder |
clear() |
Protos.Value.Scalar.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Value.Scalar.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Value.Scalar.Builder |
clearValue()
Scalar values are represented using floating point.
|
Protos.Value.Scalar.Builder |
clone() |
Protos.Value.Scalar |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getValue()
Scalar values are represented using floating point.
|
boolean |
hasValue()
Scalar values are represented using floating point.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Value.Scalar.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Value.Scalar.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Value.Scalar.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Value.Scalar.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Value.Scalar.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Value.Scalar.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Value.Scalar.Builder |
setValue(double value)
Scalar values are represented using floating point.
|
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Value.Scalar.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Value.Scalar getDefaultInstanceForType()
public Protos.Value.Scalar build()
public Protos.Value.Scalar buildPartial()
public Protos.Value.Scalar.Builder clone()
public Protos.Value.Scalar.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Value.Scalar.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Value.Scalar.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Value.Scalar.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Value.Scalar.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Value.Scalar.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Value.Scalar.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasValue()
Scalar values are represented using floating point. To reduce the chance of unpredictable floating point behavior due to roundoff error, Mesos only supports three decimal digits of precision for scalar resource values. That is, floating point values are converted to a fixed point format that supports three decimal digits of precision, and then converted back to floating point on output. Any additional precision in scalar resource values is discarded (via rounding).
required double value = 1;
hasValue
in interface Protos.Value.ScalarOrBuilder
public double getValue()
Scalar values are represented using floating point. To reduce the chance of unpredictable floating point behavior due to roundoff error, Mesos only supports three decimal digits of precision for scalar resource values. That is, floating point values are converted to a fixed point format that supports three decimal digits of precision, and then converted back to floating point on output. Any additional precision in scalar resource values is discarded (via rounding).
required double value = 1;
getValue
in interface Protos.Value.ScalarOrBuilder
public Protos.Value.Scalar.Builder setValue(double value)
Scalar values are represented using floating point. To reduce the chance of unpredictable floating point behavior due to roundoff error, Mesos only supports three decimal digits of precision for scalar resource values. That is, floating point values are converted to a fixed point format that supports three decimal digits of precision, and then converted back to floating point on output. Any additional precision in scalar resource values is discarded (via rounding).
required double value = 1;
public Protos.Value.Scalar.Builder clearValue()
Scalar values are represented using floating point. To reduce the chance of unpredictable floating point behavior due to roundoff error, Mesos only supports three decimal digits of precision for scalar resource values. That is, floating point values are converted to a fixed point format that supports three decimal digits of precision, and then converted back to floating point on output. Any additional precision in scalar resource values is discarded (via rounding).
required double value = 1;
public final Protos.Value.Scalar.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Value.Scalar.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)