google-cloud-document_ai-v1beta3 0.36.1 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +47 -27
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb +12 -15
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/client.rb +47 -27
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/operations.rb +43 -38
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/rest/service_stub.rb +198 -140
- data/lib/google/cloud/document_ai/v1beta3/document_service/client.rb +32 -8
- data/lib/google/cloud/document_ai/v1beta3/document_service/operations.rb +12 -15
- data/lib/google/cloud/document_ai/v1beta3/document_service/rest/client.rb +32 -8
- data/lib/google/cloud/document_ai/v1beta3/document_service/rest/operations.rb +43 -38
- data/lib/google/cloud/document_ai/v1beta3/document_service/rest/service_stub.rb +70 -44
- data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/dataset_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_schema_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/documentai/v1beta3/dataset.rb +6 -0
- data/proto_docs/google/cloud/documentai/v1beta3/document_schema.rb +8 -0
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
| @@ -30,7 +30,8 @@ module Google | |
| 30 30 | 
             
                        # including transcoding, making the REST call, and deserialing the response.
         | 
| 31 31 | 
             
                        #
         | 
| 32 32 | 
             
                        class ServiceStub
         | 
| 33 | 
            -
                           | 
| 33 | 
            +
                          # @private
         | 
| 34 | 
            +
                          def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
         | 
| 34 35 | 
             
                            # These require statements are intentionally placed here to initialize
         | 
| 35 36 | 
             
                            # the REST modules only when it's required.
         | 
| 36 37 | 
             
                            require "gapic/rest"
         | 
| @@ -40,7 +41,9 @@ module Google | |
| 40 41 | 
             
                                                                         universe_domain: universe_domain,
         | 
| 41 42 | 
             
                                                                         credentials: credentials,
         | 
| 42 43 | 
             
                                                                         numeric_enums: true,
         | 
| 43 | 
            -
                                                                          | 
| 44 | 
            +
                                                                         service_name: self.class,
         | 
| 45 | 
            +
                                                                         raise_faraday_errors: false,
         | 
| 46 | 
            +
                                                                         logger: logger
         | 
| 44 47 | 
             
                          end
         | 
| 45 48 |  | 
| 46 49 | 
             
                          ##
         | 
| @@ -61,6 +64,15 @@ module Google | |
| 61 64 | 
             
                            @client_stub.endpoint
         | 
| 62 65 | 
             
                          end
         | 
| 63 66 |  | 
| 67 | 
            +
                          ##
         | 
| 68 | 
            +
                          # The logger used for request/response debug logging.
         | 
| 69 | 
            +
                          #
         | 
| 70 | 
            +
                          # @return [Logger]
         | 
| 71 | 
            +
                          #
         | 
| 72 | 
            +
                          def logger stub: false
         | 
| 73 | 
            +
                            stub ? @client_stub.stub_logger : @client_stub.logger
         | 
| 74 | 
            +
                          end
         | 
| 75 | 
            +
             | 
| 64 76 | 
             
                          ##
         | 
| 65 77 | 
             
                          # Baseline implementation for the update_dataset REST call
         | 
| 66 78 | 
             
                          #
         | 
| @@ -87,16 +99,18 @@ module Google | |
| 87 99 |  | 
| 88 100 | 
             
                            response = @client_stub.make_http_request(
         | 
| 89 101 | 
             
                              verb,
         | 
| 90 | 
            -
                              uri: | 
| 91 | 
            -
                              body: | 
| 92 | 
            -
                              params: | 
| 102 | 
            +
                              uri: uri,
         | 
| 103 | 
            +
                              body: body || "",
         | 
| 104 | 
            +
                              params: query_string_params,
         | 
| 105 | 
            +
                              method_name: "update_dataset",
         | 
| 93 106 | 
             
                              options: options
         | 
| 94 107 | 
             
                            )
         | 
| 95 108 | 
             
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 96 109 | 
             
                            result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
         | 
| 97 | 
            -
             | 
| 98 | 
            -
             | 
| 99 | 
            -
             | 
| 110 | 
            +
                            catch :response do
         | 
| 111 | 
            +
                              yield result, operation if block_given?
         | 
| 112 | 
            +
                              result
         | 
| 113 | 
            +
                            end
         | 
| 100 114 | 
             
                          end
         | 
| 101 115 |  | 
| 102 116 | 
             
                          ##
         | 
| @@ -125,16 +139,18 @@ module Google | |
| 125 139 |  | 
| 126 140 | 
             
                            response = @client_stub.make_http_request(
         | 
| 127 141 | 
             
                              verb,
         | 
| 128 | 
            -
                              uri: | 
| 129 | 
            -
                              body: | 
| 130 | 
            -
                              params: | 
| 142 | 
            +
                              uri: uri,
         | 
| 143 | 
            +
                              body: body || "",
         | 
| 144 | 
            +
                              params: query_string_params,
         | 
| 145 | 
            +
                              method_name: "import_documents",
         | 
| 131 146 | 
             
                              options: options
         | 
| 132 147 | 
             
                            )
         | 
