google-cloud-automl-v1beta1 0.5.0 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) 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/v1beta1/annotation_payload_pb.rb +2 -2
  5. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +2 -2
  6. data/lib/google/cloud/automl/v1beta1/automl/client.rb +687 -181
  7. data/lib/google/cloud/automl/v1beta1/automl/operations.rb +149 -37
  8. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +2 -2
  9. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +2 -2
  10. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +2 -2
  11. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +1 -1
  12. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +1 -1
  13. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +2 -2
  14. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +2 -2
  15. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +1 -1
  16. data/lib/google/cloud/automl/v1beta1/image_pb.rb +2 -2
  17. data/lib/google/cloud/automl/v1beta1/io_pb.rb +1 -1
  18. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +2 -2
  19. data/lib/google/cloud/automl/v1beta1/model_pb.rb +2 -2
  20. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +2 -2
  21. data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +83 -45
  22. data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +149 -37
  23. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +2 -2
  24. data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +1 -1
  25. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +1 -1
  26. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +1 -1
  27. data/lib/google/cloud/automl/v1beta1/service_pb.rb +2 -2
  28. data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +1 -1
  29. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +2 -2
  30. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +2 -2
  31. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +2 -2
  32. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +2 -2
  33. data/lib/google/cloud/automl/v1beta1/text_pb.rb +2 -2
  34. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +1 -1
  35. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +2 -2
  36. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +2 -2
  37. data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
  38. data/lib/google/cloud/automl/v1beta1/video_pb.rb +2 -2
  39. data/proto_docs/google/api/field_behavior.rb +7 -1
  40. metadata +13 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac77ed6b7968d400f877fb166b3a74fa9961b3e20e011b8032829c40c9da1bcc
4
- data.tar.gz: c1b52ea1cdad41af797b6c32b9573774c5b0ceb8d04ec8940b0ef9d569e4072b
3
+ metadata.gz: a658059d4f930bcf6f2aade3dcc580fa9f8a85f48230ae72918380759a2bd02c
4
+ data.tar.gz: bd7b0b0b93a21f33e39847d30ebb75b02b73e35ba4ef72a1cac382b1e23bf78f
5
5
  SHA512:
6
- metadata.gz: 6174fbd618d43503e6417af742924f97627c12cab8dbc4ff63dcc48573ee47227196fe25d7a93ab4d6293aa5f8310473360984c324793468d3800201652b52bc
7
- data.tar.gz: d7dceebe1d0150aa39c09b082f9dda7e97a0813d7c1ecd5b666d2e1cb433711fb69e93a6b9d1c8b9c84d60918cb34352948fc7a53e73bfe338cd84ea92c289bf
6
+ metadata.gz: cff76841f0bbadaafa30b5dec8b3d3648d4bf1d1d81bf8ddb2b13878b989e10896e00eaeadb7980955c043719ece73b23361ae6be820d70349646be72f684f3b
7
+ data.tar.gz: c170b66a6f6529803542c031cf2049e60513fb8f971ec3ac68bc4d7394bc52e61cda3130b0f1f6a53029708fd78252751e7565e6d7d1d754f6b96384de5379e3
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-automl-v1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::AutoML::V1beta1::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/v1beta1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::AutoML::V1beta1::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/v1beta1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new do |con
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/v1beta1"
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/v1beta1"
34
34
 
35
35
  client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::AutoML::V1beta1::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/v1beta1/annotation_payload.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/cloud/automl/v1beta1/classification_pb'
7
5
  require 'google/cloud/automl/v1beta1/detection_pb'
8
6
  require 'google/cloud/automl/v1beta1/tables_pb'
@@ -11,6 +9,8 @@ require 'google/cloud/automl/v1beta1/text_sentiment_pb'
11
9
  require 'google/cloud/automl/v1beta1/translation_pb'
12
10
  require 'google/protobuf/any_pb'
13
11
  require 'google/api/annotations_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/automl/v1beta1/annotation_payload.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.automl.v1beta1.AnnotationPayload" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/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/v1beta1/annotation_spec.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.automl.v1beta1.AnnotationSpec" do