1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/vision/v1/text_annotation.proto 18 19 package com.google.cloud.vision.v1; 20 21 public interface TextAnnotationOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.TextAnnotation) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * List of pages detected by OCR. 31 * </pre> 32 * 33 * <code>repeated .google.cloud.vision.v1.Page pages = 1;</code> 34 */ getPagesList()35 java.util.List<com.google.cloud.vision.v1.Page> getPagesList(); 36 /** 37 * 38 * 39 * <pre> 40 * List of pages detected by OCR. 41 * </pre> 42 * 43 * <code>repeated .google.cloud.vision.v1.Page pages = 1;</code> 44 */ getPages(int index)45 com.google.cloud.vision.v1.Page getPages(int index); 46 /** 47 * 48 * 49 * <pre> 50 * List of pages detected by OCR. 51 * </pre> 52 * 53 * <code>repeated .google.cloud.vision.v1.Page pages = 1;</code> 54 */ getPagesCount()55 int getPagesCount(); 56 /** 57 * 58 * 59 * <pre> 60 * List of pages detected by OCR. 61 * </pre> 62 * 63 * <code>repeated .google.cloud.vision.v1.Page pages = 1;</code> 64 */ getPagesOrBuilderList()65 java.util.List<? extends com.google.cloud.vision.v1.PageOrBuilder> getPagesOrBuilderList(); 66 /** 67 * 68 * 69 * <pre> 70 * List of pages detected by OCR. 71 * </pre> 72 * 73 * <code>repeated .google.cloud.vision.v1.Page pages = 1;</code> 74 */ getPagesOrBuilder(int index)75 com.google.cloud.vision.v1.PageOrBuilder getPagesOrBuilder(int index); 76 77 /** 78 * 79 * 80 * <pre> 81 * UTF-8 text detected on the pages. 82 * </pre> 83 * 84 * <code>string text = 2;</code> 85 * 86 * @return The text. 87 */ getText()88 java.lang.String getText(); 89 /** 90 * 91 * 92 * <pre> 93 * UTF-8 text detected on the pages. 94 * </pre> 95 * 96 * <code>string text = 2;</code> 97 * 98 * @return The bytes for text. 99 */ getTextBytes()100 com.google.protobuf.ByteString getTextBytes(); 101 } 102