| 1 |
// Copyright 2019 Google LLC. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
// |
| 15 |
|
| 16 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 17 |
// versions: |
| 18 |
// protoc-gen-go v1.26.0 |
| 19 |
// protoc v3.12.2 |
| 20 |
// source: google/cloud/documentai/v1beta1/document_understanding.proto |
| 21 |
|
| 22 |
package documentai |
| 23 |
|
| 24 |
import ( |
| 25 |
context "context" |
| 26 |
reflect "reflect" |
| 27 |
sync "sync" |
| 28 |
|
| 29 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 30 |
longrunning "google.golang.org/genproto/googleapis/longrunning" |
| 31 |
grpc "google.golang.org/grpc" |
| 32 |
codes "google.golang.org/grpc/codes" |
| 33 |
status "google.golang.org/grpc/status" |
| 34 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 35 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 36 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 37 |
) |
| 38 |
|
| 39 |
const ( |
| 40 |
// Verify that this generated code is sufficiently up-to-date. |
| 41 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 42 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 43 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 44 |
) |
| 45 |
|
| 46 |
type OperationMetadata_State int32 |
| 47 |
|
| 48 |
const ( |
| 49 |
// The default value. This value is used if the state is omitted. |
| 50 |
OperationMetadata_STATE_UNSPECIFIED OperationMetadata_State = 0 |
| 51 |
// Request is received. |
| 52 |
OperationMetadata_ACCEPTED OperationMetadata_State = 1 |
| 53 |
// Request operation is waiting for scheduling. |
| 54 |
OperationMetadata_WAITING OperationMetadata_State = 2 |
| 55 |
// Request is being processed. |
| 56 |
OperationMetadata_RUNNING OperationMetadata_State = 3 |
| 57 |
// The batch processing completed successfully. |
| 58 |
OperationMetadata_SUCCEEDED OperationMetadata_State = 4 |
| 59 |
// The batch processing was cancelled. |
| 60 |
OperationMetadata_CANCELLED OperationMetadata_State = 5 |
| 61 |
// The batch processing has failed. |
| 62 |
OperationMetadata_FAILED OperationMetadata_State = 6 |
| 63 |
) |
| 64 |
|
| 65 |
// Enum value maps for OperationMetadata_State. |
| 66 |
var ( |
| 67 |
OperationMetadata_State_name = map[int32]string{ |
| 68 |
0: "STATE_UNSPECIFIED", |
| 69 |
1: "ACCEPTED", |
| 70 |
2: "WAITING", |
| 71 |
3: "RUNNING", |
| 72 |
4: "SUCCEEDED", |
| 73 |
5: "CANCELLED", |
| 74 |
6: "FAILED", |
| 75 |
} |
| 76 |
OperationMetadata_State_value = map[string]int32{ |
| 77 |
"STATE_UNSPECIFIED": 0, |
| 78 |
"ACCEPTED": 1, |
| 79 |
"WAITING": 2, |
| 80 |
"RUNNING": 3, |
| 81 |
"SUCCEEDED": 4, |
| 82 |
"CANCELLED": 5, |
| 83 |
"FAILED": 6, |
| 84 |
} |
| 85 |
) |
| 86 |
|
| 87 |
func (x OperationMetadata_State) Enum() *OperationMetadata_State { |
| 88 |
p := new(OperationMetadata_State) |
| 89 |
*p = x |
| 90 |
return p |
| 91 |
} |
| 92 |
|
| 93 |
func (x OperationMetadata_State) String() string { |
| 94 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 95 |
} |
| 96 |
|
| 97 |
func (OperationMetadata_State) Descriptor() protoreflect.EnumDescriptor { |
| 98 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_enumTypes[0].Descriptor() |
| 99 |
} |
| 100 |
|
| 101 |
func (OperationMetadata_State) Type() protoreflect.EnumType { |
| 102 |
return &file_google_cloud_documentai_v1beta1_document_understanding_proto_enumTypes[0] |
| 103 |
} |
| 104 |
|
| 105 |
func (x OperationMetadata_State) Number() protoreflect.EnumNumber { |
| 106 |
return protoreflect.EnumNumber(x) |
| 107 |
} |
| 108 |
|
| 109 |
// Deprecated: Use OperationMetadata_State.Descriptor instead. |
| 110 |
func (OperationMetadata_State) EnumDescriptor() ([]byte, []int) { |
| 111 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{14, 0} |
| 112 |
} |
| 113 |
|
| 114 |
// Request to batch process documents as an asynchronous operation. |
| 115 |
type BatchProcessDocumentsRequest struct { |
| 116 |
state protoimpl.MessageState |
| 117 |
sizeCache protoimpl.SizeCache |
| 118 |
unknownFields protoimpl.UnknownFields |
| 119 |
|
| 120 |
// Required. Individual requests for each document. |
| 121 |
Requests []*ProcessDocumentRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` |
| 122 |
// Target project and location to make a call. |
| 123 |
// |
| 124 |
// Format: `projects/{project-id}/locations/{location-id}`. |
| 125 |
// |
| 126 |
// If no location is specified, a region will be chosen automatically. |
| 127 |
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` |
| 128 |
} |
| 129 |
|
| 130 |
func (x *BatchProcessDocumentsRequest) Reset() { |
| 131 |
*x = BatchProcessDocumentsRequest{} |
| 132 |
if protoimpl.UnsafeEnabled { |
| 133 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[0] |
| 134 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 135 |
ms.StoreMessageInfo(mi) |
| 136 |
} |
| 137 |
} |
| 138 |
|
| 139 |
func (x *BatchProcessDocumentsRequest) String() string { |
| 140 |
return protoimpl.X.MessageStringOf(x) |
| 141 |
} |
| 142 |
|
| 143 |
func (*BatchProcessDocumentsRequest) ProtoMessage() {} |
| 144 |
|
| 145 |
func (x *BatchProcessDocumentsRequest) ProtoReflect() protoreflect.Message { |
| 146 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[0] |
| 147 |
if protoimpl.UnsafeEnabled && x != nil { |
| 148 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 149 |
if ms.LoadMessageInfo() == nil { |
| 150 |
ms.StoreMessageInfo(mi) |
| 151 |
} |
| 152 |
return ms |
| 153 |
} |
| 154 |
return mi.MessageOf(x) |
| 155 |
} |
| 156 |
|
| 157 |
// Deprecated: Use BatchProcessDocumentsRequest.ProtoReflect.Descriptor instead. |
| 158 |
func (*BatchProcessDocumentsRequest) Descriptor() ([]byte, []int) { |
| 159 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{0} |
| 160 |
} |
| 161 |
|
| 162 |
func (x *BatchProcessDocumentsRequest) GetRequests() []*ProcessDocumentRequest { |
| 163 |
if x != nil { |
| 164 |
return x.Requests |
| 165 |
} |
| 166 |
return nil |
| 167 |
} |
| 168 |
|
| 169 |
func (x *BatchProcessDocumentsRequest) GetParent() string { |
| 170 |
if x != nil { |
| 171 |
return x.Parent |
| 172 |
} |
| 173 |
return "" |
| 174 |
} |
| 175 |
|
| 176 |
// Request to process one document. |
| 177 |
type ProcessDocumentRequest struct { |
| 178 |
state protoimpl.MessageState |
| 179 |
sizeCache protoimpl.SizeCache |
| 180 |
unknownFields protoimpl.UnknownFields |
| 181 |
|
| 182 |
// Required. Information about the input file. |
| 183 |
InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` |
| 184 |
// Required. The desired output location. |
| 185 |
OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` |
| 186 |
// Specifies a known document type for deeper structure detection. Valid |
| 187 |
// values are currently "general" and "invoice". If not provided, "general"\ |
| 188 |
// is used as default. If any other value is given, the request is rejected. |
| 189 |
DocumentType string `protobuf:"bytes,3,opt,name=document_type,json=documentType,proto3" json:"document_type,omitempty"` |
| 190 |
// Controls table extraction behavior. If not specified, the system will |
| 191 |
// decide reasonable defaults. |
| 192 |
TableExtractionParams *TableExtractionParams `protobuf:"bytes,4,opt,name=table_extraction_params,json=tableExtractionParams,proto3" json:"table_extraction_params,omitempty"` |
| 193 |
// Controls form extraction behavior. If not specified, the system will |
| 194 |
// decide reasonable defaults. |
| 195 |
FormExtractionParams *FormExtractionParams `protobuf:"bytes,5,opt,name=form_extraction_params,json=formExtractionParams,proto3" json:"form_extraction_params,omitempty"` |
| 196 |
// Controls entity extraction behavior. If not specified, the system will |
| 197 |
// decide reasonable defaults. |
| 198 |
EntityExtractionParams *EntityExtractionParams `protobuf:"bytes,6,opt,name=entity_extraction_params,json=entityExtractionParams,proto3" json:"entity_extraction_params,omitempty"` |
| 199 |
// Controls OCR behavior. If not specified, the system will decide reasonable |
| 200 |
// defaults. |
| 201 |
OcrParams *OcrParams `protobuf:"bytes,7,opt,name=ocr_params,json=ocrParams,proto3" json:"ocr_params,omitempty"` |
| 202 |
} |
| 203 |
|
| 204 |
func (x *ProcessDocumentRequest) Reset() { |
| 205 |
*x = ProcessDocumentRequest{} |
| 206 |
if protoimpl.UnsafeEnabled { |
| 207 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[1] |
| 208 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 209 |
ms.StoreMessageInfo(mi) |
| 210 |
} |
| 211 |
} |
| 212 |
|
| 213 |
func (x *ProcessDocumentRequest) String() string { |
| 214 |
return protoimpl.X.MessageStringOf(x) |
| 215 |
} |
| 216 |
|
| 217 |
func (*ProcessDocumentRequest) ProtoMessage() {} |
| 218 |
|
| 219 |
func (x *ProcessDocumentRequest) ProtoReflect() protoreflect.Message { |
| 220 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[1] |
| 221 |
if protoimpl.UnsafeEnabled && x != nil { |
| 222 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 223 |
if ms.LoadMessageInfo() == nil { |
| 224 |
ms.StoreMessageInfo(mi) |
| 225 |
} |
| 226 |
return ms |
| 227 |
} |
| 228 |
return mi.MessageOf(x) |
| 229 |
} |
| 230 |
|
| 231 |
// Deprecated: Use ProcessDocumentRequest.ProtoReflect.Descriptor instead. |
| 232 |
func (*ProcessDocumentRequest) Descriptor() ([]byte, []int) { |
| 233 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{1} |
| 234 |
} |
| 235 |
|
| 236 |
func (x *ProcessDocumentRequest) GetInputConfig() *InputConfig { |
| 237 |
if x != nil { |
| 238 |
return x.InputConfig |
| 239 |
} |
| 240 |
return nil |
| 241 |
} |
| 242 |
|
| 243 |
func (x *ProcessDocumentRequest) GetOutputConfig() *OutputConfig { |
| 244 |
if x != nil { |
| 245 |
return x.OutputConfig |
| 246 |
} |
| 247 |
return nil |
| 248 |
} |
| 249 |
|
| 250 |
func (x *ProcessDocumentRequest) GetDocumentType() string { |
| 251 |
if x != nil { |
| 252 |
return x.DocumentType |
| 253 |
} |
| 254 |
return "" |
| 255 |
} |
| 256 |
|
| 257 |
func (x *ProcessDocumentRequest) GetTableExtractionParams() *TableExtractionParams { |
| 258 |
if x != nil { |
| 259 |
return x.TableExtractionParams |
| 260 |
} |
| 261 |
return nil |
| 262 |
} |
| 263 |
|
| 264 |
func (x *ProcessDocumentRequest) GetFormExtractionParams() *FormExtractionParams { |
| 265 |
if x != nil { |
| 266 |
return x.FormExtractionParams |
| 267 |
} |
| 268 |
return nil |
| 269 |
} |
| 270 |
|
| 271 |
func (x *ProcessDocumentRequest) GetEntityExtractionParams() *EntityExtractionParams { |
| 272 |
if x != nil { |
| 273 |
return x.EntityExtractionParams |
| 274 |
} |
| 275 |
return nil |
| 276 |
} |
| 277 |
|
| 278 |
func (x *ProcessDocumentRequest) GetOcrParams() *OcrParams { |
| 279 |
if x != nil { |
| 280 |
return x.OcrParams |
| 281 |
} |
| 282 |
return nil |
| 283 |
} |
| 284 |
|
| 285 |
// Response to an batch document processing request. This is returned in |
| 286 |
// the LRO Operation after the operation is complete. |
| 287 |
type BatchProcessDocumentsResponse struct { |
| 288 |
state protoimpl.MessageState |
| 289 |
sizeCache protoimpl.SizeCache |
| 290 |
unknownFields protoimpl.UnknownFields |
| 291 |
|
| 292 |
// Responses for each individual document. |
| 293 |
Responses []*ProcessDocumentResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` |
| 294 |
} |
| 295 |
|
| 296 |
func (x *BatchProcessDocumentsResponse) Reset() { |
| 297 |
*x = BatchProcessDocumentsResponse{} |
| 298 |
if protoimpl.UnsafeEnabled { |
| 299 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[2] |
| 300 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 301 |
ms.StoreMessageInfo(mi) |
| 302 |
} |
| 303 |
} |
| 304 |
|
| 305 |
func (x *BatchProcessDocumentsResponse) String() string { |
| 306 |
return protoimpl.X.MessageStringOf(x) |
| 307 |
} |
| 308 |
|
| 309 |
func (*BatchProcessDocumentsResponse) ProtoMessage() {} |
| 310 |
|
| 311 |
func (x *BatchProcessDocumentsResponse) ProtoReflect() protoreflect.Message { |
| 312 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[2] |
| 313 |
if protoimpl.UnsafeEnabled && x != nil { |
| 314 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 315 |
if ms.LoadMessageInfo() == nil { |
| 316 |
ms.StoreMessageInfo(mi) |
| 317 |
} |
| 318 |
return ms |
| 319 |
} |
| 320 |
return mi.MessageOf(x) |
| 321 |
} |
| 322 |
|
| 323 |
// Deprecated: Use BatchProcessDocumentsResponse.ProtoReflect.Descriptor instead. |
| 324 |
func (*BatchProcessDocumentsResponse) Descriptor() ([]byte, []int) { |
| 325 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{2} |
| 326 |
} |
| 327 |
|
| 328 |
func (x *BatchProcessDocumentsResponse) GetResponses() []*ProcessDocumentResponse { |
| 329 |
if x != nil { |
| 330 |
return x.Responses |
| 331 |
} |
| 332 |
return nil |
| 333 |
} |
| 334 |
|
| 335 |
// Response to a single document processing request. |
| 336 |
type ProcessDocumentResponse struct { |
| 337 |
state protoimpl.MessageState |
| 338 |
sizeCache protoimpl.SizeCache |
| 339 |
unknownFields protoimpl.UnknownFields |
| 340 |
|
| 341 |
// Information about the input file. This is the same as the corresponding |
| 342 |
// input config in the request. |
| 343 |
InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` |
| 344 |
// The output location of the parsed responses. The responses are written to |
| 345 |
// this location as JSON-serialized `Document` objects. |
| 346 |
OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` |
| 347 |
} |
| 348 |
|
| 349 |
func (x *ProcessDocumentResponse) Reset() { |
| 350 |
*x = ProcessDocumentResponse{} |
| 351 |
if protoimpl.UnsafeEnabled { |
| 352 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[3] |
| 353 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 354 |
ms.StoreMessageInfo(mi) |
| 355 |
} |
| 356 |
} |
| 357 |
|
| 358 |
func (x *ProcessDocumentResponse) String() string { |
| 359 |
return protoimpl.X.MessageStringOf(x) |
| 360 |
} |
| 361 |
|
| 362 |
func (*ProcessDocumentResponse) ProtoMessage() {} |
| 363 |
|
| 364 |
func (x *ProcessDocumentResponse) ProtoReflect() protoreflect.Message { |
| 365 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[3] |
| 366 |
if protoimpl.UnsafeEnabled && x != nil { |
| 367 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 368 |
if ms.LoadMessageInfo() == nil { |
| 369 |
ms.StoreMessageInfo(mi) |
| 370 |
} |
| 371 |
return ms |
| 372 |
} |
| 373 |
return mi.MessageOf(x) |
| 374 |
} |
| 375 |
|
| 376 |
// Deprecated: Use ProcessDocumentResponse.ProtoReflect.Descriptor instead. |
| 377 |
func (*ProcessDocumentResponse) Descriptor() ([]byte, []int) { |
| 378 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{3} |
| 379 |
} |
| 380 |
|
| 381 |
func (x *ProcessDocumentResponse) GetInputConfig() *InputConfig { |
| 382 |
if x != nil { |
| 383 |
return x.InputConfig |
| 384 |
} |
| 385 |
return nil |
| 386 |
} |
| 387 |
|
| 388 |
func (x *ProcessDocumentResponse) GetOutputConfig() *OutputConfig { |
| 389 |
if x != nil { |
| 390 |
return x.OutputConfig |
| 391 |
} |
| 392 |
return nil |
| 393 |
} |
| 394 |
|
| 395 |
// Parameters to control Optical Character Recognition (OCR) behavior. |
| 396 |
type OcrParams struct { |
| 397 |
state protoimpl.MessageState |
| 398 |
sizeCache protoimpl.SizeCache |
| 399 |
unknownFields protoimpl.UnknownFields |
| 400 |
|
| 401 |
// List of languages to use for OCR. In most cases, an empty value |
| 402 |
// yields the best results since it enables automatic language detection. For |
| 403 |
// languages based on the Latin alphabet, setting `language_hints` is not |
| 404 |
// needed. In rare cases, when the language of the text in the image is known, |
| 405 |
// setting a hint will help get better results (although it will be a |
| 406 |
// significant hindrance if the hint is wrong). Document processing returns an |
| 407 |
// error if one or more of the specified languages is not one of the |
| 408 |
// supported languages. |
| 409 |
LanguageHints []string `protobuf:"bytes,1,rep,name=language_hints,json=languageHints,proto3" json:"language_hints,omitempty"` |
| 410 |
} |
| 411 |
|
| 412 |
func (x *OcrParams) Reset() { |
| 413 |
*x = OcrParams{} |
| 414 |
if protoimpl.UnsafeEnabled { |
| 415 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[4] |
| 416 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 417 |
ms.StoreMessageInfo(mi) |
| 418 |
} |
| 419 |
} |
| 420 |
|
| 421 |
func (x *OcrParams) String() string { |
| 422 |
return protoimpl.X.MessageStringOf(x) |
| 423 |
} |
| 424 |
|
| 425 |
func (*OcrParams) ProtoMessage() {} |
| 426 |
|
| 427 |
func (x *OcrParams) ProtoReflect() protoreflect.Message { |
| 428 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[4] |
| 429 |
if protoimpl.UnsafeEnabled && x != nil { |
| 430 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 431 |
if ms.LoadMessageInfo() == nil { |
| 432 |
ms.StoreMessageInfo(mi) |
| 433 |
} |
| 434 |
return ms |
| 435 |
} |
| 436 |
return mi.MessageOf(x) |
| 437 |
} |
| 438 |
|
| 439 |
// Deprecated: Use OcrParams.ProtoReflect.Descriptor instead. |
| 440 |
func (*OcrParams) Descriptor() ([]byte, []int) { |
| 441 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{4} |
| 442 |
} |
| 443 |
|
| 444 |
func (x *OcrParams) GetLanguageHints() []string { |
| 445 |
if x != nil { |
| 446 |
return x.LanguageHints |
| 447 |
} |
| 448 |
return nil |
| 449 |
} |
| 450 |
|
| 451 |
// Parameters to control table extraction behavior. |
| 452 |
type TableExtractionParams struct { |
| 453 |
state protoimpl.MessageState |
| 454 |
sizeCache protoimpl.SizeCache |
| 455 |
unknownFields protoimpl.UnknownFields |
| 456 |
|
| 457 |
// Whether to enable table extraction. |
| 458 |
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| 459 |
// Optional. Table bounding box hints that can be provided to complex cases |
| 460 |
// which our algorithm cannot locate the table(s) in. |
| 461 |
TableBoundHints []*TableBoundHint `protobuf:"bytes,2,rep,name=table_bound_hints,json=tableBoundHints,proto3" json:"table_bound_hints,omitempty"` |
| 462 |
// Optional. Table header hints. The extraction will bias towards producing |
| 463 |
// these terms as table headers, which may improve accuracy. |
| 464 |
HeaderHints []string `protobuf:"bytes,3,rep,name=header_hints,json=headerHints,proto3" json:"header_hints,omitempty"` |
| 465 |
// Model version of the table extraction system. Default is "builtin/stable". |
| 466 |
// Specify "builtin/latest" for the latest model. |
| 467 |
ModelVersion string `protobuf:"bytes,4,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` |
| 468 |
} |
| 469 |
|
| 470 |
func (x *TableExtractionParams) Reset() { |
| 471 |
*x = TableExtractionParams{} |
| 472 |
if protoimpl.UnsafeEnabled { |
| 473 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[5] |
| 474 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 475 |
ms.StoreMessageInfo(mi) |
| 476 |
} |
| 477 |
} |
| 478 |
|
| 479 |
func (x *TableExtractionParams) String() string { |
| 480 |
return protoimpl.X.MessageStringOf(x) |
| 481 |
} |
| 482 |
|
| 483 |
func (*TableExtractionParams) ProtoMessage() {} |
| 484 |
|
| 485 |
func (x *TableExtractionParams) ProtoReflect() protoreflect.Message { |
| 486 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[5] |
| 487 |
if protoimpl.UnsafeEnabled && x != nil { |
| 488 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 489 |
if ms.LoadMessageInfo() == nil { |
| 490 |
ms.StoreMessageInfo(mi) |
| 491 |
} |
| 492 |
return ms |
| 493 |
} |
| 494 |
return mi.MessageOf(x) |
| 495 |
} |
| 496 |
|
| 497 |
// Deprecated: Use TableExtractionParams.ProtoReflect.Descriptor instead. |
| 498 |
func (*TableExtractionParams) Descriptor() ([]byte, []int) { |
| 499 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{5} |
| 500 |
} |
| 501 |
|
| 502 |
func (x *TableExtractionParams) GetEnabled() bool { |
| 503 |
if x != nil { |
| 504 |
return x.Enabled |
| 505 |
} |
| 506 |
return false |
| 507 |
} |
| 508 |
|
| 509 |
func (x *TableExtractionParams) GetTableBoundHints() []*TableBoundHint { |
| 510 |
if x != nil { |
| 511 |
return x.TableBoundHints |
| 512 |
} |
| 513 |
return nil |
| 514 |
} |
| 515 |
|
| 516 |
func (x *TableExtractionParams) GetHeaderHints() []string { |
| 517 |
if x != nil { |
| 518 |
return x.HeaderHints |
| 519 |
} |
| 520 |
return nil |
| 521 |
} |
| 522 |
|
| 523 |
func (x *TableExtractionParams) GetModelVersion() string { |
| 524 |
if x != nil { |
| 525 |
return x.ModelVersion |
| 526 |
} |
| 527 |
return "" |
| 528 |
} |
| 529 |
|
| 530 |
// A hint for a table bounding box on the page for table parsing. |
| 531 |
type TableBoundHint struct { |
| 532 |
state protoimpl.MessageState |
| 533 |
sizeCache protoimpl.SizeCache |
| 534 |
unknownFields protoimpl.UnknownFields |
| 535 |
|
| 536 |
// Optional. Page number for multi-paged inputs this hint applies to. If not |
| 537 |
// provided, this hint will apply to all pages by default. This value is |
| 538 |
// 1-based. |
| 539 |
PageNumber int32 `protobuf:"varint,1,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` |
| 540 |
// Bounding box hint for a table on this page. The coordinates must be |
| 541 |
// normalized to [0,1] and the bounding box must be an axis-aligned rectangle. |
| 542 |
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` |
| 543 |
} |
| 544 |
|
| 545 |
func (x *TableBoundHint) Reset() { |
| 546 |
*x = TableBoundHint{} |
| 547 |
if protoimpl.UnsafeEnabled { |
| 548 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[6] |
| 549 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 550 |
ms.StoreMessageInfo(mi) |
| 551 |
} |
| 552 |
} |
| 553 |
|
| 554 |
func (x *TableBoundHint) String() string { |
| 555 |
return protoimpl.X.MessageStringOf(x) |
| 556 |
} |
| 557 |
|
| 558 |
func (*TableBoundHint) ProtoMessage() {} |
| 559 |
|
| 560 |
func (x *TableBoundHint) ProtoReflect() protoreflect.Message { |
| 561 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[6] |
| 562 |
if protoimpl.UnsafeEnabled && x != nil { |
| 563 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 564 |
if ms.LoadMessageInfo() == nil { |
| 565 |
ms.StoreMessageInfo(mi) |
| 566 |
} |
| 567 |
return ms |
| 568 |
} |
| 569 |
return mi.MessageOf(x) |
| 570 |
} |
| 571 |
|
| 572 |
// Deprecated: Use TableBoundHint.ProtoReflect.Descriptor instead. |
| 573 |
func (*TableBoundHint) Descriptor() ([]byte, []int) { |
| 574 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{6} |
| 575 |
} |
| 576 |
|
| 577 |
func (x *TableBoundHint) GetPageNumber() int32 { |
| 578 |
if x != nil { |
| 579 |
return x.PageNumber |
| 580 |
} |
| 581 |
return 0 |
| 582 |
} |
| 583 |
|
| 584 |
func (x *TableBoundHint) GetBoundingBox() *BoundingPoly { |
| 585 |
if x != nil { |
| 586 |
return x.BoundingBox |
| 587 |
} |
| 588 |
return nil |
| 589 |
} |
| 590 |
|
| 591 |
// Parameters to control form extraction behavior. |
| 592 |
type FormExtractionParams struct { |
| 593 |
state protoimpl.MessageState |
| 594 |
sizeCache protoimpl.SizeCache |
| 595 |
unknownFields protoimpl.UnknownFields |
| 596 |
|
| 597 |
// Whether to enable form extraction. |
| 598 |
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| 599 |
// User can provide pairs of (key text, value type) to improve the parsing |
| 600 |
// result. |
| 601 |
// |
| 602 |
// For example, if a document has a field called "Date" that holds a date |
| 603 |
// value and a field called "Amount" that may hold either a currency value |
| 604 |
// (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the |
| 605 |
// following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": |
| 606 |
// "Amount", "value_types": [ "PRICE", "NUMBER" ]} ] |
| 607 |
// |
| 608 |
// If the value type is unknown, but you want to provide hints for the keys, |
| 609 |
// you can leave the value_types field blank. e.g. {"key": "Date", |
| 610 |
// "value_types": []} |
| 611 |
KeyValuePairHints []*KeyValuePairHint `protobuf:"bytes,2,rep,name=key_value_pair_hints,json=keyValuePairHints,proto3" json:"key_value_pair_hints,omitempty"` |
| 612 |
// Model version of the form extraction system. Default is |
| 613 |
// "builtin/stable". Specify "builtin/latest" for the latest model. |
| 614 |
ModelVersion string `protobuf:"bytes,3,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` |
| 615 |
} |
| 616 |
|
| 617 |
func (x *FormExtractionParams) Reset() { |
| 618 |
*x = FormExtractionParams{} |
| 619 |
if protoimpl.UnsafeEnabled { |
| 620 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[7] |
| 621 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 622 |
ms.StoreMessageInfo(mi) |
| 623 |
} |
| 624 |
} |
| 625 |
|
| 626 |
func (x *FormExtractionParams) String() string { |
| 627 |
return protoimpl.X.MessageStringOf(x) |
| 628 |
} |
| 629 |
|
| 630 |
func (*FormExtractionParams) ProtoMessage() {} |
| 631 |
|
| 632 |
func (x *FormExtractionParams) ProtoReflect() protoreflect.Message { |
| 633 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[7] |
| 634 |
if protoimpl.UnsafeEnabled && x != nil { |
| 635 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 636 |
if ms.LoadMessageInfo() == nil { |
| 637 |
ms.StoreMessageInfo(mi) |
| 638 |
} |
| 639 |
return ms |
| 640 |
} |
| 641 |
return mi.MessageOf(x) |
| 642 |
} |
| 643 |
|
| 644 |
// Deprecated: Use FormExtractionParams.ProtoReflect.Descriptor instead. |
| 645 |
func (*FormExtractionParams) Descriptor() ([]byte, []int) { |
| 646 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{7} |
| 647 |
} |
| 648 |
|
| 649 |
func (x *FormExtractionParams) GetEnabled() bool { |
| 650 |
if x != nil { |
| 651 |
return x.Enabled |
| 652 |
} |
| 653 |
return false |
| 654 |
} |
| 655 |
|
| 656 |
func (x *FormExtractionParams) GetKeyValuePairHints() []*KeyValuePairHint { |
| 657 |
if x != nil { |
| 658 |
return x.KeyValuePairHints |
| 659 |
} |
| 660 |
return nil |
| 661 |
} |
| 662 |
|
| 663 |
func (x *FormExtractionParams) GetModelVersion() string { |
| 664 |
if x != nil { |
| 665 |
return x.ModelVersion |
| 666 |
} |
| 667 |
return "" |
| 668 |
} |
| 669 |
|
| 670 |
// User-provided hint for key value pair. |
| 671 |
type KeyValuePairHint struct { |
| 672 |
state protoimpl.MessageState |
| 673 |
sizeCache protoimpl.SizeCache |
| 674 |
unknownFields protoimpl.UnknownFields |
| 675 |
|
| 676 |
// The key text for the hint. |
| 677 |
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 678 |
// Type of the value. This is case-insensitive, and could be one of: |
| 679 |
// ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER, |
| 680 |
// ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will |
| 681 |
// be ignored. |
| 682 |
ValueTypes []string `protobuf:"bytes,2,rep,name=value_types,json=valueTypes,proto3" json:"value_types,omitempty"` |
| 683 |
} |
| 684 |
|
| 685 |
func (x *KeyValuePairHint) Reset() { |
| 686 |
*x = KeyValuePairHint{} |
| 687 |
if protoimpl.UnsafeEnabled { |
| 688 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[8] |
| 689 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 690 |
ms.StoreMessageInfo(mi) |
| 691 |
} |
| 692 |
} |
| 693 |
|
| 694 |
func (x *KeyValuePairHint) String() string { |
| 695 |
return protoimpl.X.MessageStringOf(x) |
| 696 |
} |
| 697 |
|
| 698 |
func (*KeyValuePairHint) ProtoMessage() {} |
| 699 |
|
| 700 |
func (x *KeyValuePairHint) ProtoReflect() protoreflect.Message { |
| 701 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[8] |
| 702 |
if protoimpl.UnsafeEnabled && x != nil { |
| 703 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 704 |
if ms.LoadMessageInfo() == nil { |
| 705 |
ms.StoreMessageInfo(mi) |
| 706 |
} |
| 707 |
return ms |
| 708 |
} |
| 709 |
return mi.MessageOf(x) |
| 710 |
} |
| 711 |
|
| 712 |
// Deprecated: Use KeyValuePairHint.ProtoReflect.Descriptor instead. |
| 713 |
func (*KeyValuePairHint) Descriptor() ([]byte, []int) { |
| 714 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{8} |
| 715 |
} |
| 716 |
|
| 717 |
func (x *KeyValuePairHint) GetKey() string { |
| 718 |
if x != nil { |
| 719 |
return x.Key |
| 720 |
} |
| 721 |
return "" |
| 722 |
} |
| 723 |
|
| 724 |
func (x *KeyValuePairHint) GetValueTypes() []string { |
| 725 |
if x != nil { |
| 726 |
return x.ValueTypes |
| 727 |
} |
| 728 |
return nil |
| 729 |
} |
| 730 |
|
| 731 |
// Parameters to control entity extraction behavior. |
| 732 |
type EntityExtractionParams struct { |
| 733 |
state protoimpl.MessageState |
| 734 |
sizeCache protoimpl.SizeCache |
| 735 |
unknownFields protoimpl.UnknownFields |
| 736 |
|
| 737 |
// Whether to enable entity extraction. |
| 738 |
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| 739 |
// Model version of the entity extraction. Default is |
| 740 |
// "builtin/stable". Specify "builtin/latest" for the latest model. |
| 741 |
ModelVersion string `protobuf:"bytes,2,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` |
| 742 |
} |
| 743 |
|
| 744 |
func (x *EntityExtractionParams) Reset() { |
| 745 |
*x = EntityExtractionParams{} |
| 746 |
if protoimpl.UnsafeEnabled { |
| 747 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[9] |
| 748 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 749 |
ms.StoreMessageInfo(mi) |
| 750 |
} |
| 751 |
} |
| 752 |
|
| 753 |
func (x *EntityExtractionParams) String() string { |
| 754 |
return protoimpl.X.MessageStringOf(x) |
| 755 |
} |
| 756 |
|
| 757 |
func (*EntityExtractionParams) ProtoMessage() {} |
| 758 |
|
| 759 |
func (x *EntityExtractionParams) ProtoReflect() protoreflect.Message { |
| 760 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[9] |
| 761 |
if protoimpl.UnsafeEnabled && x != nil { |
| 762 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 763 |
if ms.LoadMessageInfo() == nil { |
| 764 |
ms.StoreMessageInfo(mi) |
| 765 |
} |
| 766 |
return ms |
| 767 |
} |
| 768 |
return mi.MessageOf(x) |
| 769 |
} |
| 770 |
|
| 771 |
// Deprecated: Use EntityExtractionParams.ProtoReflect.Descriptor instead. |
| 772 |
func (*EntityExtractionParams) Descriptor() ([]byte, []int) { |
| 773 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{9} |
| 774 |
} |
| 775 |
|
| 776 |
func (x *EntityExtractionParams) GetEnabled() bool { |
| 777 |
if x != nil { |
| 778 |
return x.Enabled |
| 779 |
} |
| 780 |
return false |
| 781 |
} |
| 782 |
|
| 783 |
func (x *EntityExtractionParams) GetModelVersion() string { |
| 784 |
if x != nil { |
| 785 |
return x.ModelVersion |
| 786 |
} |
| 787 |
return "" |
| 788 |
} |
| 789 |
|
| 790 |
// The desired input location and metadata. |
| 791 |
type InputConfig struct { |
| 792 |
state protoimpl.MessageState |
| 793 |
sizeCache protoimpl.SizeCache |
| 794 |
unknownFields protoimpl.UnknownFields |
| 795 |
|
| 796 |
// Required. |
| 797 |
// |
| 798 |
// Types that are assignable to Source: |
| 799 |
// *InputConfig_GcsSource |
| 800 |
Source isInputConfig_Source `protobuf_oneof:"source"` |
| 801 |
// Required. Mimetype of the input. Current supported mimetypes are |
| 802 |
// application/pdf, image/tiff, and image/gif. |
| 803 |
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` |
| 804 |
} |
| 805 |
|
| 806 |
func (x *InputConfig) Reset() { |
| 807 |
*x = InputConfig{} |
| 808 |
if protoimpl.UnsafeEnabled { |
| 809 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[10] |
| 810 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 811 |
ms.StoreMessageInfo(mi) |
| 812 |
} |
| 813 |
} |
| 814 |
|
| 815 |
func (x *InputConfig) String() string { |
| 816 |
return protoimpl.X.MessageStringOf(x) |
| 817 |
} |
| 818 |
|
| 819 |
func (*InputConfig) ProtoMessage() {} |
| 820 |
|
| 821 |
func (x *InputConfig) ProtoReflect() protoreflect.Message { |
| 822 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[10] |
| 823 |
if protoimpl.UnsafeEnabled && x != nil { |
| 824 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 825 |
if ms.LoadMessageInfo() == nil { |
| 826 |
ms.StoreMessageInfo(mi) |
| 827 |
} |
| 828 |
return ms |
| 829 |
} |
| 830 |
return mi.MessageOf(x) |
| 831 |
} |
| 832 |
|
| 833 |
// Deprecated: Use InputConfig.ProtoReflect.Descriptor instead. |
| 834 |
func (*InputConfig) Descriptor() ([]byte, []int) { |
| 835 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{10} |
| 836 |
} |
| 837 |
|
| 838 |
func (m *InputConfig) GetSource() isInputConfig_Source { |
| 839 |
if m != nil { |
| 840 |
return m.Source |
| 841 |
} |
| 842 |
return nil |
| 843 |
} |
| 844 |
|
| 845 |
func (x *InputConfig) GetGcsSource() *GcsSource { |
| 846 |
if x, ok := x.GetSource().(*InputConfig_GcsSource); ok { |
| 847 |
return x.GcsSource |
| 848 |
} |
| 849 |
return nil |
| 850 |
} |
| 851 |
|
| 852 |
func (x *InputConfig) GetMimeType() string { |
| 853 |
if x != nil { |
| 854 |
return x.MimeType |
| 855 |
} |
| 856 |
return "" |
| 857 |
} |
| 858 |
|
| 859 |
type isInputConfig_Source interface { |
| 860 |
isInputConfig_Source() |
| 861 |
} |
| 862 |
|
| 863 |
type InputConfig_GcsSource struct { |
| 864 |
// The Google Cloud Storage location to read the input from. This must be a |
| 865 |
// single file. |
| 866 |
GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"` |
| 867 |
} |
| 868 |
|
| 869 |
func (*InputConfig_GcsSource) isInputConfig_Source() {} |
| 870 |
|
| 871 |
// The desired output location and metadata. |
| 872 |
type OutputConfig struct { |
| 873 |
state protoimpl.MessageState |
| 874 |
sizeCache protoimpl.SizeCache |
| 875 |
unknownFields protoimpl.UnknownFields |
| 876 |
|
| 877 |
// Required. |
| 878 |
// |
| 879 |
// Types that are assignable to Destination: |
| 880 |
// *OutputConfig_GcsDestination |
| 881 |
Destination isOutputConfig_Destination `protobuf_oneof:"destination"` |
| 882 |
// The max number of pages to include into each output Document shard JSON on |
| 883 |
// Google Cloud Storage. |
| 884 |
// |
| 885 |
// The valid range is [1, 100]. If not specified, the default value is 20. |
| 886 |
// |
| 887 |
// For example, for one pdf file with 100 pages, 100 parsed pages will be |
| 888 |
// produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each |
| 889 |
// containing 20 parsed pages will be written under the prefix |
| 890 |
// [OutputConfig.gcs_destination.uri][] and suffix pages-x-to-y.json where |
| 891 |
// x and y are 1-indexed page numbers. |
| 892 |
// |
| 893 |
// Example GCS outputs with 157 pages and pages_per_shard = 50: |
| 894 |
// |
| 895 |
// <prefix>pages-001-to-050.json |
| 896 |
// <prefix>pages-051-to-100.json |
| 897 |
// <prefix>pages-101-to-150.json |
| 898 |
// <prefix>pages-151-to-157.json |
| 899 |
PagesPerShard int32 `protobuf:"varint,2,opt,name=pages_per_shard,json=pagesPerShard,proto3" json:"pages_per_shard,omitempty"` |
| 900 |
} |
| 901 |
|
| 902 |
func (x *OutputConfig) Reset() { |
| 903 |
*x = OutputConfig{} |
| 904 |
if protoimpl.UnsafeEnabled { |
| 905 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[11] |
| 906 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 907 |
ms.StoreMessageInfo(mi) |
| 908 |
} |
| 909 |
} |
| 910 |
|
| 911 |
func (x *OutputConfig) String() string { |
| 912 |
return protoimpl.X.MessageStringOf(x) |
| 913 |
} |
| 914 |
|
| 915 |
func (*OutputConfig) ProtoMessage() {} |
| 916 |
|
| 917 |
func (x *OutputConfig) ProtoReflect() protoreflect.Message { |
| 918 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[11] |
| 919 |
if protoimpl.UnsafeEnabled && x != nil { |
| 920 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 921 |
if ms.LoadMessageInfo() == nil { |
| 922 |
ms.StoreMessageInfo(mi) |
| 923 |
} |
| 924 |
return ms |
| 925 |
} |
| 926 |
return mi.MessageOf(x) |
| 927 |
} |
| 928 |
|
| 929 |
// Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead. |
| 930 |
func (*OutputConfig) Descriptor() ([]byte, []int) { |
| 931 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{11} |
| 932 |
} |
| 933 |
|
| 934 |
func (m *OutputConfig) GetDestination() isOutputConfig_Destination { |
| 935 |
if m != nil { |
| 936 |
return m.Destination |
| 937 |
} |
| 938 |
return nil |
| 939 |
} |
| 940 |
|
| 941 |
func (x *OutputConfig) GetGcsDestination() *GcsDestination { |
| 942 |
if x, ok := x.GetDestination().(*OutputConfig_GcsDestination); ok { |
| 943 |
return x.GcsDestination |
| 944 |
} |
| 945 |
return nil |
| 946 |
} |
| 947 |
|
| 948 |
func (x *OutputConfig) GetPagesPerShard() int32 { |
| 949 |
if x != nil { |
| 950 |
return x.PagesPerShard |
| 951 |
} |
| 952 |
return 0 |
| 953 |
} |
| 954 |
|
| 955 |
type isOutputConfig_Destination interface { |
| 956 |
isOutputConfig_Destination() |
| 957 |
} |
| 958 |
|
| 959 |
type OutputConfig_GcsDestination struct { |
| 960 |
// The Google Cloud Storage location to write the output to. |
| 961 |
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"` |
| 962 |
} |
| 963 |
|
| 964 |
func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {} |
| 965 |
|
| 966 |
// The Google Cloud Storage location where the input file will be read from. |
| 967 |
type GcsSource struct { |
| 968 |
state protoimpl.MessageState |
| 969 |
sizeCache protoimpl.SizeCache |
| 970 |
unknownFields protoimpl.UnknownFields |
| 971 |
|
| 972 |
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` |
| 973 |
} |
| 974 |
|
| 975 |
func (x *GcsSource) Reset() { |
| 976 |
*x = GcsSource{} |
| 977 |
if protoimpl.UnsafeEnabled { |
| 978 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[12] |
| 979 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 980 |
ms.StoreMessageInfo(mi) |
| 981 |
} |
| 982 |
} |
| 983 |
|
| 984 |
func (x *GcsSource) String() string { |
| 985 |
return protoimpl.X.MessageStringOf(x) |
| 986 |
} |
| 987 |
|
| 988 |
func (*GcsSource) ProtoMessage() {} |
| 989 |
|
| 990 |
func (x *GcsSource) ProtoReflect() protoreflect.Message { |
| 991 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[12] |
| 992 |
if protoimpl.UnsafeEnabled && x != nil { |
| 993 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 994 |
if ms.LoadMessageInfo() == nil { |
| 995 |
ms.StoreMessageInfo(mi) |
| 996 |
} |
| 997 |
return ms |
| 998 |
} |
| 999 |
return mi.MessageOf(x) |
| 1000 |
} |
| 1001 |
|
| 1002 |
// Deprecated: Use GcsSource.ProtoReflect.Descriptor instead. |
| 1003 |
func (*GcsSource) Descriptor() ([]byte, []int) { |
| 1004 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{12} |
| 1005 |
} |
| 1006 |
|
| 1007 |
func (x *GcsSource) GetUri() string { |
| 1008 |
if x != nil { |
| 1009 |
return x.Uri |
| 1010 |
} |
| 1011 |
return "" |
| 1012 |
} |
| 1013 |
|
| 1014 |
// The Google Cloud Storage location where the output file will be written to. |
| 1015 |
type GcsDestination struct { |
| 1016 |
state protoimpl.MessageState |
| 1017 |
sizeCache protoimpl.SizeCache |
| 1018 |
unknownFields protoimpl.UnknownFields |
| 1019 |
|
| 1020 |
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` |
| 1021 |
} |
| 1022 |
|
| 1023 |
func (x *GcsDestination) Reset() { |
| 1024 |
*x = GcsDestination{} |
| 1025 |
if protoimpl.UnsafeEnabled { |
| 1026 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[13] |
| 1027 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1028 |
ms.StoreMessageInfo(mi) |
| 1029 |
} |
| 1030 |
} |
| 1031 |
|
| 1032 |
func (x *GcsDestination) String() string { |
| 1033 |
return protoimpl.X.MessageStringOf(x) |
| 1034 |
} |
| 1035 |
|
| 1036 |
func (*GcsDestination) ProtoMessage() {} |
| 1037 |
|
| 1038 |
func (x *GcsDestination) ProtoReflect() protoreflect.Message { |
| 1039 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[13] |
| 1040 |
if protoimpl.UnsafeEnabled && x != nil { |
| 1041 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1042 |
if ms.LoadMessageInfo() == nil { |
| 1043 |
ms.StoreMessageInfo(mi) |
| 1044 |
} |
| 1045 |
return ms |
| 1046 |
} |
| 1047 |
return mi.MessageOf(x) |
| 1048 |
} |
| 1049 |
|
| 1050 |
// Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead. |
| 1051 |
func (*GcsDestination) Descriptor() ([]byte, []int) { |
| 1052 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{13} |
| 1053 |
} |
| 1054 |
|
| 1055 |
func (x *GcsDestination) GetUri() string { |
| 1056 |
if x != nil { |
| 1057 |
return x.Uri |
| 1058 |
} |
| 1059 |
return "" |
| 1060 |
} |
| 1061 |
|
| 1062 |
// Contains metadata for the BatchProcessDocuments operation. |
| 1063 |
type OperationMetadata struct { |
| 1064 |
state protoimpl.MessageState |
| 1065 |
sizeCache protoimpl.SizeCache |
| 1066 |
unknownFields protoimpl.UnknownFields |
| 1067 |
|
| 1068 |
// The state of the current batch processing. |
| 1069 |
State OperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.documentai.v1beta1.OperationMetadata_State" json:"state,omitempty"` |
| 1070 |
// A message providing more details about the current state of processing. |
| 1071 |
StateMessage string `protobuf:"bytes,2,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` |
| 1072 |
// The creation time of the operation. |
| 1073 |
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| 1074 |
// The last update time of the operation. |
| 1075 |
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| 1076 |
} |
| 1077 |
|
| 1078 |
func (x *OperationMetadata) Reset() { |
| 1079 |
*x = OperationMetadata{} |
| 1080 |
if protoimpl.UnsafeEnabled { |
| 1081 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[14] |
| 1082 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1083 |
ms.StoreMessageInfo(mi) |
| 1084 |
} |
| 1085 |
} |
| 1086 |
|
| 1087 |
func (x *OperationMetadata) String() string { |
| 1088 |
return protoimpl.X.MessageStringOf(x) |
| 1089 |
} |
| 1090 |
|
| 1091 |
func (*OperationMetadata) ProtoMessage() {} |
| 1092 |
|
| 1093 |
func (x *OperationMetadata) ProtoReflect() protoreflect.Message { |
| 1094 |
mi := &file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[14] |
| 1095 |
if protoimpl.UnsafeEnabled && x != nil { |
| 1096 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1097 |
if ms.LoadMessageInfo() == nil { |
| 1098 |
ms.StoreMessageInfo(mi) |
| 1099 |
} |
| 1100 |
return ms |
| 1101 |
} |
| 1102 |
return mi.MessageOf(x) |
| 1103 |
} |
| 1104 |
|
| 1105 |
// Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead. |
| 1106 |
func (*OperationMetadata) Descriptor() ([]byte, []int) { |
| 1107 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP(), []int{14} |
| 1108 |
} |
| 1109 |
|
| 1110 |
func (x *OperationMetadata) GetState() OperationMetadata_State { |
| 1111 |
if x != nil { |
| 1112 |
return x.State |
| 1113 |
} |
| 1114 |
return OperationMetadata_STATE_UNSPECIFIED |
| 1115 |
} |
| 1116 |
|
| 1117 |
func (x *OperationMetadata) GetStateMessage() string { |
| 1118 |
if x != nil { |
| 1119 |
return x.StateMessage |
| 1120 |
} |
| 1121 |
return "" |
| 1122 |
} |
| 1123 |
|
| 1124 |
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { |
| 1125 |
if x != nil { |
| 1126 |
return x.CreateTime |
| 1127 |
} |
| 1128 |
return nil |
| 1129 |
} |
| 1130 |
|
| 1131 |
func (x *OperationMetadata) GetUpdateTime() *timestamppb.Timestamp { |
| 1132 |
if x != nil { |
| 1133 |
return x.UpdateTime |
| 1134 |
} |
| 1135 |
return nil |
| 1136 |
} |
| 1137 |
|
| 1138 |
var File_google_cloud_documentai_v1beta1_document_understanding_proto protoreflect.FileDescriptor |
| 1139 |
|
| 1140 |
var file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDesc = []byte{ |
| 1141 |
0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, |
| 1142 |
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 1143 |
0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72, |
| 1144 |
0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, |
| 1145 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, |
| 1146 |
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, |
| 1147 |
0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, |
| 1148 |
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, |
| 1149 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, |
| 1150 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, |
| 1151 |
0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, |
| 1152 |
0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 1153 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, |
| 1154 |
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, |
| 1155 |
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 1156 |
0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, |
| 1157 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, |
| 1158 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, |
| 1159 |
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x90, 0x01, |
| 1160 |
0x0a, 0x1c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, |
| 1161 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x58, |
| 1162 |
0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, |
| 1163 |
0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 1164 |
0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 1165 |
0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, |
| 1166 |
0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, |
| 1167 |
0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, |
| 1168 |
0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, |
| 1169 |
0x22, 0x87, 0x05, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x63, 0x75, |
| 1170 |
0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x54, 0x0a, 0x0c, 0x69, |
| 1171 |
0x6e, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 1172 |
0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1173 |
0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 1174 |
0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, |
| 1175 |
0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, |
| 1176 |
0x67, 0x12, 0x57, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, |
| 1177 |
0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1178 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 1179 |
0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, |
| 1180 |
0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6f, 0x75, |
| 1181 |
0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x6f, |
| 1182 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 1183 |
0x09, 0x52, 0x0c, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, |
| 1184 |
0x6e, 0x0a, 0x17, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, |
| 1185 |
0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, |
| 1186 |
0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 1187 |
0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 1188 |
0x61, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, |
| 1189 |
0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x15, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x45, |
| 1190 |
0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, |
| 1191 |
0x6b, 0x0a, 0x16, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, |
| 1192 |
0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 1193 |
0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, |
| 1194 |
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 1195 |
0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, |
| 1196 |
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x14, 0x66, 0x6f, 0x72, 0x6d, 0x45, 0x78, 0x74, 0x72, |
| 1197 |
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x71, 0x0a, 0x18, |
| 1198 |
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, |
| 1199 |
0x6e, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, |
| 1200 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, |
| 1201 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 1202 |
0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, |
| 1203 |
0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x16, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, |
| 1204 |
0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, |
| 1205 |
0x49, 0x0a, 0x0a, 0x6f, 0x63, 0x72, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20, |
| 1206 |
0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 1207 |
0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, |
| 1208 |
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x63, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, |
| 1209 |
0x09, 0x6f, 0x63, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x77, 0x0a, 0x1d, 0x42, 0x61, |
| 1210 |
0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, |
| 1211 |
0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x09, 0x72, |
| 1212 |
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, |
| 1213 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, |
| 1214 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 1215 |
0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 1216 |
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, |
| 1217 |
0x73, 0x65, 0x73, 0x22, 0xbe, 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, |
| 1218 |
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, |
| 1219 |
0x4f, 0x0a, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, |
| 1220 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1221 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, |
| 1222 |
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, |
| 1223 |
0x66, 0x69, 0x67, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, |
| 1224 |
0x12, 0x52, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, |
| 1225 |
0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1226 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, |
| 1227 |
0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, |
| 1228 |
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, |
| 1229 |
0x6e, 0x66, 0x69, 0x67, 0x22, 0x32, 0x0a, 0x09, 0x4f, 0x63, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, |
| 1230 |
0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x68, 0x69, |
| 1231 |
0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, |
| 1232 |
0x61, 0x67, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x22, 0xe0, 0x01, 0x0a, 0x15, 0x54, 0x61, 0x62, |
| 1233 |
0x6c, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, |
| 1234 |
0x6d, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, |
| 1235 |
0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x60, 0x0a, 0x11, |
| 1236 |
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x68, 0x69, 0x6e, 0x74, |
| 1237 |
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1238 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, |
| 1239 |
0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, |
| 1240 |
0x6f, 0x75, 0x6e, 0x64, 0x48, 0x69, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x74, |
| 1241 |
0x61, 0x62, 0x6c, 0x65, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x26, |
| 1242 |
0x0a, 0x0c, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, |
| 1243 |
0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, |
| 1244 |
0x72, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, |
| 1245 |
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, |
| 1246 |
0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x88, 0x01, 0x0a, 0x0e, |
| 1247 |
0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x24, |
| 1248 |
0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, |
| 1249 |
0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, |
| 1250 |
0x6d, 0x62, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, |
| 1251 |
0x5f, 0x62, 0x6f, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, |
| 1252 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, |
| 1253 |
0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, |
| 1254 |
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, |
| 1255 |
0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x22, 0xb9, 0x01, 0x0a, 0x14, 0x46, 0x6f, 0x72, 0x6d, 0x45, |
| 1256 |
0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, |
| 1257 |
0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, |
| 1258 |
0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x62, 0x0a, 0x14, 0x6b, 0x65, 0x79, |
| 1259 |
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x68, 0x69, 0x6e, 0x74, |
| 1260 |
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1261 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, |
| 1262 |
0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, |
| 1263 |
0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x48, 0x69, 0x6e, 0x74, 0x52, 0x11, 0x6b, 0x65, 0x79, 0x56, |
| 1264 |
0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, |
| 1265 |
0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, |
| 1266 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, |
| 1267 |
0x6f, 0x6e, 0x22, 0x45, 0x0a, 0x10, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, |
| 1268 |
0x69, 0x72, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, |
| 1269 |
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, |
| 1270 |
0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x76, |
| 1271 |
0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x57, 0x0a, 0x16, 0x45, 0x6e, 0x74, |
| 1272 |
0x69, 0x74, 0x79, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, |
| 1273 |
0x61, 0x6d, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, |
| 1274 |
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x23, 0x0a, |
| 1275 |
0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, |
| 1276 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, |
| 1277 |
0x6f, 0x6e, 0x22, 0x86, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, |
| 1278 |
0x69, 0x67, 0x12, 0x4b, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 1279 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1280 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, |
| 1281 |
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, |
| 1282 |
0x63, 0x65, 0x48, 0x00, 0x52, 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, |
| 1283 |
0x20, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, |
| 1284 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, |
| 1285 |
0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x0c, |
| 1286 |
0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5a, 0x0a, 0x0f, |
| 1287 |
0x67, 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, |
| 1288 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1289 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, |
| 1290 |
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, |
| 1291 |
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, 0x65, 0x73, |
| 1292 |
0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x61, 0x67, 0x65, |
| 1293 |
0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 1294 |
0x05, 0x52, 0x0d, 0x70, 0x61, 0x67, 0x65, 0x73, 0x50, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, |
| 1295 |
0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, |
| 1296 |
0x22, 0x0a, 0x09, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x15, 0x0a, 0x03, |
| 1297 |
0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, |
| 1298 |
0x75, 0x72, 0x69, 0x22, 0x27, 0x0a, 0x0e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, |
| 1299 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, |
| 1300 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0xf4, 0x02, 0x0a, |
| 1301 |
0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, |
| 1302 |
0x74, 0x61, 0x12, 0x4e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 1303 |
0x0e, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1304 |
0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 1305 |
0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, |
| 1306 |
0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, |
| 1307 |
0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, |
| 1308 |
0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, |
| 1309 |
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, |
| 1310 |
0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, |
| 1311 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, |
| 1312 |
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, |
| 1313 |
0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, |
| 1314 |
0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1315 |
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, |
| 1316 |
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, |
| 1317 |
0x65, 0x22, 0x70, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, |
| 1318 |
0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, |
| 1319 |
0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, |
| 1320 |
0x0b, 0x0a, 0x07, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, |
| 1321 |
0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, |
| 1322 |
0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, |
| 1323 |
0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, |
| 1324 |
0x44, 0x10, 0x06, 0x32, 0xac, 0x03, 0x0a, 0x1c, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 1325 |
0x55, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, |
| 1326 |
0x76, 0x69, 0x63, 0x65, 0x12, 0xbc, 0x02, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, |
| 1327 |
0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3d, |
| 1328 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, |
| 1329 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 1330 |
0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x63, |
| 1331 |
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, |
| 1332 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, |
| 1333 |
0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc4, 0x01, 0x82, |
| 1334 |
0xd3, 0xe4, 0x93, 0x02, 0x7e, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, |
| 1335 |
0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, |
| 1336 |
0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, |
| 1337 |
0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x50, |
| 1338 |
0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x3a, 0x01, 0x2a, 0x5a, 0x38, 0x22, 0x33, 0x2f, 0x76, 0x31, |
| 1339 |
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, |
| 1340 |
0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, |
| 1341 |
0x6e, 0x74, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, |
| 1342 |
0x3a, 0x01, 0x2a, 0xda, 0x41, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0xca, 0x41, |
| 1343 |
0x32, 0x0a, 0x1d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, |
| 1344 |
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 1345 |
0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, |
| 1346 |
0x61, 0x74, 0x61, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 1347 |
0x61, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 1348 |
0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, |
| 1349 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, |
| 1350 |
0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, |
| 1351 |
0x72, 0x6d, 0x42, 0xec, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1352 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 1353 |
0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x44, 0x6f, 0x63, 0x75, |
| 1354 |
0x6d, 0x65, 0x6e, 0x74, 0x41, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, |
| 1355 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, |
| 1356 |
0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1357 |
0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, |
| 1358 |
0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x64, 0x6f, |
| 1359 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 1360 |
0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 1361 |
0x41, 0x49, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, |
| 1362 |
0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, |
| 1363 |
0x6e, 0x74, 0x41, 0x49, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, |
| 1364 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x6f, |
| 1365 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 1366 |
0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 1367 |
} |
| 1368 |
|
| 1369 |
var ( |
| 1370 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescOnce sync.Once |
| 1371 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescData = file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDesc |
| 1372 |
) |
| 1373 |
|
| 1374 |
func file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescGZIP() []byte { |
| 1375 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescOnce.Do(func() { |
| 1376 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescData) |
| 1377 |
}) |
| 1378 |
return file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDescData |
| 1379 |
} |
| 1380 |
|
| 1381 |
var file_google_cloud_documentai_v1beta1_document_understanding_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 1382 |
var file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes = make([]protoimpl.MessageInfo, 15) |
| 1383 |
var file_google_cloud_documentai_v1beta1_document_understanding_proto_goTypes = []interface{}{ |
| 1384 |
(OperationMetadata_State)(0), // 0: google.cloud.documentai.v1beta1.OperationMetadata.State |
| 1385 |
(*BatchProcessDocumentsRequest)(nil), // 1: google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest |
| 1386 |
(*ProcessDocumentRequest)(nil), // 2: google.cloud.documentai.v1beta1.ProcessDocumentRequest |
| 1387 |
(*BatchProcessDocumentsResponse)(nil), // 3: google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse |
| 1388 |
(*ProcessDocumentResponse)(nil), // 4: google.cloud.documentai.v1beta1.ProcessDocumentResponse |
| 1389 |
(*OcrParams)(nil), // 5: google.cloud.documentai.v1beta1.OcrParams |
| 1390 |
(*TableExtractionParams)(nil), // 6: google.cloud.documentai.v1beta1.TableExtractionParams |
| 1391 |
(*TableBoundHint)(nil), // 7: google.cloud.documentai.v1beta1.TableBoundHint |
| 1392 |
(*FormExtractionParams)(nil), // 8: google.cloud.documentai.v1beta1.FormExtractionParams |
| 1393 |
(*KeyValuePairHint)(nil), // 9: google.cloud.documentai.v1beta1.KeyValuePairHint |
| 1394 |
(*EntityExtractionParams)(nil), // 10: google.cloud.documentai.v1beta1.EntityExtractionParams |
| 1395 |
(*InputConfig)(nil), // 11: google.cloud.documentai.v1beta1.InputConfig |
| 1396 |
(*OutputConfig)(nil), // 12: google.cloud.documentai.v1beta1.OutputConfig |
| 1397 |
(*GcsSource)(nil), // 13: google.cloud.documentai.v1beta1.GcsSource |
| 1398 |
(*GcsDestination)(nil), // 14: google.cloud.documentai.v1beta1.GcsDestination |
| 1399 |
(*OperationMetadata)(nil), // 15: google.cloud.documentai.v1beta1.OperationMetadata |
| 1400 |
(*BoundingPoly)(nil), // 16: google.cloud.documentai.v1beta1.BoundingPoly |
| 1401 |
(*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp |
| 1402 |
(*longrunning.Operation)(nil), // 18: google.longrunning.Operation |
| 1403 |
} |
| 1404 |
var file_google_cloud_documentai_v1beta1_document_understanding_proto_depIdxs = []int32{ |
| 1405 |
2, // 0: google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest.requests:type_name -> google.cloud.documentai.v1beta1.ProcessDocumentRequest |
| 1406 |
11, // 1: google.cloud.documentai.v1beta1.ProcessDocumentRequest.input_config:type_name -> google.cloud.documentai.v1beta1.InputConfig |
| 1407 |
12, // 2: google.cloud.documentai.v1beta1.ProcessDocumentRequest.output_config:type_name -> google.cloud.documentai.v1beta1.OutputConfig |
| 1408 |
6, // 3: google.cloud.documentai.v1beta1.ProcessDocumentRequest.table_extraction_params:type_name -> google.cloud.documentai.v1beta1.TableExtractionParams |
| 1409 |
8, // 4: google.cloud.documentai.v1beta1.ProcessDocumentRequest.form_extraction_params:type_name -> google.cloud.documentai.v1beta1.FormExtractionParams |
| 1410 |
10, // 5: google.cloud.documentai.v1beta1.ProcessDocumentRequest.entity_extraction_params:type_name -> google.cloud.documentai.v1beta1.EntityExtractionParams |
| 1411 |
5, // 6: google.cloud.documentai.v1beta1.ProcessDocumentRequest.ocr_params:type_name -> google.cloud.documentai.v1beta1.OcrParams |
| 1412 |
4, // 7: google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse.responses:type_name -> google.cloud.documentai.v1beta1.ProcessDocumentResponse |
| 1413 |
11, // 8: google.cloud.documentai.v1beta1.ProcessDocumentResponse.input_config:type_name -> google.cloud.documentai.v1beta1.InputConfig |
| 1414 |
12, // 9: google.cloud.documentai.v1beta1.ProcessDocumentResponse.output_config:type_name -> google.cloud.documentai.v1beta1.OutputConfig |
| 1415 |
7, // 10: google.cloud.documentai.v1beta1.TableExtractionParams.table_bound_hints:type_name -> google.cloud.documentai.v1beta1.TableBoundHint |
| 1416 |
16, // 11: google.cloud.documentai.v1beta1.TableBoundHint.bounding_box:type_name -> google.cloud.documentai.v1beta1.BoundingPoly |
| 1417 |
9, // 12: google.cloud.documentai.v1beta1.FormExtractionParams.key_value_pair_hints:type_name -> google.cloud.documentai.v1beta1.KeyValuePairHint |
| 1418 |
13, // 13: google.cloud.documentai.v1beta1.InputConfig.gcs_source:type_name -> google.cloud.documentai.v1beta1.GcsSource |
| 1419 |
14, // 14: google.cloud.documentai.v1beta1.OutputConfig.gcs_destination:type_name -> google.cloud.documentai.v1beta1.GcsDestination |
| 1420 |
0, // 15: google.cloud.documentai.v1beta1.OperationMetadata.state:type_name -> google.cloud.documentai.v1beta1.OperationMetadata.State |
| 1421 |
17, // 16: google.cloud.documentai.v1beta1.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp |
| 1422 |
17, // 17: google.cloud.documentai.v1beta1.OperationMetadata.update_time:type_name -> google.protobuf.Timestamp |
| 1423 |
1, // 18: google.cloud.documentai.v1beta1.DocumentUnderstandingService.BatchProcessDocuments:input_type -> google.cloud.documentai.v1beta1.BatchProcessDocumentsRequest |
| 1424 |
18, // 19: google.cloud.documentai.v1beta1.DocumentUnderstandingService.BatchProcessDocuments:output_type -> google.longrunning.Operation |
| 1425 |
19, // [19:20] is the sub-list for method output_type |
| 1426 |
18, // [18:19] is the sub-list for method input_type |
| 1427 |
18, // [18:18] is the sub-list for extension type_name |
| 1428 |
18, // [18:18] is the sub-list for extension extendee |
| 1429 |
0, // [0:18] is the sub-list for field type_name |
| 1430 |
} |
| 1431 |
|
| 1432 |
func init() { file_google_cloud_documentai_v1beta1_document_understanding_proto_init() } |
| 1433 |
func file_google_cloud_documentai_v1beta1_document_understanding_proto_init() { |
| 1434 |
if File_google_cloud_documentai_v1beta1_document_understanding_proto != nil { |
| 1435 |
return |
| 1436 |
} |
| 1437 |
file_google_cloud_documentai_v1beta1_geometry_proto_init() |
| 1438 |
if !protoimpl.UnsafeEnabled { |
| 1439 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 1440 |
switch v := v.(*BatchProcessDocumentsRequest); i { |
| 1441 |
case 0: |
| 1442 |
return &v.state |
| 1443 |
case 1: |
| 1444 |
return &v.sizeCache |
| 1445 |
case 2: |
| 1446 |
return &v.unknownFields |
| 1447 |
default: |
| 1448 |
return nil |
| 1449 |
} |
| 1450 |
} |
| 1451 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 1452 |
switch v := v.(*ProcessDocumentRequest); i { |
| 1453 |
case 0: |
| 1454 |
return &v.state |
| 1455 |
case 1: |
| 1456 |
return &v.sizeCache |
| 1457 |
case 2: |
| 1458 |
return &v.unknownFields |
| 1459 |
default: |
| 1460 |
return nil |
| 1461 |
} |
| 1462 |
} |
| 1463 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 1464 |
switch v := v.(*BatchProcessDocumentsResponse); i { |
| 1465 |
case 0: |
| 1466 |
return &v.state |
| 1467 |
case 1: |
| 1468 |
return &v.sizeCache |
| 1469 |
case 2: |
| 1470 |
return &v.unknownFields |
| 1471 |
default: |
| 1472 |
return nil |
| 1473 |
} |
| 1474 |
} |
| 1475 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 1476 |
switch v := v.(*ProcessDocumentResponse); i { |
| 1477 |
case 0: |
| 1478 |
return &v.state |
| 1479 |
case 1: |
| 1480 |
return &v.sizeCache |
| 1481 |
case 2: |
| 1482 |
return &v.unknownFields |
| 1483 |
default: |
| 1484 |
return nil |
| 1485 |
} |
| 1486 |
} |
| 1487 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 1488 |
switch v := v.(*OcrParams); i { |
| 1489 |
case 0: |
| 1490 |
return &v.state |
| 1491 |
case 1: |
| 1492 |
return &v.sizeCache |
| 1493 |
case 2: |
| 1494 |
return &v.unknownFields |
| 1495 |
default: |
| 1496 |
return nil |
| 1497 |
} |
| 1498 |
} |
| 1499 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 1500 |
switch v := v.(*TableExtractionParams); i { |
| 1501 |
case 0: |
| 1502 |
return &v.state |
| 1503 |
case 1: |
| 1504 |
return &v.sizeCache |
| 1505 |
case 2: |
| 1506 |
return &v.unknownFields |
| 1507 |
default: |
| 1508 |
return nil |
| 1509 |
} |
| 1510 |
} |
| 1511 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| 1512 |
switch v := v.(*TableBoundHint); i { |
| 1513 |
case 0: |
| 1514 |
return &v.state |
| 1515 |
case 1: |
| 1516 |
return &v.sizeCache |
| 1517 |
case 2: |
| 1518 |
return &v.unknownFields |
| 1519 |
default: |
| 1520 |
return nil |
| 1521 |
} |
| 1522 |
} |
| 1523 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| 1524 |
switch v := v.(*FormExtractionParams); i { |
| 1525 |
case 0: |
| 1526 |
return &v.state |
| 1527 |
case 1: |
| 1528 |
return &v.sizeCache |
| 1529 |
case 2: |
| 1530 |
return &v.unknownFields |
| 1531 |
default: |
| 1532 |
return nil |
| 1533 |
} |
| 1534 |
} |
| 1535 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| 1536 |
switch v := v.(*KeyValuePairHint); i { |
| 1537 |
case 0: |
| 1538 |
return &v.state |
| 1539 |
case 1: |
| 1540 |
return &v.sizeCache |
| 1541 |
case 2: |
| 1542 |
return &v.unknownFields |
| 1543 |
default: |
| 1544 |
return nil |
| 1545 |
} |
| 1546 |
} |
| 1547 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| 1548 |
switch v := v.(*EntityExtractionParams); i { |
| 1549 |
case 0: |
| 1550 |
return &v.state |
| 1551 |
case 1: |
| 1552 |
return &v.sizeCache |
| 1553 |
case 2: |
| 1554 |
return &v.unknownFields |
| 1555 |
default: |
| 1556 |
return nil |
| 1557 |
} |
| 1558 |
} |
| 1559 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
| 1560 |
switch v := v.(*InputConfig); i { |
| 1561 |
case 0: |
| 1562 |
return &v.state |
| 1563 |
case 1: |
| 1564 |
return &v.sizeCache |
| 1565 |
case 2: |
| 1566 |
return &v.unknownFields |
| 1567 |
default: |
| 1568 |
return nil |
| 1569 |
} |
| 1570 |
} |
| 1571 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { |
| 1572 |
switch v := v.(*OutputConfig); i { |
| 1573 |
case 0: |
| 1574 |
return &v.state |
| 1575 |
case 1: |
| 1576 |
return &v.sizeCache |
| 1577 |
case 2: |
| 1578 |
return &v.unknownFields |
| 1579 |
default: |
| 1580 |
return nil |
| 1581 |
} |
| 1582 |
} |
| 1583 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { |
| 1584 |
switch v := v.(*GcsSource); i { |
| 1585 |
case 0: |
| 1586 |
return &v.state |
| 1587 |
case 1: |
| 1588 |
return &v.sizeCache |
| 1589 |
case 2: |
| 1590 |
return &v.unknownFields |
| 1591 |
default: |
| 1592 |
return nil |
| 1593 |
} |
| 1594 |
} |
| 1595 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { |
| 1596 |
switch v := v.(*GcsDestination); i { |
| 1597 |
case 0: |
| 1598 |
return &v.state |
| 1599 |
case 1: |
| 1600 |
return &v.sizeCache |
| 1601 |
case 2: |
| 1602 |
return &v.unknownFields |
| 1603 |
default: |
| 1604 |
return nil |
| 1605 |
} |
| 1606 |
} |
| 1607 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { |
| 1608 |
switch v := v.(*OperationMetadata); i { |
| 1609 |
case 0: |
| 1610 |
return &v.state |
| 1611 |
case 1: |
| 1612 |
return &v.sizeCache |
| 1613 |
case 2: |
| 1614 |
return &v.unknownFields |
| 1615 |
default: |
| 1616 |
return nil |
| 1617 |
} |
| 1618 |
} |
| 1619 |
} |
| 1620 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[10].OneofWrappers = []interface{}{ |
| 1621 |
(*InputConfig_GcsSource)(nil), |
| 1622 |
} |
| 1623 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes[11].OneofWrappers = []interface{}{ |
| 1624 |
(*OutputConfig_GcsDestination)(nil), |
| 1625 |
} |
| 1626 |
type x struct{} |
| 1627 |
out := protoimpl.TypeBuilder{ |
| 1628 |
File: protoimpl.DescBuilder{ |
| 1629 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1630 |
RawDescriptor: file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDesc, |
| 1631 |
NumEnums: 1, |
| 1632 |
NumMessages: 15, |
| 1633 |
NumExtensions: 0, |
| 1634 |
NumServices: 1, |
| 1635 |
}, |
| 1636 |
GoTypes: file_google_cloud_documentai_v1beta1_document_understanding_proto_goTypes, |
| 1637 |
DependencyIndexes: file_google_cloud_documentai_v1beta1_document_understanding_proto_depIdxs, |
| 1638 |
EnumInfos: file_google_cloud_documentai_v1beta1_document_understanding_proto_enumTypes, |
| 1639 |
MessageInfos: file_google_cloud_documentai_v1beta1_document_understanding_proto_msgTypes, |
| 1640 |
}.Build() |
| 1641 |
File_google_cloud_documentai_v1beta1_document_understanding_proto = out.File |
| 1642 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_rawDesc = nil |
| 1643 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_goTypes = nil |
| 1644 |
file_google_cloud_documentai_v1beta1_document_understanding_proto_depIdxs = nil |
| 1645 |
} |
| 1646 |
|
| 1647 |
// Reference imports to suppress errors if they are not otherwise used. |
| 1648 |
var _ context.Context |
| 1649 |
var _ grpc.ClientConnInterface |
| 1650 |
|
| 1651 |
// This is a compile-time assertion to ensure that this generated file |
| 1652 |
// is compatible with the grpc package it is being compiled against. |
| 1653 |
const _ = grpc.SupportPackageIsVersion6 |
| 1654 |
|
| 1655 |
// DocumentUnderstandingServiceClient is the client API for DocumentUnderstandingService service. |
| 1656 |
// |
| 1657 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 1658 |
type DocumentUnderstandingServiceClient interface { |
| 1659 |
// LRO endpoint to batch process many documents. |
| 1660 |
BatchProcessDocuments(ctx context.Context, in *BatchProcessDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) |
| 1661 |
} |
| 1662 |
|
| 1663 |
type documentUnderstandingServiceClient struct { |
| 1664 |
cc grpc.ClientConnInterface |
| 1665 |
} |
| 1666 |
|
| 1667 |
func NewDocumentUnderstandingServiceClient(cc grpc.ClientConnInterface) DocumentUnderstandingServiceClient { |
| 1668 |
return &documentUnderstandingServiceClient{cc} |
| 1669 |
} |
| 1670 |
|
| 1671 |
func (c *documentUnderstandingServiceClient) BatchProcessDocuments(ctx context.Context, in *BatchProcessDocumentsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { |
| 1672 |
out := new(longrunning.Operation) |
| 1673 |
err := c.cc.Invoke(ctx, "/google.cloud.documentai.v1beta1.DocumentUnderstandingService/BatchProcessDocuments", in, out, opts...) |
| 1674 |
if err != nil { |
| 1675 |
return nil, err |
| 1676 |
} |
| 1677 |
return out, nil |
| 1678 |
} |
| 1679 |
|
| 1680 |
// DocumentUnderstandingServiceServer is the server API for DocumentUnderstandingService service. |
| 1681 |
type DocumentUnderstandingServiceServer interface { |
| 1682 |
// LRO endpoint to batch process many documents. |
| 1683 |
BatchProcessDocuments(context.Context, *BatchProcessDocumentsRequest) (*longrunning.Operation, error) |
| 1684 |
} |
| 1685 |
|
| 1686 |
// UnimplementedDocumentUnderstandingServiceServer can be embedded to have forward compatible implementations. |
| 1687 |
type UnimplementedDocumentUnderstandingServiceServer struct { |
| 1688 |
} |
| 1689 |
|
| 1690 |
func (*UnimplementedDocumentUnderstandingServiceServer) BatchProcessDocuments(context.Context, *BatchProcessDocumentsRequest) (*longrunning.Operation, error) { |
| 1691 |
return nil, status.Errorf(codes.Unimplemented, "method BatchProcessDocuments not implemented") |
| 1692 |
} |
| 1693 |
|
| 1694 |
func RegisterDocumentUnderstandingServiceServer(s *grpc.Server, srv DocumentUnderstandingServiceServer) { |
| 1695 |
s.RegisterService(&_DocumentUnderstandingService_serviceDesc, srv) |
| 1696 |
} |
| 1697 |
|
| 1698 |
func _DocumentUnderstandingService_BatchProcessDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1699 |
in := new(BatchProcessDocumentsRequest) |
| 1700 |
if err := dec(in); err != nil { |
| 1701 |
return nil, err |
| 1702 |
} |
| 1703 |
if interceptor == nil { |
| 1704 |
return srv.(DocumentUnderstandingServiceServer).BatchProcessDocuments(ctx, in) |
| 1705 |
} |
| 1706 |
info := &grpc.UnaryServerInfo{ |
| 1707 |
Server: srv, |
| 1708 |
FullMethod: "/google.cloud.documentai.v1beta1.DocumentUnderstandingService/BatchProcessDocuments", |
| 1709 |
} |
| 1710 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1711 |
return srv.(DocumentUnderstandingServiceServer).BatchProcessDocuments(ctx, req.(*BatchProcessDocumentsRequest)) |
| 1712 |
} |
| 1713 |
return interceptor(ctx, in, info, handler) |
| 1714 |
} |
| 1715 |
|
| 1716 |
var _DocumentUnderstandingService_serviceDesc = grpc.ServiceDesc{ |
| 1717 |
ServiceName: "google.cloud.documentai.v1beta1.DocumentUnderstandingService", |
| 1718 |
HandlerType: (*DocumentUnderstandingServiceServer)(nil), |
| 1719 |
Methods: []grpc.MethodDesc{ |
| 1720 |
{ |
| 1721 |
MethodName: "BatchProcessDocuments", |
| 1722 |
Handler: _DocumentUnderstandingService_BatchProcessDocuments_Handler, |
| 1723 |
}, |
| 1724 |
}, |
| 1725 |
Streams: []grpc.StreamDesc{}, |
| 1726 |
Metadata: "google/cloud/documentai/v1beta1/document_understanding.proto", |
| 1727 |
} |