Class Dimensions (0.3.0)

public final class Dimensions extends GeneratedMessageV3 implements DimensionsOrBuilder

Represents the dimensions of an object.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Dimensions

Implements

DimensionsOrBuilder

Static Fields

DEPTH_INCHES_FIELD_NUMBER

public static final int DEPTH_INCHES_FIELD_NUMBER
Field Value
Type Description
int

HEIGHT_INCHES_FIELD_NUMBER

public static final int HEIGHT_INCHES_FIELD_NUMBER
Field Value
Type Description
int

WIDTH_INCHES_FIELD_NUMBER

public static final int WIDTH_INCHES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Dimensions getDefaultInstance()
Returns
Type Description
Dimensions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Dimensions.Builder newBuilder()
Returns
Type Description
Dimensions.Builder

newBuilder(Dimensions prototype)

public static Dimensions.Builder newBuilder(Dimensions prototype)
Parameter
Name Description
prototype Dimensions
Returns
Type Description
Dimensions.Builder

parseDelimitedFrom(InputStream input)

public static Dimensions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Dimensions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Dimensions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dimensions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Dimensions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Dimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Dimensions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Dimensions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Dimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Dimensions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Dimensions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Dimensions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Dimensions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dimensions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Dimensions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Dimensions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Dimensions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dimensions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Dimensions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Dimensions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Dimensions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dimensions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Dimensions> parser()
Returns
Type Description
Parser<Dimensions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Dimensions getDefaultInstanceForType()
Returns
Type Description
Dimensions

getDepthInches()

public float getDepthInches()

Required. Depth in inches.

float depth_inches = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
float

The depthInches.

getHeightInches()

public float getHeightInches()

Required. Height in inches.

float height_inches = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
float

The heightInches.

getParserForType()

public Parser<Dimensions> getParserForType()
Returns
Type Description
Parser<Dimensions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWidthInches()

public float getWidthInches()

Required. Width in inches.

float width_inches = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
float

The widthInches.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Dimensions.Builder newBuilderForType()
Returns
Type Description
Dimensions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Dimensions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Dimensions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Dimensions.Builder toBuilder()
Returns
Type Description
Dimensions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException