public static final class Protos.Value.Scalar extends com.google.protobuf.GeneratedMessageV3 implements Protos.Value.ScalarOrBuilder
mesos.Value.Scalar
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Value.Scalar.Builder
Protobuf type
mesos.Value.Scalar |
Modifier and Type | Field and Description |
---|---|
static <any> |
PARSER
Deprecated.
|
static int |
VALUE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Value.Scalar |
getDefaultInstance() |
Protos.Value.Scalar |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
<any> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
double |
getValue()
Scalar values are represented using floating point.
|
int |
hashCode() |
boolean |
hasValue()
Scalar values are represented using floating point.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Value.Scalar.Builder |
newBuilder() |
static Protos.Value.Scalar.Builder |
newBuilder(Protos.Value.Scalar prototype) |
Protos.Value.Scalar.Builder |
newBuilderForType() |
protected Protos.Value.Scalar.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Value.Scalar |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Value.Scalar |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Value.Scalar |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Value.Scalar |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Value.Scalar |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Value.Scalar |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Value.Scalar |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Value.Scalar |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Value.Scalar |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Value.Scalar |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Value.Scalar.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int VALUE_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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 final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.Value.Scalar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Value.Scalar parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Value.Scalar parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Value.Scalar parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Value.Scalar parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Value.Scalar parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Value.Scalar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Value.Scalar parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Value.Scalar parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Value.Scalar parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Value.Scalar.Builder newBuilderForType()
public static Protos.Value.Scalar.Builder newBuilder()
public static Protos.Value.Scalar.Builder newBuilder(Protos.Value.Scalar prototype)
public Protos.Value.Scalar.Builder toBuilder()
protected Protos.Value.Scalar.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Value.Scalar getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Value.Scalar getDefaultInstanceForType()