Class Document.Style.FontSize (2.28.0)

public static final class Document.Style.FontSize extends GeneratedMessageV3 implements Document.Style.FontSizeOrBuilder

Font size with unit.

Protobuf type google.cloud.documentai.v1beta2.Document.Style.FontSize

Static Fields

SIZE_FIELD_NUMBER

public static final int SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

UNIT_FIELD_NUMBER

public static final int UNIT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Document.Style.FontSize getDefaultInstance()
Returns
TypeDescription
Document.Style.FontSize

getDescriptor()

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

newBuilder()

public static Document.Style.FontSize.Builder newBuilder()
Returns
TypeDescription
Document.Style.FontSize.Builder

newBuilder(Document.Style.FontSize prototype)

public static Document.Style.FontSize.Builder newBuilder(Document.Style.FontSize prototype)
Parameter
NameDescription
prototypeDocument.Style.FontSize
Returns
TypeDescription
Document.Style.FontSize.Builder

parseDelimitedFrom(InputStream input)

public static Document.Style.FontSize parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.Style.FontSize parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Document.Style.FontSize parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Document.Style.FontSize parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Document.Style.FontSize parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Document.Style.FontSize parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.Style.FontSize parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Document.Style.FontSize parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.Style.FontSize parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Document.Style.FontSize parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Document.Style.FontSize parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Style.FontSize
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Document.Style.FontSize> parser()
Returns
TypeDescription
Parser<FontSize>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Document.Style.FontSize getDefaultInstanceForType()
Returns
TypeDescription
Document.Style.FontSize

getParserForType()

public Parser<Document.Style.FontSize> getParserForType()
Returns
TypeDescription
Parser<FontSize>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSize()

public float getSize()

Font size for the text.

float size = 1;

Returns
TypeDescription
float

The size.

getUnit()

public String getUnit()

Unit for the font size. Follows CSS naming (such as in, px, and pt).

string unit = 2;

Returns
TypeDescription
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

Unit for the font size. Follows CSS naming (such as in, px, and pt).

string unit = 2;

Returns
TypeDescription
ByteString

The bytes for unit.

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 Document.Style.FontSize.Builder newBuilderForType()
Returns
TypeDescription
Document.Style.FontSize.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Document.Style.FontSize.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Document.Style.FontSize.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Document.Style.FontSize.Builder toBuilder()
Returns
TypeDescription
Document.Style.FontSize.Builder

writeTo(CodedOutputStream output)

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