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.v1beta2.Document.Page.Dimension
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.Dimension.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Document.Page.Dimension build()
Returns
buildPartial()
public Document.Page.Dimension buildPartial()
Returns
clear()
public Document.Page.Dimension.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Document.Page.Dimension.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearHeight()
public Document.Page.Dimension.Builder clearHeight()
Page height.
float height = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Page.Dimension.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearUnit()
public Document.Page.Dimension.Builder clearUnit()
Dimension unit.
string unit = 3;
Returns
clearWidth()
public Document.Page.Dimension.Builder clearWidth()
Page width.
float width = 1;
Returns
clone()
public Document.Page.Dimension.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Document.Page.Dimension getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getHeight()
Page height.
float height = 2;
Returns
Type | Description |
float | The height.
|
getUnit()
Dimension unit.
string unit = 3;
Returns
Type | Description |
String | The unit.
|
getUnitBytes()
public ByteString getUnitBytes()
Dimension unit.
string unit = 3;
Returns
getWidth()
Page width.
float width = 1;
Returns
Type | Description |
float | The width.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Document.Page.Dimension other)
public Document.Page.Dimension.Builder mergeFrom(Document.Page.Dimension other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Page.Dimension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Document.Page.Dimension.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.Dimension.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.Dimension.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setHeight(float value)
public Document.Page.Dimension.Builder setHeight(float value)
Page height.
float height = 2;
Parameter
Name | Description |
value | float
The height to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Page.Dimension.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnit(String value)
public Document.Page.Dimension.Builder setUnit(String value)
Dimension unit.
string unit = 3;
Parameter
Name | Description |
value | String
The unit to set.
|
Returns
setUnitBytes(ByteString value)
public Document.Page.Dimension.Builder setUnitBytes(ByteString value)
Dimension unit.
string unit = 3;
Parameter
Name | Description |
value | ByteString
The bytes for unit to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.Dimension.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setWidth(float value)
public Document.Page.Dimension.Builder setWidth(float value)
Page width.
float width = 1;
Parameter
Name | Description |
value | float
The width to set.
|
Returns