barcode.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.cloud.documentai.v1beta3;
  16. option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "BarcodeProto";
  20. option java_package = "com.google.cloud.documentai.v1beta3";
  21. option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
  22. option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
  23. // Encodes the detailed information of a barcode.
  24. message Barcode {
  25. // Format of a barcode.
  26. // The supported formats are:
  27. //
  28. // - `CODE_128`: Code 128 type.
  29. // - `CODE_39`: Code 39 type.
  30. // - `CODE_93`: Code 93 type.
  31. // - `CODABAR`: Codabar type.
  32. // - `DATA_MATRIX`: 2D Data Matrix type.
  33. // - `ITF`: ITF type.
  34. // - `EAN_13`: EAN-13 type.
  35. // - `EAN_8`: EAN-8 type.
  36. // - `QR_CODE`: 2D QR code type.
  37. // - `UPC_A`: UPC-A type.
  38. // - `UPC_E`: UPC-E type.
  39. // - `PDF417`: PDF417 type.
  40. // - `AZTEC`: 2D Aztec code type.
  41. // - `DATABAR`: GS1 DataBar code type.
  42. string format = 1;
  43. // Value format describes the format of the value that a barcode
  44. // encodes.
  45. // The supported formats are:
  46. //
  47. // - `CONTACT_INFO`: Contact information.
  48. // - `EMAIL`: Email address.
  49. // - `ISBN`: ISBN identifier.
  50. // - `PHONE`: Phone number.
  51. // - `PRODUCT`: Product.
  52. // - `SMS`: SMS message.
  53. // - `TEXT`: Text string.
  54. // - `URL`: URL address.
  55. // - `WIFI`: Wifi information.
  56. // - `GEO`: Geo-localization.
  57. // - `CALENDAR_EVENT`: Calendar event.
  58. // - `DRIVER_LICENSE`: Driver's license.
  59. string value_format = 2;
  60. // Raw value encoded in the barcode.
  61. // For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
  62. string raw_value = 3;
  63. }