Class Document.Page.Dimension.Builder (2.24.0)

public static final class Document.Page.Dimension.Builder extends GeneratedMessageV3.Builder<Document.Page.Dimension.Builder> implements Document.Page.DimensionOrBuilder

Dimension for the page.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Dimension

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.Dimension.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

build()

public Document.Page.Dimension build()
Returns
TypeDescription
Document.Page.Dimension

buildPartial()

public Document.Page.Dimension buildPartial()
Returns
TypeDescription
Document.Page.Dimension

clear()

public Document.Page.Dimension.Builder clear()
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Document.Page.Dimension.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

clearHeight()

public Document.Page.Dimension.Builder clearHeight()

Page height.

float height = 2;

Returns
TypeDescription
Document.Page.Dimension.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Page.Dimension.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

clearUnit()

public Document.Page.Dimension.Builder clearUnit()

Dimension unit.

string unit = 3;

Returns
TypeDescription
Document.Page.Dimension.Builder

This builder for chaining.

clearWidth()

public Document.Page.Dimension.Builder clearWidth()

Page width.

float width = 1;

Returns
TypeDescription
Document.Page.Dimension.Builder

This builder for chaining.

clone()

public Document.Page.Dimension.Builder clone()
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

getDefaultInstanceForType()

public Document.Page.Dimension getDefaultInstanceForType()
Returns
TypeDescription
Document.Page.Dimension

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeight()

public float getHeight()

Page height.

float height = 2;

Returns
TypeDescription
float

The height.

getUnit()

public String getUnit()

Dimension unit.

string unit = 3;

Returns
TypeDescription
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

Dimension unit.

string unit = 3;

Returns
TypeDescription
ByteString

The bytes for unit.

getWidth()

public float getWidth()

Page width.

float width = 1;

Returns
TypeDescription
float

The width.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Document.Page.Dimension other)

public Document.Page.Dimension.Builder mergeFrom(Document.Page.Dimension other)
Parameter
NameDescription
otherDocument.Page.Dimension
Returns
TypeDescription
Document.Page.Dimension.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.Page.Dimension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Document.Page.Dimension.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.Dimension.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.Dimension.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

setHeight(float value)

public Document.Page.Dimension.Builder setHeight(float value)

Page height.

float height = 2;

Parameter
NameDescription
valuefloat

The height to set.

Returns
TypeDescription
Document.Page.Dimension.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Document.Page.Dimension.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

setUnit(String value)

public Document.Page.Dimension.Builder setUnit(String value)

Dimension unit.

string unit = 3;

Parameter
NameDescription
valueString

The unit to set.

Returns
TypeDescription
Document.Page.Dimension.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public Document.Page.Dimension.Builder setUnitBytes(ByteString value)

Dimension unit.

string unit = 3;

Parameter
NameDescription
valueByteString

The bytes for unit to set.

Returns
TypeDescription
Document.Page.Dimension.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.Dimension.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.Page.Dimension.Builder
Overrides

setWidth(float value)

public Document.Page.Dimension.Builder setWidth(float value)

Page width.

float width = 1;

Parameter
NameDescription
valuefloat

The width to set.

Returns
TypeDescription
Document.Page.Dimension.Builder

This builder for chaining.