public static final class Document.Style.FontSize.Builder extends GeneratedMessage.Builder<Document.Style.FontSize.Builder> implements Document.Style.FontSizeOrBuilderFont size with unit.
Protobuf type google.cloud.documentai.v1beta3.Document.Style.FontSize
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Document.Style.FontSize.BuilderImplements
Document.Style.FontSizeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Document.Style.FontSize build()| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize |
|
buildPartial()
public Document.Style.FontSize buildPartial()| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize |
|
clear()
public Document.Style.FontSize.Builder clear()| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
|
clearSize()
public Document.Style.FontSize.Builder clearSize()Font size for the text.
float size = 1;
| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
This builder for chaining. |
clearUnit()
public Document.Style.FontSize.Builder clearUnit() Unit for the font size. Follows CSS naming (such as in, px, and
pt).
string unit = 2;
| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Document.Style.FontSize getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSize()
public float getSize()Font size for the text.
float size = 1;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for unit. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Document.Style.FontSize other)
public Document.Style.FontSize.Builder mergeFrom(Document.Style.FontSize other)| Parameter | |
|---|---|
| Name | Description |
other |
Document.Style.FontSize |
| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Style.FontSize.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Document.Style.FontSize.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
|
setSize(float value)
public Document.Style.FontSize.Builder setSize(float value)Font size for the text.
float size = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
floatThe size to set. |
| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
This builder for chaining. |
setUnit(String value)
public Document.Style.FontSize.Builder setUnit(String value) Unit for the font size. Follows CSS naming (such as in, px, and
pt).
string unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
This builder for chaining. |
setUnitBytes(ByteString value)
public Document.Style.FontSize.Builder setUnitBytes(ByteString value) Unit for the font size. Follows CSS naming (such as in, px, and
pt).
string unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for unit to set. |
| Returns | |
|---|---|
| Type | Description |
Document.Style.FontSize.Builder |
This builder for chaining. |