1// Copyright 2021 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// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.26.0 18// protoc v3.12.2 19// source: google/cloud/documentai/v1beta3/processor_type.proto 20 21package documentai 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 _ "google.golang.org/genproto/googleapis/api/annotations" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30) 31 32const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37) 38 39// A processor type is responsible for performing a certain document 40// understanding task on a certain type of document. 41type ProcessorType struct { 42 state protoimpl.MessageState 43 sizeCache protoimpl.SizeCache 44 unknownFields protoimpl.UnknownFields 45 46 // The resource name of the processor type. 47 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 48 // The type of the processor. 49 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 50 // The processor category. 51 Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` 52 // The locations in which this processor is available. 53 AvailableLocations []*ProcessorType_LocationInfo `protobuf:"bytes,4,rep,name=available_locations,json=availableLocations,proto3" json:"available_locations,omitempty"` 54 // Whether the processor type allows creation. If yes, user can create a 55 // processor of this processor type. Otherwise, user needs to require for 56 // whitelisting. 57 AllowCreation bool `protobuf:"varint,6,opt,name=allow_creation,json=allowCreation,proto3" json:"allow_creation,omitempty"` 58} 59 60func (x *ProcessorType) Reset() { 61 *x = ProcessorType{} 62 if protoimpl.UnsafeEnabled { 63 mi := &file_google_cloud_documentai_v1beta3_processor_type_proto_msgTypes[0] 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 ms.StoreMessageInfo(mi) 66 } 67} 68 69func (x *ProcessorType) String() string { 70 return protoimpl.X.MessageStringOf(x) 71} 72 73func (*ProcessorType) ProtoMessage() {} 74 75func (x *ProcessorType) ProtoReflect() protoreflect.Message { 76 mi := &file_google_cloud_documentai_v1beta3_processor_type_proto_msgTypes[0] 77 if protoimpl.UnsafeEnabled && x != nil { 78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 79 if ms.LoadMessageInfo() == nil { 80 ms.StoreMessageInfo(mi) 81 } 82 return ms 83 } 84 return mi.MessageOf(x) 85} 86 87// Deprecated: Use ProcessorType.ProtoReflect.Descriptor instead. 88func (*ProcessorType) Descriptor() ([]byte, []int) { 89 return file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescGZIP(), []int{0} 90} 91 92func (x *ProcessorType) GetName() string { 93 if x != nil { 94 return x.Name 95 } 96 return "" 97} 98 99func (x *ProcessorType) GetType() string { 100 if x != nil { 101 return x.Type 102 } 103 return "" 104} 105 106func (x *ProcessorType) GetCategory() string { 107 if x != nil { 108 return x.Category 109 } 110 return "" 111} 112 113func (x *ProcessorType) GetAvailableLocations() []*ProcessorType_LocationInfo { 114 if x != nil { 115 return x.AvailableLocations 116 } 117 return nil 118} 119 120func (x *ProcessorType) GetAllowCreation() bool { 121 if x != nil { 122 return x.AllowCreation 123 } 124 return false 125} 126 127// The location information about where the processor is available. 128type ProcessorType_LocationInfo struct { 129 state protoimpl.MessageState 130 sizeCache protoimpl.SizeCache 131 unknownFields protoimpl.UnknownFields 132 133 // The location id. 134 LocationId string `protobuf:"bytes,1,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"` 135} 136 137func (x *ProcessorType_LocationInfo) Reset() { 138 *x = ProcessorType_LocationInfo{} 139 if protoimpl.UnsafeEnabled { 140 mi := &file_google_cloud_documentai_v1beta3_processor_type_proto_msgTypes[1] 141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 142 ms.StoreMessageInfo(mi) 143 } 144} 145 146func (x *ProcessorType_LocationInfo) String() string { 147 return protoimpl.X.MessageStringOf(x) 148} 149 150func (*ProcessorType_LocationInfo) ProtoMessage() {} 151 152func (x *ProcessorType_LocationInfo) ProtoReflect() protoreflect.Message { 153 mi := &file_google_cloud_documentai_v1beta3_processor_type_proto_msgTypes[1] 154 if protoimpl.UnsafeEnabled && x != nil { 155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 156 if ms.LoadMessageInfo() == nil { 157 ms.StoreMessageInfo(mi) 158 } 159 return ms 160 } 161 return mi.MessageOf(x) 162} 163 164// Deprecated: Use ProcessorType_LocationInfo.ProtoReflect.Descriptor instead. 165func (*ProcessorType_LocationInfo) Descriptor() ([]byte, []int) { 166 return file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescGZIP(), []int{0, 0} 167} 168 169func (x *ProcessorType_LocationInfo) GetLocationId() string { 170 if x != nil { 171 return x.LocationId 172 } 173 return "" 174} 175 176var File_google_cloud_documentai_v1beta3_processor_type_proto protoreflect.FileDescriptor 177 178var file_google_cloud_documentai_v1beta3_processor_type_proto_rawDesc = []byte{ 179 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 180 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 181 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 182 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 183 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 184 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 185 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 186 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 187 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 188 0x22, 0x90, 0x03, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x54, 0x79, 189 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 190 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 191 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 192 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 193 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x6c, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 194 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 195 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 196 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 197 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x54, 198 0x79, 0x70, 0x65, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 199 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 200 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x72, 201 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 202 0x6c, 0x6f, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2f, 0x0a, 0x0c, 0x4c, 203 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 204 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 205 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x3a, 0x75, 0xea, 0x41, 206 0x72, 0x0a, 0x27, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x67, 0x6f, 207 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 208 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x47, 0x70, 0x72, 0x6f, 0x6a, 209 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 210 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 211 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x54, 0x79, 0x70, 212 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 0x74, 0x79, 213 0x70, 0x65, 0x7d, 0x42, 0xf4, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 214 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 215 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x42, 0x17, 0x44, 0x6f, 0x63, 216 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x69, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 217 0x54, 0x79, 0x70, 0x65, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 218 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 219 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 220 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 221 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x3b, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 222 0x69, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 223 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x2e, 0x56, 0x31, 0x42, 0x65, 224 0x74, 0x61, 0x33, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 225 0x75, 0x64, 0x5c, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x5c, 0x56, 0x31, 226 0x62, 0x65, 0x74, 0x61, 0x33, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 227 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 228 0x49, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 229 0x6f, 0x33, 230} 231 232var ( 233 file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescOnce sync.Once 234 file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescData = file_google_cloud_documentai_v1beta3_processor_type_proto_rawDesc 235) 236 237func file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescGZIP() []byte { 238 file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescOnce.Do(func() { 239 file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescData) 240 }) 241 return file_google_cloud_documentai_v1beta3_processor_type_proto_rawDescData 242} 243 244var file_google_cloud_documentai_v1beta3_processor_type_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 245var file_google_cloud_documentai_v1beta3_processor_type_proto_goTypes = []interface{}{ 246 (*ProcessorType)(nil), // 0: google.cloud.documentai.v1beta3.ProcessorType 247 (*ProcessorType_LocationInfo)(nil), // 1: google.cloud.documentai.v1beta3.ProcessorType.LocationInfo 248} 249var file_google_cloud_documentai_v1beta3_processor_type_proto_depIdxs = []int32{ 250 1, // 0: google.cloud.documentai.v1beta3.ProcessorType.available_locations:type_name -> google.cloud.documentai.v1beta3.ProcessorType.LocationInfo 251 1, // [1:1] is the sub-list for method output_type 252 1, // [1:1] is the sub-list for method input_type 253 1, // [1:1] is the sub-list for extension type_name 254 1, // [1:1] is the sub-list for extension extendee 255 0, // [0:1] is the sub-list for field type_name 256} 257 258func init() { file_google_cloud_documentai_v1beta3_processor_type_proto_init() } 259func file_google_cloud_documentai_v1beta3_processor_type_proto_init() { 260 if File_google_cloud_documentai_v1beta3_processor_type_proto != nil { 261 return 262 } 263 if !protoimpl.UnsafeEnabled { 264 file_google_cloud_documentai_v1beta3_processor_type_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 265 switch v := v.(*ProcessorType); i { 266 case 0: 267 return &v.state 268 case 1: 269 return &v.sizeCache 270 case 2: 271 return &v.unknownFields 272 default: 273 return nil 274 } 275 } 276 file_google_cloud_documentai_v1beta3_processor_type_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 277 switch v := v.(*ProcessorType_LocationInfo); i { 278 case 0: 279 return &v.state 280 case 1: 281 return &v.sizeCache 282 case 2: 283 return &v.unknownFields 284 default: 285 return nil 286 } 287 } 288 } 289 type x struct{} 290 out := protoimpl.TypeBuilder{ 291 File: protoimpl.DescBuilder{ 292 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 293 RawDescriptor: file_google_cloud_documentai_v1beta3_processor_type_proto_rawDesc, 294 NumEnums: 0, 295 NumMessages: 2, 296 NumExtensions: 0, 297 NumServices: 0, 298 }, 299 GoTypes: file_google_cloud_documentai_v1beta3_processor_type_proto_goTypes, 300 DependencyIndexes: file_google_cloud_documentai_v1beta3_processor_type_proto_depIdxs, 301 MessageInfos: file_google_cloud_documentai_v1beta3_processor_type_proto_msgTypes, 302 }.Build() 303 File_google_cloud_documentai_v1beta3_processor_type_proto = out.File 304 file_google_cloud_documentai_v1beta3_processor_type_proto_rawDesc = nil 305 file_google_cloud_documentai_v1beta3_processor_type_proto_goTypes = nil 306 file_google_cloud_documentai_v1beta3_processor_type_proto_depIdxs = nil 307} 308