google-cloud-automl-v1 0.4.1 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/automl/v1/annotation_payload_pb.rb +2 -2
  5. data/lib/google/cloud/automl/v1/annotation_spec_pb.rb +2 -2
  6. data/lib/google/cloud/automl/v1/automl/client.rb +539 -149
  7. data/lib/google/cloud/automl/v1/automl/operations.rb +149 -37
  8. data/lib/google/cloud/automl/v1/classification_pb.rb +1 -1
  9. data/lib/google/cloud/automl/v1/data_items_pb.rb +2 -2
  10. data/lib/google/cloud/automl/v1/dataset_pb.rb +2 -2
  11. data/lib/google/cloud/automl/v1/detection_pb.rb +2 -2
  12. data/lib/google/cloud/automl/v1/geometry_pb.rb +1 -1
  13. data/lib/google/cloud/automl/v1/image_pb.rb +2 -2
  14. data/lib/google/cloud/automl/v1/io_pb.rb +2 -2
  15. data/lib/google/cloud/automl/v1/model_evaluation_pb.rb +2 -2
  16. data/lib/google/cloud/automl/v1/model_pb.rb +2 -2
  17. data/lib/google/cloud/automl/v1/operations_pb.rb +2 -2
  18. data/lib/google/cloud/automl/v1/prediction_service/client.rb +83 -45
  19. data/lib/google/cloud/automl/v1/prediction_service/operations.rb +149 -37
  20. data/lib/google/cloud/automl/v1/prediction_service_pb.rb +2 -2
  21. data/lib/google/cloud/automl/v1/service_pb.rb +2 -2
  22. data/lib/google/cloud/automl/v1/text_extraction_pb.rb +2 -2
  23. data/lib/google/cloud/automl/v1/text_pb.rb +2 -2
  24. data/lib/google/cloud/automl/v1/text_segment_pb.rb +1 -1
  25. data/lib/google/cloud/automl/v1/text_sentiment_pb.rb +2 -2
  26. data/lib/google/cloud/automl/v1/translation_pb.rb +2 -2
  27. data/lib/google/cloud/automl/v1/version.rb +1 -1
  28. data/proto_docs/google/api/field_behavior.rb +7 -1
  29. data/proto_docs/google/cloud/automl/v1/service.rb +5 -4
  30. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e240718df0d8e492c2207bd640d8d6aca233143010e8e7bdbad19643e780571
4
- data.tar.gz: 9e91b2da15d40bd5503f104828abddf0e85db2017f5f034d399a0d8059db9a21
3
+ metadata.gz: 6837ad5ff79bdfc71b64984e99875f6f14857c053b3c809e8c856959502db2eb
4
+ data.tar.gz: 37834999f3d531db65d92dd6e84955b9f87ff3329c2fbeaa99e576096e7bd55d
5
5
  SHA512:
6
- metadata.gz: d1e8598f921d0b57646417fda1767491249e6611aea684426e69a59d69990767ec1e72750806ec8f37a67cd0be78fdddcd2c20978039325e8c15aad49e2a5748
7
- data.tar.gz: 9bb64445fd363e2f0310f130370fbed7cb81415c36916b5d68398cfc169b1105e38cda74e5f802ecae24aa18dec7ffe2f8698f8ddafc587ba3b4142ba5aeac71
6
+ metadata.gz: fe924553383e981b1ffc2f3e08ae627b1092454c9117ebffb3a39710076b9498ed49386e53124b3b9e61cca1d78608f828faa97f8d090af48d83071793d8ab06
7
+ data.tar.gz: 5f7a57d199a64b1f069b757ca14b40d2360bb80535d68b9a1d3a9f41424bccd21393d208444e84f48f7387b0ac44297a0d1a21f66e10267c103f2af5ab9fbca1
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-automl-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::AutoML::V1::PredictionService::Credentials}):
68
68
 
69
- 1. `AUTOML_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `AUTOML_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `AUTOML_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `AUTOML_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/automl/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/automl/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new do |config|
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/automl/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/automl/v1"
34
34
 
35
35
  client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::AutoML::V1::PredictRequest.new # (request fields as keyword arguments...)
37
37
  response = client.predict request
38
38
  ```
39
39
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1/annotation_payload.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/cloud/automl/v1/classification_pb'
7
5
  require 'google/cloud/automl/v1/detection_pb'
8
6
  require 'google/cloud/automl/v1/text_extraction_pb'
@@ -10,6 +8,8 @@ require 'google/cloud/automl/v1/text_sentiment_pb'
10
8
  require 'google/cloud/automl/v1/translation_pb'
11
9
  require 'google/protobuf/any_pb'
12
10
  require 'google/api/annotations_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/automl/v1/annotation_payload.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.automl.v1.AnnotationPayload" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1/annotation_spec.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/automl/v1/annotation_spec.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.automl.v1.AnnotationSpec" do