Class CapacityQuantity (1.25.0)

public final class CapacityQuantity extends GeneratedMessageV3 implements CapacityQuantityOrBuilder

Deprecated: Use Vehicle.LoadLimit.Interval instead.

Protobuf type google.cloud.optimization.v1.CapacityQuantity

Static Fields

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CapacityQuantity getDefaultInstance()
Returns
TypeDescription
CapacityQuantity

getDescriptor()

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

newBuilder()

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

newBuilder(CapacityQuantity prototype)

public static CapacityQuantity.Builder newBuilder(CapacityQuantity prototype)
Parameter
NameDescription
prototypeCapacityQuantity
Returns
TypeDescription
CapacityQuantity.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CapacityQuantity getDefaultInstanceForType()
Returns
TypeDescription
CapacityQuantity

getParserForType()

public Parser<CapacityQuantity> getParserForType()
Returns
TypeDescription
Parser<CapacityQuantity>
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.

getValue()

public long getValue()

int64 value = 2;

Returns
TypeDescription
long

The value.

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 CapacityQuantity.Builder newBuilderForType()
Returns
TypeDescription
CapacityQuantity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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