Package com.google.cloud.documentai.v1
Class Document.Page.Token.StyleInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.Page.Token.StyleInfo.Builder>
com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.Builder
- All Implemented Interfaces:
Document.Page.Token.StyleInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.Page.Token.StyleInfo
public static final class Document.Page.Token.StyleInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.Page.Token.StyleInfo.Builder>
implements Document.Page.Token.StyleInfoOrBuilder
Font and other text style attributes.Protobuf type
google.cloud.documentai.v1.Document.Page.Token.StyleInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Color of the background.Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least `700`).Font size in points (`1` point is `¹⁄₇₂` inches).Name or style of the font.TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).Whether the text is handwritten.Whether the text is italic.Letter spacing in points.Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.Whether the text is in small caps.Whether the text is strikethrough.Whether the text is a subscript.Whether the text is a superscript.Color of the text.Whether the text is underlined.Color of the background.Color of the background.Color of the background.booleangetBold()Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least `700`).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintFont size in points (`1` point is `¹⁄₇₂` inches).Name or style of the font.com.google.protobuf.ByteStringName or style of the font.intTrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).booleanWhether the text is handwritten.booleanWhether the text is italic.doubleLetter spacing in points.doubleFont size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.booleanWhether the text is in small caps.booleanWhether the text is strikethrough.booleanWhether the text is a subscript.booleanWhether the text is a superscript.Color of the text.Color of the text.Color of the text.booleanWhether the text is underlined.booleanColor of the background.booleanColor of the text.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBackgroundColor(Color value) Color of the background.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTextColor(Color value) Color of the text.setBackgroundColor(Color value) Color of the background.setBackgroundColor(Color.Builder builderForValue) Color of the background.setBold(boolean value) Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least `700`).setFontSize(int value) Font size in points (`1` point is `¹⁄₇₂` inches).setFontType(String value) Name or style of the font.setFontTypeBytes(com.google.protobuf.ByteString value) Name or style of the font.setFontWeight(int value) TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).setHandwritten(boolean value) Whether the text is handwritten.setItalic(boolean value) Whether the text is italic.setLetterSpacing(double value) Letter spacing in points.setPixelFontSize(double value) Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.setSmallcaps(boolean value) Whether the text is in small caps.setStrikeout(boolean value) Whether the text is strikethrough.setSubscript(boolean value) Whether the text is a subscript.setSuperscript(boolean value) Whether the text is a superscript.setTextColor(Color value) Color of the text.setTextColor(Color.Builder builderForValue) Color of the text.setUnderlined(boolean value) Whether the text is underlined.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Document.Page.Token.StyleInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Document.Page.Token.StyleInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Document.Page.Token.StyleInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Page.Token.StyleInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.Page.Token.StyleInfo.Builder>
-
mergeFrom
public Document.Page.Token.StyleInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Page.Token.StyleInfo.Builder>- Throws:
IOException
-
getFontSize
public int getFontSize()Font size in points (`1` point is `¹⁄₇₂` inches).
int32 font_size = 1;- Specified by:
getFontSizein interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The fontSize.
-
setFontSize
Font size in points (`1` point is `¹⁄₇₂` inches).
int32 font_size = 1;- Parameters:
value- The fontSize to set.- Returns:
- This builder for chaining.
-
clearFontSize
Font size in points (`1` point is `¹⁄₇₂` inches).
int32 font_size = 1;- Returns:
- This builder for chaining.
-
getPixelFontSize
public double getPixelFontSize()Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.
double pixel_font_size = 2;- Specified by:
getPixelFontSizein interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The pixelFontSize.
-
setPixelFontSize
Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.
double pixel_font_size = 2;- Parameters:
value- The pixelFontSize to set.- Returns:
- This builder for chaining.
-
clearPixelFontSize
Font size in pixels, equal to _unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ * _resolution_ ÷ `72.0`.
double pixel_font_size = 2;- Returns:
- This builder for chaining.
-
getLetterSpacing
public double getLetterSpacing()Letter spacing in points.
double letter_spacing = 3;- Specified by:
getLetterSpacingin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The letterSpacing.
-
setLetterSpacing
Letter spacing in points.
double letter_spacing = 3;- Parameters:
value- The letterSpacing to set.- Returns:
- This builder for chaining.
-
clearLetterSpacing
Letter spacing in points.
double letter_spacing = 3;- Returns:
- This builder for chaining.
-
getFontType
Name or style of the font.
string font_type = 4;- Specified by:
getFontTypein interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The fontType.
-
getFontTypeBytes
public com.google.protobuf.ByteString getFontTypeBytes()Name or style of the font.
string font_type = 4;- Specified by:
getFontTypeBytesin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The bytes for fontType.
-
setFontType
Name or style of the font.
string font_type = 4;- Parameters:
value- The fontType to set.- Returns:
- This builder for chaining.
-
clearFontType
Name or style of the font.
string font_type = 4;- Returns:
- This builder for chaining.
-
setFontTypeBytes
Name or style of the font.
string font_type = 4;- Parameters:
value- The bytes for fontType to set.- Returns:
- This builder for chaining.
-
getBold
public boolean getBold()Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least `700`).
bool bold = 5;- Specified by:
getBoldin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The bold.
-
setBold
Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least `700`).
bool bold = 5;- Parameters:
value- The bold to set.- Returns:
- This builder for chaining.
-
clearBold
Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least `700`).
bool bold = 5;- Returns:
- This builder for chaining.
-
getItalic
public boolean getItalic()Whether the text is italic.
bool italic = 6;- Specified by:
getItalicin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The italic.
-
setItalic
Whether the text is italic.
bool italic = 6;- Parameters:
value- The italic to set.- Returns:
- This builder for chaining.
-
clearItalic
Whether the text is italic.
bool italic = 6;- Returns:
- This builder for chaining.
-
getUnderlined
public boolean getUnderlined()Whether the text is underlined.
bool underlined = 7;- Specified by:
getUnderlinedin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The underlined.
-
setUnderlined
Whether the text is underlined.
bool underlined = 7;- Parameters:
value- The underlined to set.- Returns:
- This builder for chaining.
-
clearUnderlined
Whether the text is underlined.
bool underlined = 7;- Returns:
- This builder for chaining.
-
getStrikeout
public boolean getStrikeout()Whether the text is strikethrough. This feature is not supported yet.
bool strikeout = 8;- Specified by:
getStrikeoutin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The strikeout.
-
setStrikeout
Whether the text is strikethrough. This feature is not supported yet.
bool strikeout = 8;- Parameters:
value- The strikeout to set.- Returns:
- This builder for chaining.
-
clearStrikeout
Whether the text is strikethrough. This feature is not supported yet.
bool strikeout = 8;- Returns:
- This builder for chaining.
-
getSubscript
public boolean getSubscript()Whether the text is a subscript. This feature is not supported yet.
bool subscript = 9;- Specified by:
getSubscriptin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The subscript.
-
setSubscript
Whether the text is a subscript. This feature is not supported yet.
bool subscript = 9;- Parameters:
value- The subscript to set.- Returns:
- This builder for chaining.
-
clearSubscript
Whether the text is a subscript. This feature is not supported yet.
bool subscript = 9;- Returns:
- This builder for chaining.
-
getSuperscript
public boolean getSuperscript()Whether the text is a superscript. This feature is not supported yet.
bool superscript = 10;- Specified by:
getSuperscriptin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The superscript.
-
setSuperscript
Whether the text is a superscript. This feature is not supported yet.
bool superscript = 10;- Parameters:
value- The superscript to set.- Returns:
- This builder for chaining.
-
clearSuperscript
Whether the text is a superscript. This feature is not supported yet.
bool superscript = 10;- Returns:
- This builder for chaining.
-
getSmallcaps
public boolean getSmallcaps()Whether the text is in small caps. This feature is not supported yet.
bool smallcaps = 11;- Specified by:
getSmallcapsin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The smallcaps.
-
setSmallcaps
Whether the text is in small caps. This feature is not supported yet.
bool smallcaps = 11;- Parameters:
value- The smallcaps to set.- Returns:
- This builder for chaining.
-
clearSmallcaps
Whether the text is in small caps. This feature is not supported yet.
bool smallcaps = 11;- Returns:
- This builder for chaining.
-
getFontWeight
public int getFontWeight()TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`.
int32 font_weight = 12;- Specified by:
getFontWeightin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The fontWeight.
-
setFontWeight
TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`.
int32 font_weight = 12;- Parameters:
value- The fontWeight to set.- Returns:
- This builder for chaining.
-
clearFontWeight
TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`.
int32 font_weight = 12;- Returns:
- This builder for chaining.
-
getHandwritten
public boolean getHandwritten()Whether the text is handwritten.
bool handwritten = 13;- Specified by:
getHandwrittenin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The handwritten.
-
setHandwritten
Whether the text is handwritten.
bool handwritten = 13;- Parameters:
value- The handwritten to set.- Returns:
- This builder for chaining.
-
clearHandwritten
Whether the text is handwritten.
bool handwritten = 13;- Returns:
- This builder for chaining.
-
hasTextColor
public boolean hasTextColor()Color of the text.
.google.type.Color text_color = 14;- Specified by:
hasTextColorin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- Whether the textColor field is set.
-
getTextColor
Color of the text.
.google.type.Color text_color = 14;- Specified by:
getTextColorin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The textColor.
-
setTextColor
Color of the text.
.google.type.Color text_color = 14; -
setTextColor
Color of the text.
.google.type.Color text_color = 14; -
mergeTextColor
Color of the text.
.google.type.Color text_color = 14; -
clearTextColor
Color of the text.
.google.type.Color text_color = 14; -
getTextColorBuilder
Color of the text.
.google.type.Color text_color = 14; -
getTextColorOrBuilder
Color of the text.
.google.type.Color text_color = 14;- Specified by:
getTextColorOrBuilderin interfaceDocument.Page.Token.StyleInfoOrBuilder
-
hasBackgroundColor
public boolean hasBackgroundColor()Color of the background.
.google.type.Color background_color = 15;- Specified by:
hasBackgroundColorin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- Whether the backgroundColor field is set.
-
getBackgroundColor
Color of the background.
.google.type.Color background_color = 15;- Specified by:
getBackgroundColorin interfaceDocument.Page.Token.StyleInfoOrBuilder- Returns:
- The backgroundColor.
-
setBackgroundColor
Color of the background.
.google.type.Color background_color = 15; -
setBackgroundColor
Color of the background.
.google.type.Color background_color = 15; -
mergeBackgroundColor
Color of the background.
.google.type.Color background_color = 15; -
clearBackgroundColor
Color of the background.
.google.type.Color background_color = 15; -
getBackgroundColorBuilder
Color of the background.
.google.type.Color background_color = 15; -
getBackgroundColorOrBuilder
Color of the background.
.google.type.Color background_color = 15;- Specified by:
getBackgroundColorOrBuilderin interfaceDocument.Page.Token.StyleInfoOrBuilder
-