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/automl/v1/data_items.proto 18 19 package com.google.cloud.automl.v1; 20 21 public interface DocumentOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.Document) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * An input config specifying the content of the document. 31 * </pre> 32 * 33 * <code>.google.cloud.automl.v1.DocumentInputConfig input_config = 1;</code> 34 * 35 * @return Whether the inputConfig field is set. 36 */ hasInputConfig()37 boolean hasInputConfig(); 38 /** 39 * 40 * 41 * <pre> 42 * An input config specifying the content of the document. 43 * </pre> 44 * 45 * <code>.google.cloud.automl.v1.DocumentInputConfig input_config = 1;</code> 46 * 47 * @return The inputConfig. 48 */ getInputConfig()49 com.google.cloud.automl.v1.DocumentInputConfig getInputConfig(); 50 /** 51 * 52 * 53 * <pre> 54 * An input config specifying the content of the document. 55 * </pre> 56 * 57 * <code>.google.cloud.automl.v1.DocumentInputConfig input_config = 1;</code> 58 */ getInputConfigOrBuilder()59 com.google.cloud.automl.v1.DocumentInputConfigOrBuilder getInputConfigOrBuilder(); 60 61 /** 62 * 63 * 64 * <pre> 65 * The plain text version of this document. 66 * </pre> 67 * 68 * <code>.google.cloud.automl.v1.TextSnippet document_text = 2;</code> 69 * 70 * @return Whether the documentText field is set. 71 */ hasDocumentText()72 boolean hasDocumentText(); 73 /** 74 * 75 * 76 * <pre> 77 * The plain text version of this document. 78 * </pre> 79 * 80 * <code>.google.cloud.automl.v1.TextSnippet document_text = 2;</code> 81 * 82 * @return The documentText. 83 */ getDocumentText()84 com.google.cloud.automl.v1.TextSnippet getDocumentText(); 85 /** 86 * 87 * 88 * <pre> 89 * The plain text version of this document. 90 * </pre> 91 * 92 * <code>.google.cloud.automl.v1.TextSnippet document_text = 2;</code> 93 */ getDocumentTextOrBuilder()94 com.google.cloud.automl.v1.TextSnippetOrBuilder getDocumentTextOrBuilder(); 95 96 /** 97 * 98 * 99 * <pre> 100 * Describes the layout of the document. 101 * Sorted by [page_number][]. 102 * </pre> 103 * 104 * <code>repeated .google.cloud.automl.v1.Document.Layout layout = 3;</code> 105 */ getLayoutList()106 java.util.List<com.google.cloud.automl.v1.Document.Layout> getLayoutList(); 107 /** 108 * 109 * 110 * <pre> 111 * Describes the layout of the document. 112 * Sorted by [page_number][]. 113 * </pre> 114 * 115 * <code>repeated .google.cloud.automl.v1.Document.Layout layout = 3;</code> 116 */ getLayout(int index)117 com.google.cloud.automl.v1.Document.Layout getLayout(int index); 118 /** 119 * 120 * 121 * <pre> 122 * Describes the layout of the document. 123 * Sorted by [page_number][]. 124 * </pre> 125 * 126 * <code>repeated .google.cloud.automl.v1.Document.Layout layout = 3;</code> 127 */ getLayoutCount()128 int getLayoutCount(); 129 /** 130 * 131 * 132 * <pre> 133 * Describes the layout of the document. 134 * Sorted by [page_number][]. 135 * </pre> 136 * 137 * <code>repeated .google.cloud.automl.v1.Document.Layout layout = 3;</code> 138 */ 139 java.util.List<? extends com.google.cloud.automl.v1.Document.LayoutOrBuilder> getLayoutOrBuilderList()140 getLayoutOrBuilderList(); 141 /** 142 * 143 * 144 * <pre> 145 * Describes the layout of the document. 146 * Sorted by [page_number][]. 147 * </pre> 148 * 149 * <code>repeated .google.cloud.automl.v1.Document.Layout layout = 3;</code> 150 */ getLayoutOrBuilder(int index)151 com.google.cloud.automl.v1.Document.LayoutOrBuilder getLayoutOrBuilder(int index); 152 153 /** 154 * 155 * 156 * <pre> 157 * The dimensions of the page in the document. 158 * </pre> 159 * 160 * <code>.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;</code> 161 * 162 * @return Whether the documentDimensions field is set. 163 */ hasDocumentDimensions()164 boolean hasDocumentDimensions(); 165 /** 166 * 167 * 168 * <pre> 169 * The dimensions of the page in the document. 170 * </pre> 171 * 172 * <code>.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;</code> 173 * 174 * @return The documentDimensions. 175 */ getDocumentDimensions()176 com.google.cloud.automl.v1.DocumentDimensions getDocumentDimensions(); 177 /** 178 * 179 * 180 * <pre> 181 * The dimensions of the page in the document. 182 * </pre> 183 * 184 * <code>.google.cloud.automl.v1.DocumentDimensions document_dimensions = 4;</code> 185 */ getDocumentDimensionsOrBuilder()186 com.google.cloud.automl.v1.DocumentDimensionsOrBuilder getDocumentDimensionsOrBuilder(); 187 188 /** 189 * 190 * 191 * <pre> 192 * Number of pages in the document. 193 * </pre> 194 * 195 * <code>int32 page_count = 5;</code> 196 * 197 * @return The pageCount. 198 */ getPageCount()199 int getPageCount(); 200 } 201