| 133 148 | 
             
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 134 149 | 
             
                            result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
         | 
| 135 | 
            -
             | 
| 136 | 
            -
             | 
| 137 | 
            -
             | 
| 150 | 
            +
                            catch :response do
         | 
| 151 | 
            +
                              yield result, operation if block_given?
         | 
| 152 | 
            +
                              result
         | 
| 153 | 
            +
                            end
         | 
| 138 154 | 
             
                          end
         | 
| 139 155 |  | 
| 140 156 | 
             
                          ##
         | 
| @@ -163,16 +179,18 @@ module Google | |
| 163 179 |  | 
| 164 180 | 
             
                            response = @client_stub.make_http_request(
         | 
| 165 181 | 
             
                              verb,
         | 
| 166 | 
            -
                              uri: | 
| 167 | 
            -
                              body: | 
| 168 | 
            -
                              params: | 
| 182 | 
            +
                              uri: uri,
         | 
| 183 | 
            +
                              body: body || "",
         | 
| 184 | 
            +
                              params: query_string_params,
         | 
| 185 | 
            +
                              method_name: "get_document",
         | 
| 169 186 | 
             
                              options: options
         | 
| 170 187 | 
             
                            )
         | 
| 171 188 | 
             
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 172 189 | 
             
                            result = ::Google::Cloud::DocumentAI::V1beta3::GetDocumentResponse.decode_json response.body, ignore_unknown_fields: true
         | 
| 173 | 
            -
             | 
| 174 | 
            -
             | 
| 175 | 
            -
             | 
| 190 | 
            +
                            catch :response do
         | 
| 191 | 
            +
                              yield result, operation if block_given?
         | 
| 192 | 
            +
                              result
         | 
| 193 | 
            +
                            end
         | 
| 176 194 | 
             
                          end
         | 
| 177 195 |  | 
| 178 196 | 
             
                          ##
         | 
| @@ -201,16 +219,18 @@ module Google | |
| 201 219 |  | 
| 202 220 | 
             
                            response = @client_stub.make_http_request(
         | 
| 203 221 | 
             
                              verb,
         | 
| 204 | 
            -
                              uri: | 
| 205 | 
            -
                              body: | 
| 206 | 
            -
                              params: | 
| 222 | 
            +
                              uri: uri,
         | 
| 223 | 
            +
                              body: body || "",
         | 
| 224 | 
            +
                              params: query_string_params,
         | 
| 225 | 
            +
                              method_name: "list_documents",
         | 
| 207 226 | 
             
                              options: options
         | 
| 208 227 | 
             
                            )
         | 
| 209 228 | 
             
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 210 229 | 
             
                            result = ::Google::Cloud::DocumentAI::V1beta3::ListDocumentsResponse.decode_json response.body, ignore_unknown_fields: true
         | 
| 211 | 
            -
             | 
| 212 | 
            -
             | 
| 213 | 
            -
             | 
| 230 | 
            +
                            catch :response do
         | 
| 231 | 
            +
                              yield result, operation if block_given?
         | 
| 232 | 
            +
                              result
         | 
| 233 | 
            +
                            end
         | 
| 214 234 | 
             
                          end
         | 
| 215 235 |  | 
| 216 236 | 
             
                          ##
         | 
| @@ -239,16 +259,18 @@ module Google | |
| 239 259 |  | 
| 240 260 | 
             
                            response = @client_stub.make_http_request(
         | 
| 241 261 | 
             
                              verb,
         | 
| 242 | 
            -
                              uri: | 
| 243 | 
            -
                              body: | 
| 244 | 
            -
                              params: | 
| 262 | 
            +
                              uri: uri,
         | 
| 263 | 
            +
                              body: body || "",
         | 
| 264 | 
            +
                              params: query_string_params,
         | 
| 265 | 
            +
                              method_name: "batch_delete_documents",
         | 
| 245 266 | 
             
                              options: options
         | 
| 246 267 | 
             
                            )
         | 
| 247 268 | 
             
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 248 269 | 
             
                            result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
         | 
| 249 | 
            -
             | 
| 250 | 
            -
             | 
| 251 | 
            -
             | 
| 270 | 
            +
                            catch :response do
         | 
| 271 | 
            +
                              yield result, operation if block_given?
         | 
| 272 | 
            +
                              result
         | 
| 273 | 
            +
                            end
         | 
| 252 274 | 
             
                          end
         | 
| 253 275 |  | 
| 254 276 | 
             
                          ##
         | 
| @@ -277,16 +299,18 @@ module Google | |
| 277 299 |  | 
| 278 300 | 
             
                            response = @client_stub.make_http_request(
         | 
| 279 301 | 
             
                              verb,
         | 
| 280 | 
            -
                              uri: | 
| 281 | 
            -
                              body: | 
| 282 | 
            -
                              params: | 
| 302 | 
            +
                              uri: uri,
         | 
| 303 | 
            +
                              body: body || "",
         | 
| 304 | 
            +
                              params: query_string_params,
         | 
| 305 | 
            +
                              method_name: "get_dataset_schema",
         | 
| 283 306 | 
             
                              options: options
         | 
| 284 307 | 
             
                            )
         | 
| 285 308 | 
             
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 286 309 | 
             
                            result = ::Google::Cloud::DocumentAI::V1beta3::DatasetSchema.decode_json response.body, ignore_unknown_fields: true
         | 
| 287 | 
            -
             | 
| 288 | 
            -
             | 
| 289 | 
            -
             | 
| 310 | 
            +
                            catch :response do
         | 
| 311 | 
            +
                              yield result, operation if block_given?
         | 
| 312 | 
            +
                              result
         | 
| 313 | 
            +
                            end
         | 
| 290 314 | 
             
                          end
         | 
| 291 315 |  | 
| 292 316 | 
             
                          ##
         | 
| @@ -315,16 +339,18 @@ module Google | |
| 315 339 |  | 
| 316 340 | 
             
                            response = @client_stub.make_http_request(
         | 
| 317 341 | 
             
                              verb,
         | 
| 318 | 
            -
                              uri: | 
| 319 | 
            -
                              body: | 
| 320 | 
            -
                              params: | 
| 342 | 
            +
                              uri: uri,
         | 
| 343 | 
            +
                              body: body || "",
         | 
| 344 | 
            +
                              params: query_string_params,
         | 
| 345 | 
            +
                              method_name: "update_dataset_schema",
         | 
| 321 346 | 
             
                              options: options
         | 
| 322 347 | 
             
                            )
         | 
| 323 348 | 
             
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 324 349 | 
             
                            result = ::Google::Cloud::DocumentAI::V1beta3::DatasetSchema.decode_json response.body, ignore_unknown_fields: true
         | 
| 325 | 
            -
             | 
| 326 | 
            -
             | 
| 327 | 
            -
             | 
| 350 | 
            +
                            catch :response do
         | 
| 351 | 
            +
                              yield result, operation if block_given?
         | 
| 352 | 
            +
                              result
         | 
| 353 | 
            +
                            end
         | 
| 328 354 | 
             
                          end
         | 
| 329 355 |  | 
| 330 356 | 
             
                          ##
         | 
| @@ -11,7 +11,7 @@ require 'google/cloud/documentai/v1beta3/document_io_pb' | |
| 11 11 | 
             
            require 'google/cloud/documentai/v1beta3/document_schema_pb'
         | 
| 12 12 |  | 
| 13 13 |  | 
| 14 | 
            -
            descriptor_data = "\n-google/cloud/documentai/v1beta3/dataset.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/documentai/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\"\x9c\x08\n\x07\x44\x61taset\x12\\\n\x12gcs_managed_config\x18\x03 \x01(\x0b\x32\x39.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigB\x03\xe0\x41\x01H\x00\x12l\n\x19\x64ocument_warehouse_config\x18\x05 \x01(\x0b\x32@.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigB\x05\x18\x01\xe0\x41\x01H\x00\x12h\n\x18unmanaged_dataset_config\x18\x06 \x01(\x0b\x32?.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigB\x03\xe0\x41\x01H\x00\x12\x66\n\x17spanner_indexing_config\x18\x04 \x01(\x0b\x32>.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigB\x03\xe0\x41\x01H\x01\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x05state\x18\x02 \x01(\x0e\x32..google.cloud.documentai.v1beta3.Dataset.StateB\x03\xe0\x41\x02\x12\x1a\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\t \x01(\x08\x42\x03\xe0\x41\x03\x1aW\n\x10GCSManagedConfig\x12\x43\n\ngcs_prefix\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.GcsPrefixB\x03\xe0\x41\x02\x1ar\n\x17\x44ocumentWarehouseConfig\x12\x17\n\ncollection\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12>\n\x06schema\x18\x02 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&contentwarehouse.googleapis.com/Schema\x1a\x18\n\x16UnmanagedDatasetConfig\x1a\x17\n\x15SpannerIndexingConfig\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x11\n\rUNINITIALIZED\x10\x01\x12\x10\n\x0cINITIALIZING\x10\x02\x12\x0f\n\x0bINITIALIZED\x10\x03:n\xea\x41k\n!documentai.googleapis.com/Dataset\x12\x46projects/{project}/locations/{location}/processors/{processor}/datasetB\x10\n\x0estorage_sourceB\x11\n\x0findexing_source\"\x86\x03\n\nDocumentId\x12^\n\x12gcs_managed_doc_id\x18\x01 \x01(\x0b\x32@.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentIdH\x00\x12[\n\x10unmanaged_doc_id\x18\x04 \x01(\x0b\x32?.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentIdH\x00\x12\x42\n\x0crevision_ref\x18\x03 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.RevisionRef\x1a\x43\n\x14GCSManagedDocumentId\x12\x14\n\x07gcs_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\tcw_doc_id\x18\x02 \x01(\tB\x02\x18\x01\x1a*\n\x13UnmanagedDocumentId\x12\x13\n\x06\x64oc_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x06\n\x04type\"\ | 
| 14 | 
            +
            descriptor_data = "\n-google/cloud/documentai/v1beta3/dataset.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/documentai/v1beta3/document.proto\x1a\x31google/cloud/documentai/v1beta3/document_io.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\"\x9c\x08\n\x07\x44\x61taset\x12\\\n\x12gcs_managed_config\x18\x03 \x01(\x0b\x32\x39.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigB\x03\xe0\x41\x01H\x00\x12l\n\x19\x64ocument_warehouse_config\x18\x05 \x01(\x0b\x32@.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigB\x05\x18\x01\xe0\x41\x01H\x00\x12h\n\x18unmanaged_dataset_config\x18\x06 \x01(\x0b\x32?.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigB\x03\xe0\x41\x01H\x00\x12\x66\n\x17spanner_indexing_config\x18\x04 \x01(\x0b\x32>.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigB\x03\xe0\x41\x01H\x01\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x05state\x18\x02 \x01(\x0e\x32..google.cloud.documentai.v1beta3.Dataset.StateB\x03\xe0\x41\x02\x12\x1a\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\t \x01(\x08\x42\x03\xe0\x41\x03\x1aW\n\x10GCSManagedConfig\x12\x43\n\ngcs_prefix\x18\x01 \x01(\x0b\x32*.google.cloud.documentai.v1beta3.GcsPrefixB\x03\xe0\x41\x02\x1ar\n\x17\x44ocumentWarehouseConfig\x12\x17\n\ncollection\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12>\n\x06schema\x18\x02 \x01(\tB.\xe0\x41\x03\xfa\x41(\n&contentwarehouse.googleapis.com/Schema\x1a\x18\n\x16UnmanagedDatasetConfig\x1a\x17\n\x15SpannerIndexingConfig\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x11\n\rUNINITIALIZED\x10\x01\x12\x10\n\x0cINITIALIZING\x10\x02\x12\x0f\n\x0bINITIALIZED\x10\x03:n\xea\x41k\n!documentai.googleapis.com/Dataset\x12\x46projects/{project}/locations/{location}/processors/{processor}/datasetB\x10\n\x0estorage_sourceB\x11\n\x0findexing_source\"\x86\x03\n\nDocumentId\x12^\n\x12gcs_managed_doc_id\x18\x01 \x01(\x0b\x32@.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentIdH\x00\x12[\n\x10unmanaged_doc_id\x18\x04 \x01(\x0b\x32?.google.cloud.documentai.v1beta3.DocumentId.UnmanagedDocumentIdH\x00\x12\x42\n\x0crevision_ref\x18\x03 \x01(\x0b\x32,.google.cloud.documentai.v1beta3.RevisionRef\x1a\x43\n\x14GCSManagedDocumentId\x12\x14\n\x07gcs_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\tcw_doc_id\x18\x02 \x01(\tB\x02\x18\x01\x1a*\n\x13UnmanagedDocumentId\x12\x13\n\x06\x64oc_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x06\n\x04type\"\xa9\x02\n\rDatasetSchema\x12\x0c\n\x04name\x18\x01 \x01(\t\x12M\n\x0f\x64ocument_schema\x18\x03 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchemaB\x03\xe0\x41\x01\x12\x1a\n\rsatisfies_pzs\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03:\x82\x01\xea\x41\x7f\n\'documentai.googleapis.com/DatasetSchema\x12Tprojects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema\"\x87\x02\n\x15\x42\x61tchDatasetDocuments\x12o\n\x17individual_document_ids\x18\x01 \x01(\x0b\x32L.google.cloud.documentai.v1beta3.BatchDatasetDocuments.IndividualDocumentIdsH\x00\x12\x10\n\x06\x66ilter\x18\x02 \x01(\tH\x00\x1a_\n\x15IndividualDocumentIds\x12\x46\n\x0c\x64ocument_ids\x18\x01 \x03(\x0b\x32+.google.cloud.documentai.v1beta3.DocumentIdB\x03\xe0\x41\x02\x42\n\n\x08\x63riteriaB\xc8\x02\n#com.google.cloud.documentai.v1beta3B\x0c\x44\x61tasetProtoP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3\xea\x41\x62\n&contentwarehouse.googleapis.com/Schema\x12\x38projects/{project}/locations/{location}/schemas/{schema}b\x06proto3"
         | 
| 15 15 |  | 
| 16 16 | 
             
            pool = Google::Protobuf::DescriptorPool.generated_pool
         | 
| 17 17 |  | 
| @@ -5,7 +5,7 @@ | |
| 5 5 | 
             
            require 'google/protobuf'
         | 
| 6 6 |  | 
| 7 7 |  | 
| 8 | 
            -
            descriptor_data = "\n5google/cloud/documentai/v1beta3/document_schema.proto\x12\x1fgoogle.cloud.documentai.v1beta3\"\xac\x02\n\x0eSummaryOptions\x12\x46\n\x06length\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1beta3.SummaryOptions.Length\x12\x46\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x36.google.cloud.documentai.v1beta3.SummaryOptions.Format\"L\n\x06Length\x12\x16\n\x12LENGTH_UNSPECIFIED\x10\x00\x12\t\n\x05\x42RIEF\x10\x01\x12\x0c\n\x08MODERATE\x10\x02\x12\x11\n\rCOMPREHENSIVE\x10\x03\"<\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\r\n\tPARAGRAPH\x10\x01\x12\x0b\n\x07\x42ULLETS\x10\x02\"c\n\x17\x46ieldExtractionMetadata\x12H\n\x0fsummary_options\x18\x02 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.SummaryOptions\"\x81\x01\n\x10PropertyMetadata\x12\x10\n\x08inactive\x18\x03 \x01(\x08\x12[\n\x19\x66ield_extraction_metadata\x18\t \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.FieldExtractionMetadata\"&\n\x12\x45ntityTypeMetadata\x12\x10\n\x08inactive\x18\x05 \x01(\x08\"\ | 
| 8 | 
            +
            descriptor_data = "\n5google/cloud/documentai/v1beta3/document_schema.proto\x12\x1fgoogle.cloud.documentai.v1beta3\"\xac\x02\n\x0eSummaryOptions\x12\x46\n\x06length\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1beta3.SummaryOptions.Length\x12\x46\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x36.google.cloud.documentai.v1beta3.SummaryOptions.Format\"L\n\x06Length\x12\x16\n\x12LENGTH_UNSPECIFIED\x10\x00\x12\t\n\x05\x42RIEF\x10\x01\x12\x0c\n\x08MODERATE\x10\x02\x12\x11\n\rCOMPREHENSIVE\x10\x03\"<\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\r\n\tPARAGRAPH\x10\x01\x12\x0b\n\x07\x42ULLETS\x10\x02\"c\n\x17\x46ieldExtractionMetadata\x12H\n\x0fsummary_options\x18\x02 \x01(\x0b\x32/.google.cloud.documentai.v1beta3.SummaryOptions\"\x81\x01\n\x10PropertyMetadata\x12\x10\n\x08inactive\x18\x03 \x01(\x08\x12[\n\x19\x66ield_extraction_metadata\x18\t \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.FieldExtractionMetadata\"&\n\x12\x45ntityTypeMetadata\x12\x10\n\x08inactive\x18\x05 \x01(\x08\"\xa1\t\n\x0e\x44ocumentSchema\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12P\n\x0c\x65ntity_types\x18\x03 \x03(\x0b\x32:.google.cloud.documentai.v1beta3.DocumentSchema.EntityType\x12J\n\x08metadata\x18\x04 \x01(\x0b\x32\x38.google.cloud.documentai.v1beta3.DocumentSchema.Metadata\x1a\xae\x06\n\nEntityType\x12\\\n\x0b\x65num_values\x18\x0e \x01(\x0b\x32\x45.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValuesH\x00\x12\x14\n\x0c\x64isplay_name\x18\r \x01(\t\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0f \x01(\t\x12\x12\n\nbase_types\x18\x02 \x03(\t\x12W\n\nproperties\x18\x06 \x03(\x0b\x32\x43.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property\x12Q\n\x14\x65ntity_type_metadata\x18\x0b \x01(\x0b\x32\x33.google.cloud.documentai.v1beta3.EntityTypeMetadata\x1a\x1c\n\nEnumValues\x12\x0e\n\x06values\x18\x01 \x03(\t\x1a\x9a\x03\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12\x12\n\nvalue_type\x18\x02 \x01(\t\x12k\n\x0foccurrence_type\x18\x03 \x01(\x0e\x32R.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType\x12L\n\x11property_metadata\x18\x05 \x01(\x0b\x32\x31.google.cloud.documentai.v1beta3.PropertyMetadata\"\x85\x01\n\x0eOccurrenceType\x12\x1f\n\x1bOCCURRENCE_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rOPTIONAL_ONCE\x10\x01\x12\x15\n\x11OPTIONAL_MULTIPLE\x10\x02\x12\x11\n\rREQUIRED_ONCE\x10\x03\x12\x15\n\x11REQUIRED_MULTIPLE\x10\x04\x42\x0e\n\x0cvalue_source\x1a\x94\x01\n\x08Metadata\x12\x19\n\x11\x64ocument_splitter\x18\x01 \x01(\x08\x12&\n\x1e\x64ocument_allow_multiple_labels\x18\x02 \x01(\x08\x12%\n\x1dprefixed_naming_on_properties\x18\x06 \x01(\x08\x12\x1e\n\x16skip_naming_validation\x18\x07 \x01(\x08\x42\xef\x01\n#com.google.cloud.documentai.v1beta3B\x18\x44ocumentAiDocumentSchemaP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\x06proto3"
         | 
| 9 9 |  | 
| 10 10 | 
             
            pool = Google::Protobuf::DescriptorPool.generated_pool
         | 
| 11 11 |  | 
| @@ -28,6 +28,9 @@ module Google | |
| 28 28 | 
             
                # @!attribute [rw] destinations
         | 
| 29 29 | 
             
                #   @return [::Array<::Google::Api::ClientLibraryDestination>]
         | 
| 30 30 | 
             
                #     The destination where API teams want this client library to be published.
         | 
| 31 | 
            +
                # @!attribute [rw] selective_gapic_generation
         | 
| 32 | 
            +
                #   @return [::Google::Api::SelectiveGapicGeneration]
         | 
| 33 | 
            +
                #     Configuration for which RPCs should be generated in the GAPIC client.
         | 
| 31 34 | 
             
                class CommonLanguageSettings
         | 
| 32 35 | 
             
                  include ::Google::Protobuf::MessageExts
         | 
| 33 36 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -212,6 +215,12 @@ module Google | |
| 212 215 | 
             
                  #     enabled. By default, asynchronous REST clients will not be generated.
         | 
| 213 216 | 
             
                  #     This feature will be enabled by default 1 month after launching the
         | 
| 214 217 | 
             
                  #     feature in preview packages.
         | 
| 218 | 
            +
                  # @!attribute [rw] protobuf_pythonic_types_enabled
         | 
| 219 | 
            +
                  #   @return [::Boolean]
         | 
| 220 | 
            +
                  #     Enables generation of protobuf code using new types that are more
         | 
| 221 | 
            +
                  #     Pythonic which are included in `protobuf>=5.29.x`. This feature will be
         | 
| 222 | 
            +
                  #     enabled by default 1 month after launching the feature in preview
         | 
| 223 | 
            +
                  #     packages.
         | 
| 215 224 | 
             
                  class ExperimentalFeatures
         | 
| 216 225 | 
             
                    include ::Google::Protobuf::MessageExts
         | 
| 217 226 | 
             
                    extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -297,9 +306,28 @@ module Google | |
| 297 306 | 
             
                # @!attribute [rw] common
         | 
| 298 307 | 
             
                #   @return [::Google::Api::CommonLanguageSettings]
         | 
| 299 308 | 
             
                #     Some settings.
         | 
| 309 | 
            +
                # @!attribute [rw] renamed_services
         | 
| 310 | 
            +
                #   @return [::Google::Protobuf::Map{::String => ::String}]
         | 
| 311 | 
            +
                #     Map of service names to renamed services. Keys are the package relative
         | 
| 312 | 
            +
                #     service names and values are the name to be used for the service client
         | 
| 313 | 
            +
                #     and call options.
         | 
| 314 | 
            +
                #
         | 
| 315 | 
            +
                #     publishing:
         | 
| 316 | 
            +
                #       go_settings:
         | 
| 317 | 
            +
                #         renamed_services:
         | 
| 318 | 
            +
                #           Publisher: TopicAdmin
         | 
| 300 319 | 
             
                class GoSettings
         | 
| 301 320 | 
             
                  include ::Google::Protobuf::MessageExts
         | 
| 302 321 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 322 | 
            +
             | 
| 323 | 
            +
                  # @!attribute [rw] key
         | 
| 324 | 
            +
                  #   @return [::String]
         | 
| 325 | 
            +
                  # @!attribute [rw] value
         | 
| 326 | 
            +
                  #   @return [::String]
         | 
| 327 | 
            +
                  class RenamedServicesEntry
         | 
| 328 | 
            +
                    include ::Google::Protobuf::MessageExts
         | 
| 329 | 
            +
                    extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 330 | 
            +
                  end
         | 
| 303 331 | 
             
                end
         | 
| 304 332 |  | 
| 305 333 | 
             
                # Describes the generator configuration for a method.
         | 
| @@ -375,6 +403,17 @@ module Google | |
| 375 403 | 
             
                  end
         | 
| 376 404 | 
             
                end
         | 
| 377 405 |  | 
| 406 | 
            +
                # This message is used to configure the generation of a subset of the RPCs in
         | 
| 407 | 
            +
                # a service for client libraries.
         | 
| 408 | 
            +
                # @!attribute [rw] methods
         | 
| 409 | 
            +
                #   @return [::Array<::String>]
         | 
| 410 | 
            +
                #     An allowlist of the fully qualified names of RPCs that should be included
         | 
| 411 | 
            +
                #     on public client surfaces.
         | 
| 412 | 
            +
                class SelectiveGapicGeneration
         | 
| 413 | 
            +
                  include ::Google::Protobuf::MessageExts
         | 
| 414 | 
            +
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 415 | 
            +
                end
         | 
| 416 | 
            +
             | 
| 378 417 | 
             
                # The organization for which the client libraries are being published.
         | 
| 379 418 | 
             
                # Affects the url where generated docs are published, etc.
         | 
| 380 419 | 
             
                module ClientLibraryOrganization
         | 
| @@ -162,6 +162,12 @@ module Google | |
| 162 162 | 
             
                    # @!attribute [rw] document_schema
         | 
| 163 163 | 
             
                    #   @return [::Google::Cloud::DocumentAI::V1beta3::DocumentSchema]
         | 
| 164 164 | 
             
                    #     Optional. Schema of the dataset.
         | 
| 165 | 
            +
                    # @!attribute [r] satisfies_pzs
         | 
| 166 | 
            +
                    #   @return [::Boolean]
         | 
| 167 | 
            +
                    #     Output only. Reserved for future use.
         | 
| 168 | 
            +
                    # @!attribute [r] satisfies_pzi
         | 
| 169 | 
            +
                    #   @return [::Boolean]
         | 
| 170 | 
            +
                    #     Output only. Reserved for future use.
         | 
| 165 171 | 
             
                    class DatasetSchema
         | 
| 166 172 | 
             
                      include ::Google::Protobuf::MessageExts
         | 
| 167 173 | 
             
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -135,6 +135,10 @@ module Google | |
| 135 135 | 
             
                      #     - The `/` is sometimes used to denote a property of a type.  For example
         | 
| 136 136 | 
             
                      #       `line_item/amount`.  This convention is deprecated, but will still be
         | 
| 137 137 | 
             
                      #       honored for backward compatibility.
         | 
| 138 | 
            +
                      # @!attribute [rw] description
         | 
| 139 | 
            +
                      #   @return [::String]
         | 
| 140 | 
            +
                      #     The description of the entity type. Could be used to provide more
         | 
| 141 | 
            +
                      #     information about the entity type for model calls.
         | 
| 138 142 | 
             
                      # @!attribute [rw] base_types
         | 
| 139 143 | 
             
                      #   @return [::Array<::String>]
         | 
| 140 144 | 
             
                      #     The entity type that this type is derived from.  For now, one and only
         | 
| @@ -163,6 +167,10 @@ module Google | |
| 163 167 | 
             
                        #   @return [::String]
         | 
| 164 168 | 
             
                        #     The name of the property.  Follows the same guidelines as the
         | 
| 165 169 | 
             
                        #     EntityType name.
         | 
| 170 | 
            +
                        # @!attribute [rw] description
         | 
| 171 | 
            +
                        #   @return [::String]
         | 
| 172 | 
            +
                        #     The description of the property. Could be used to provide more
         | 
| 173 | 
            +
                        #     information about the property for model calls.
         | 
| 166 174 | 
             
                        # @!attribute [rw] display_name
         | 
| 167 175 | 
             
                        #   @return [::String]
         | 
| 168 176 | 
             
                        #     User defined name for the property.
         | 
| @@ -42,7 +42,7 @@ module Google | |
| 42 42 | 
             
                #     The error result of the operation in case of failure or cancellation.
         | 
| 43 43 | 
             
                # @!attribute [rw] response
         | 
| 44 44 | 
             
                #   @return [::Google::Protobuf::Any]
         | 
| 45 | 
            -
                #     The normal response of the operation | 
| 45 | 
            +
                #     The normal, successful response of the operation.  If the original
         | 
| 46 46 | 
             
                #     method returns no data on success, such as `Delete`, the response is
         | 
| 47 47 | 
             
                #     `google.protobuf.Empty`.  If the original method is standard
         | 
| 48 48 | 
             
                #     `Get`/`Create`/`Update`, the response should be the resource.  For other
         | 
| @@ -55,7 +55,8 @@ module Google | |
| 55 55 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 56 56 | 
             
                end
         | 
| 57 57 |  | 
| 58 | 
            -
                # The request message for | 
| 58 | 
            +
                # The request message for
         | 
| 59 | 
            +
                # Operations.GetOperation.
         | 
| 59 60 | 
             
                # @!attribute [rw] name
         | 
| 60 61 | 
             
                #   @return [::String]
         | 
| 61 62 | 
             
                #     The name of the operation resource.
         | 
| @@ -64,7 +65,8 @@ module Google | |
| 64 65 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 65 66 | 
             
                end
         | 
| 66 67 |  | 
| 67 | 
            -
                # The request message for | 
| 68 | 
            +
                # The request message for
         | 
| 69 | 
            +
                # Operations.ListOperations.
         | 
| 68 70 | 
             
                # @!attribute [rw] name
         | 
| 69 71 | 
             
                #   @return [::String]
         | 
| 70 72 | 
             
                #     The name of the operation's parent resource.
         | 
| @@ -82,7 +84,8 @@ module Google | |
| 82 84 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 83 85 | 
             
                end
         | 
| 84 86 |  | 
| 85 | 
            -
                # The response message for | 
| 87 | 
            +
                # The response message for
         | 
| 88 | 
            +
                # Operations.ListOperations.
         | 
| 86 89 | 
             
                # @!attribute [rw] operations
         | 
| 87 90 | 
             
                #   @return [::Array<::Google::Longrunning::Operation>]
         | 
| 88 91 | 
             
                #     A list of operations that matches the specified filter in the request.
         | 
| @@ -94,7 +97,8 @@ module Google | |
| 94 97 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 95 98 | 
             
                end
         | 
| 96 99 |  | 
| 97 | 
            -
                # The request message for | 
| 100 | 
            +
                # The request message for
         | 
| 101 | 
            +
                # Operations.CancelOperation.
         | 
| 98 102 | 
             
                # @!attribute [rw] name
         | 
| 99 103 | 
             
                #   @return [::String]
         | 
| 100 104 | 
             
                #     The name of the operation resource to be cancelled.
         | 
| @@ -103,7 +107,8 @@ module Google | |
| 103 107 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 104 108 | 
             
                end
         | 
| 105 109 |  | 
| 106 | 
            -
                # The request message for | 
| 110 | 
            +
                # The request message for
         | 
| 111 | 
            +
                # Operations.DeleteOperation.
         | 
| 107 112 | 
             
                # @!attribute [rw] name
         | 
| 108 113 | 
             
                #   @return [::String]
         | 
| 109 114 | 
             
                #     The name of the operation resource to be deleted.
         | 
| @@ -112,7 +117,8 @@ module Google | |
| 112 117 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 113 118 | 
             
                end
         | 
| 114 119 |  | 
| 115 | 
            -
                # The request message for | 
| 120 | 
            +
                # The request message for
         | 
| 121 | 
            +
                # Operations.WaitOperation.
         | 
| 116 122 | 
             
                # @!attribute [rw] name
         | 
| 117 123 | 
             
                #   @return [::String]
         | 
| 118 124 | 
             
                #     The name of the operation resource to wait on.
         | 
| @@ -130,13 +136,12 @@ module Google | |
| 130 136 | 
             
                #
         | 
| 131 137 | 
             
                # Example:
         | 
| 132 138 | 
             
                #
         | 
| 133 | 
            -
                # | 
| 134 | 
            -
                #        | 
| 135 | 
            -
                # | 
| 136 | 
            -
                # | 
| 137 | 
            -
                #        | 
| 138 | 
            -
                #     } | 
| 139 | 
            -
                #   }
         | 
| 139 | 
            +
                #     rpc Export(ExportRequest) returns (google.longrunning.Operation) {
         | 
| 140 | 
            +
                #       option (google.longrunning.operation_info) = {
         | 
| 141 | 
            +
                #         response_type: "ExportResponse"
         | 
| 142 | 
            +
                #         metadata_type: "ExportMetadata"
         | 
| 143 | 
            +
                #       };
         | 
| 144 | 
            +
                #     }
         | 
| 140 145 | 
             
                # @!attribute [rw] response_type
         | 
| 141 146 | 
             
                #   @return [::String]
         | 
| 142 147 | 
             
                #     Required. The message name of the primary return type for this
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-cloud-document_ai-v1beta3
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.38.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024- | 
| 11 | 
            +
            date: 2024-12-10 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: gapic-common
         | 
| @@ -16,7 +16,7 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - ">="
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 0. | 
| 19 | 
            +
                    version: 0.24.0
         | 
| 20 20 | 
             
                - - "<"
         | 
| 21 21 | 
             
                  - !ruby/object:Gem::Version
         | 
| 22 22 | 
             
                    version: 2.a
         | 
| @@ -26,7 +26,7 @@ dependencies: | |
| 26 26 | 
             
                requirements:
         | 
| 27 27 | 
             
                - - ">="
         | 
| 28 28 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version: 0. | 
| 29 | 
            +
                    version: 0.24.0
         | 
| 30 30 | 
             
                - - "<"
         | 
| 31 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 32 32 | 
             
                    version: 2.a
         | 
| @@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 164 164 | 
             
                - !ruby/object:Gem::Version
         | 
| 165 165 | 
             
                  version: '0'
         | 
| 166 166 | 
             
            requirements: []
         | 
| 167 | 
            -
            rubygems_version: 3.5. | 
| 167 | 
            +
            rubygems_version: 3.5.23
         | 
| 168 168 | 
             
            signing_key: 
         | 
| 169 169 | 
             
            specification_version: 4
         | 
| 170 170 | 
             
            summary: Service to parse structured information from unstructured or semi-structured
         |