- 3.76.0 (latest)
 - 3.74.0
 - 3.73.0
 - 3.72.0
 - 3.71.0
 - 3.70.0
 - 3.68.0
 - 3.66.0
 - 3.65.0
 - 3.62.0
 - 3.61.0
 - 3.60.0
 - 3.58.0
 - 3.57.0
 - 3.56.0
 - 3.55.0
 - 3.54.0
 - 3.53.0
 - 3.52.0
 - 3.51.0
 - 3.50.0
 - 3.49.0
 - 3.47.0
 - 3.46.0
 - 3.45.0
 - 3.44.0
 - 3.43.0
 - 3.42.0
 - 3.41.0
 - 3.40.0
 - 3.39.0
 - 3.38.0
 - 3.37.0
 - 3.35.0
 - 3.34.0
 - 3.33.0
 - 3.32.0
 - 3.31.0
 - 3.30.0
 - 3.29.0
 - 3.28.0
 - 3.27.0
 - 3.26.0
 - 3.25.0
 - 3.22.0
 - 3.21.0
 - 3.20.0
 - 3.19.0
 - 3.18.0
 - 3.17.0
 - 3.16.0
 - 3.15.0
 - 3.14.0
 - 3.13.0
 - 3.12.0
 - 3.11.0
 - 3.10.0
 - 3.9.0
 - 3.7.0
 - 3.6.0
 - 3.5.0
 - 3.4.0
 - 3.3.0
 - 3.2.0
 - 3.1.3
 - 2.1.4
 - 2.0.29
 
public static final class Page.Builder extends GeneratedMessageV3.Builder<Page.Builder> implements PageOrBuilderDetected page from OCR.
 Protobuf type google.cloud.vision.v1p2beta1.Page
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Page.BuilderImplements
PageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addAllBlocks(Iterable<? extends Block> values)
public Page.Builder addAllBlocks(Iterable<? extends Block> values)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<? extends com.google.cloud.vision.v1p2beta1.Block> | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
addBlocks(Block value)
public Page.Builder addBlocks(Block value)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Block | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
addBlocks(Block.Builder builderForValue)
public Page.Builder addBlocks(Block.Builder builderForValue)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        Block.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
addBlocks(int index, Block value)
public Page.Builder addBlocks(int index, Block value)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        Block | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
addBlocks(int index, Block.Builder builderForValue)
public Page.Builder addBlocks(int index, Block.Builder builderForValue)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        Block.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
addBlocksBuilder()
public Block.Builder addBlocksBuilder()List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Returns | |
|---|---|
| Type | Description | 
Block.Builder | 
        |
addBlocksBuilder(int index)
public Block.Builder addBlocksBuilder(int index)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
Block.Builder | 
        |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Page.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
build()
public Page build()| Returns | |
|---|---|
| Type | Description | 
Page | 
        |
buildPartial()
public Page buildPartial()| Returns | |
|---|---|
| Type | Description | 
Page | 
        |
clear()
public Page.Builder clear()| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
clearBlocks()
public Page.Builder clearBlocks()List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
clearConfidence()
public Page.Builder clearConfidence()Confidence of the OCR results on the page. Range [0, 1].
 float confidence = 5;
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public Page.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
clearHeight()
public Page.Builder clearHeight()Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
 int32 height = 3;
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public Page.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
clearProperty()
public Page.Builder clearProperty()Additional information detected on the page.
 .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
clearWidth()
public Page.Builder clearWidth()Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
 int32 width = 2;
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        This builder for chaining.  | 
      
clone()
public Page.Builder clone()| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
getBlocks(int index)
public Block getBlocks(int index)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
Block | 
        |
getBlocksBuilder(int index)
public Block.Builder getBlocksBuilder(int index)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
Block.Builder | 
        |
getBlocksBuilderList()
public List<Block.Builder> getBlocksBuilderList()List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Returns | |
|---|---|
| Type | Description | 
List<Builder> | 
        |
getBlocksCount()
public int getBlocksCount()List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Returns | |
|---|---|
| Type | Description | 
int | 
        |
getBlocksList()
public List<Block> getBlocksList()List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Returns | |
|---|---|
| Type | Description | 
List<Block> | 
        |
getBlocksOrBuilder(int index)
public BlockOrBuilder getBlocksOrBuilder(int index)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
BlockOrBuilder | 
        |
getBlocksOrBuilderList()
public List<? extends BlockOrBuilder> getBlocksOrBuilderList()List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Returns | |
|---|---|
| Type | Description | 
List<? extends com.google.cloud.vision.v1p2beta1.BlockOrBuilder> | 
        |
getConfidence()
public float getConfidence()Confidence of the OCR results on the page. Range [0, 1].
 float confidence = 5;
| Returns | |
|---|---|
| Type | Description | 
float | 
        The confidence.  | 
      
getDefaultInstanceForType()
public Page getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
Page | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getHeight()
public int getHeight()Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
 int32 height = 3;
| Returns | |
|---|---|
| Type | Description | 
int | 
        The height.  | 
      
getProperty()
public TextAnnotation.TextProperty getProperty()Additional information detected on the page.
 .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
| Returns | |
|---|---|
| Type | Description | 
TextAnnotation.TextProperty | 
        The property.  | 
      
getPropertyBuilder()
public TextAnnotation.TextProperty.Builder getPropertyBuilder()Additional information detected on the page.
 .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
| Returns | |
|---|---|
| Type | Description | 
TextAnnotation.TextProperty.Builder | 
        |
getPropertyOrBuilder()
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()Additional information detected on the page.
 .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
| Returns | |
|---|---|
| Type | Description | 
TextAnnotation.TextPropertyOrBuilder | 
        |
getWidth()
public int getWidth()Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
 int32 width = 2;
| Returns | |
|---|---|
| Type | Description | 
int | 
        The width.  | 
      
hasProperty()
public boolean hasProperty()Additional information detected on the page.
 .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the property field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(Page other)
public Page.Builder mergeFrom(Page other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Page | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Page.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public Page.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
mergeProperty(TextAnnotation.TextProperty value)
public Page.Builder mergeProperty(TextAnnotation.TextProperty value)Additional information detected on the page.
 .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        TextAnnotation.TextProperty | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Page.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
removeBlocks(int index)
public Page.Builder removeBlocks(int index)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
setBlocks(int index, Block value)
public Page.Builder setBlocks(int index, Block value)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        Block | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
setBlocks(int index, Block.Builder builderForValue)
public Page.Builder setBlocks(int index, Block.Builder builderForValue)List of blocks of text, images etc on this page.
 repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        Block.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
setConfidence(float value)
public Page.Builder setConfidence(float value)Confidence of the OCR results on the page. Range [0, 1].
 float confidence = 5;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        floatThe confidence to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public Page.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
setHeight(int value)
public Page.Builder setHeight(int value)Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
 int32 height = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe height to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        This builder for chaining.  | 
      
setProperty(TextAnnotation.TextProperty value)
public Page.Builder setProperty(TextAnnotation.TextProperty value)Additional information detected on the page.
 .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        TextAnnotation.TextProperty | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
setProperty(TextAnnotation.TextProperty.Builder builderForValue)
public Page.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)Additional information detected on the page.
 .google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        TextAnnotation.TextProperty.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Page.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
setUnknownFields(UnknownFieldSet unknownFields)
public final Page.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        |
setWidth(int value)
public Page.Builder setWidth(int value)Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
 int32 width = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe width to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Page.Builder | 
        This builder for chaining.  |