Class CapacityQuantityInterval (1.26.0)

public final class CapacityQuantityInterval extends GeneratedMessageV3 implements CapacityQuantityIntervalOrBuilder

Deprecated: Use Vehicle.LoadLimit.Interval instead.

Protobuf type google.cloud.optimization.v1.CapacityQuantityInterval

Static Fields

MAX_VALUE_FIELD_NUMBER

public static final int MAX_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_VALUE_FIELD_NUMBER

public static final int MIN_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CapacityQuantityInterval getDefaultInstance()
Returns
TypeDescription
CapacityQuantityInterval

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CapacityQuantityInterval.Builder newBuilder()
Returns
TypeDescription
CapacityQuantityInterval.Builder

newBuilder(CapacityQuantityInterval prototype)

public static CapacityQuantityInterval.Builder newBuilder(CapacityQuantityInterval prototype)
Parameter
NameDescription
prototypeCapacityQuantityInterval
Returns
TypeDescription
CapacityQuantityInterval.Builder

parseDelimitedFrom(InputStream input)

public static CapacityQuantityInterval parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CapacityQuantityInterval parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CapacityQuantityInterval parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CapacityQuantityInterval parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CapacityQuantityInterval parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CapacityQuantityInterval parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CapacityQuantityInterval parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CapacityQuantityInterval parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CapacityQuantityInterval parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CapacityQuantityInterval parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CapacityQuantityInterval parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CapacityQuantityInterval parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CapacityQuantityInterval
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CapacityQuantityInterval> parser()
Returns
TypeDescription
Parser<CapacityQuantityInterval>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CapacityQuantityInterval getDefaultInstanceForType()
Returns
TypeDescription
CapacityQuantityInterval

getMaxValue()

public long getMaxValue()

optional int64 max_value = 3;

Returns
TypeDescription
long

The maxValue.

getMinValue()

public long getMinValue()

optional int64 min_value = 2;

Returns
TypeDescription
long

The minValue.

getParserForType()

public Parser<CapacityQuantityInterval> getParserForType()
Returns
TypeDescription
Parser<CapacityQuantityInterval>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public String getType()

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

hasMaxValue()

public boolean hasMaxValue()

optional int64 max_value = 3;

Returns
TypeDescription
boolean

Whether the maxValue field is set.

hasMinValue()

public boolean hasMinValue()

optional int64 min_value = 2;

Returns
TypeDescription
boolean

Whether the minValue field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CapacityQuantityInterval.Builder newBuilderForType()
Returns
TypeDescription
CapacityQuantityInterval.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CapacityQuantityInterval.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CapacityQuantityInterval.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CapacityQuantityInterval.Builder toBuilder()
Returns
TypeDescription
CapacityQuantityInterval.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException