google-cloud-dataqna-v1alpha 0.2.4 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fae500f6801b10c3544142902d3eaebf78c856ff49aa51067897fcc13d3af4e
4
- data.tar.gz: 155a758433bcca4929e191cb1d0262f1e5a7b04c2a0af240122489437ba0a99b
3
+ metadata.gz: 3f6f0e58c39b0fb1eb1f3207b25c44139c718f78bfe171c468358dc8fd2e4f07
4
+ data.tar.gz: 98f88ff1bef171a4faeb3557f9fe14ac3f5d652d8dc7674426f0febe38469c4a
5
5
  SHA512:
6
- metadata.gz: fa875972b613d9e3446cc19e6b2ecc03ca689f86848e2b424d897d10f705393de94daa27d0f20c6fbaec8f9473070e3a8f8a9e1feb2d2f3e259bf485ad0797b5
7
- data.tar.gz: b371a1c7cd27330954d595547848a00ffc17254d8870c18ec07ad0a30bce4828b7b2636a96d057dca4a853ac994e160179b518cc25874bb36c8179cbda1f3c5c
6
+ metadata.gz: f2206a5f64d5035b1128838eef85c59358eb12aef420af09f7b6a8fa904ba8b3643d9adcc5a16584edd09d257c26fe22b7901f7105da0e5318303b6ba5f352f4
7
+ data.tar.gz: da3b64548bcf359d9e10bdbc5fdfe8aaf6e64af5ce304c849e90fcdc6dffb33611988ca61cb47d97824397ee1234fcd86b572ca28becd1a33a0816fbd7abc82d
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=BigQuery Data QnA V1alpha API
2
+ --title="BigQuery Data QnA V1alpha API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::DataQnA::V1alpha::SuggestQueriesRequest.new # (reques
37
37
  response = client.suggest_queries request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dataqna-v1alpha/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  ## Enabling Logging
@@ -66,16 +66,21 @@ module GRPC
66
66
  end
67
67
  ```
68
68
 
69
+
70
+ ## Google Cloud Samples
71
+
72
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
73
+
69
74
  ## Supported Ruby Versions
70
75
 
71
- This library is supported on Ruby 2.5+.
76
+ This library is supported on Ruby 2.6+.
72
77
 
73
78
  Google provides official support for Ruby versions that are actively supported
74
79
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
75
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
76
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
77
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
78
- about the Ruby support schedule.
80
+ in security maintenance, and not end of life. Older versions of Ruby _may_
81
+ still work, but are unsupported and not recommended. See
82
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
83
+ support schedule.
79
84
 
80
85
  ## Which client should I use?
81
86
 
@@ -257,6 +257,21 @@ module Google
257
257
  #
258
258
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
259
259
  #
260
+ # @example Basic example
261
+ # require "google/cloud/dataqna/v1alpha"
262
+ #
263
+ # # Create a client object. The client can be reused for multiple calls.
264
+ # client = Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new
265
+ #
266
+ # # Create a request. To set request fields, pass in keyword arguments.
267
+ # request = Google::Cloud::DataQnA::V1alpha::SuggestQueriesRequest.new
268
+ #
269
+ # # Call the suggest_queries method.
270
+ # result = client.suggest_queries request
271
+ #
272
+ # # The returned object is of type Google::Cloud::DataQnA::V1alpha::SuggestQueriesResponse.
273
+ # p result
274
+ #
260
275
  def suggest_queries request, options = nil
261
276
  raise ::ArgumentError, "request must be provided" if request.nil?
262
277
 
@@ -274,9 +289,11 @@ module Google
274
289
  gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
275
290
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
276
291
 
277
- header_params = {
278
- "parent" => request.parent
279
- }
292
+ header_params = {}
293
+ if request.parent
294
+ header_params["parent"] = request.parent
295
+ end
296
+
280
297
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
281
298
  metadata[:"x-goog-request-params"] ||= request_params_header
282
299
 
@@ -8,6 +8,7 @@ require 'google/api/field_behavior_pb'
8
8
  require 'google/api/resource_pb'
9
9
  require 'google/cloud/dataqna/v1alpha/annotated_string_pb'
10
10
  require 'google/api/client_pb'
11
+
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/dataqna/v1alpha/auto_suggestion_service.proto", :syntax => :proto3) do
13
14
  add_message "google.cloud.dataqna.v1alpha.SuggestQueriesRequest" do
@@ -9,6 +9,7 @@ require 'google/cloud/dataqna/v1alpha/annotated_string_pb'
9
9
  require 'google/protobuf/any_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
11
  require 'google/rpc/status_pb'
12
+
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/dataqna/v1alpha/question.proto", :syntax => :proto3) do
14
15
  add_message "google.cloud.dataqna.v1alpha.Question" do
@@ -201,6 +201,21 @@ module Google
201
201
  #
202
202
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
203
203
  #
204
+ # @example Basic example
205
+ # require "google/cloud/dataqna/v1alpha"
206
+ #
207
+ # # Create a client object. The client can be reused for multiple calls.
208
+ # client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
209
+ #
210
+ # # Create a request. To set request fields, pass in keyword arguments.
211
+ # request = Google::Cloud::DataQnA::V1alpha::GetQuestionRequest.new
212
+ #
213
+ # # Call the get_question method.
214
+ # result = client.get_question request
215
+ #
216
+ # # The returned object is of type Google::Cloud::DataQnA::V1alpha::Question.
217
+ # p result
218
+ #
204
219
  def get_question request, options = nil
205
220
  raise ::ArgumentError, "request must be provided" if request.nil?
206
221
 
@@ -218,9 +233,11 @@ module Google
218
233
  gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
219
234
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
220
235
 
221
- header_params = {
222
- "name" => request.name
223
- }
236
+ header_params = {}
237
+ if request.name
238
+ header_params["name"] = request.name
239
+ end
240
+
224
241
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
225
242
  metadata[:"x-goog-request-params"] ||= request_params_header
226
243
 
@@ -272,6 +289,21 @@ module Google
272
289
  #
273
290
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
274
291
  #
292
+ # @example Basic example
293
+ # require "google/cloud/dataqna/v1alpha"
294
+ #
295
+ # # Create a client object. The client can be reused for multiple calls.
296
+ # client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
297
+ #
298
+ # # Create a request. To set request fields, pass in keyword arguments.
299
+ # request = Google::Cloud::DataQnA::V1alpha::CreateQuestionRequest.new
300
+ #
301
+ # # Call the create_question method.
302
+ # result = client.create_question request
303
+ #
304
+ # # The returned object is of type Google::Cloud::DataQnA::V1alpha::Question.
305
+ # p result
306
+ #
275
307
  def create_question request, options = nil
276
308
  raise ::ArgumentError, "request must be provided" if request.nil?
277
309
 
@@ -289,9 +321,11 @@ module Google
289
321
  gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
290
322
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
291
323
 
292
- header_params = {
293
- "parent" => request.parent
294
- }
324
+ header_params = {}
325
+ if request.parent
326
+ header_params["parent"] = request.parent
327
+ end
328
+
295
329
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
296
330
  metadata[:"x-goog-request-params"] ||= request_params_header
297
331
 
@@ -343,6 +377,21 @@ module Google
343
377
  #
344
378
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
345
379
  #
380
+ # @example Basic example
381
+ # require "google/cloud/dataqna/v1alpha"
382
+ #
383
+ # # Create a client object. The client can be reused for multiple calls.
384
+ # client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
385
+ #
386
+ # # Create a request. To set request fields, pass in keyword arguments.
387
+ # request = Google::Cloud::DataQnA::V1alpha::ExecuteQuestionRequest.new
388
+ #
389
+ # # Call the execute_question method.
390
+ # result = client.execute_question request
391
+ #
392
+ # # The returned object is of type Google::Cloud::DataQnA::V1alpha::Question.
393
+ # p result
394
+ #
346
395
  def execute_question request, options = nil
347
396
  raise ::ArgumentError, "request must be provided" if request.nil?
348
397
 
@@ -360,9 +409,11 @@ module Google
360
409
  gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
361
410
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
362
411
 
363
- header_params = {
364
- "name" => request.name
365
- }
412
+ header_params = {}
413
+ if request.name
414
+ header_params["name"] = request.name
415
+ end
416
+
366
417
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
367
418
  metadata[:"x-goog-request-params"] ||= request_params_header
368
419
 
@@ -413,6 +464,21 @@ module Google
413
464
  #
414
465
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
415
466
  #
467
+ # @example Basic example
468
+ # require "google/cloud/dataqna/v1alpha"
469
+ #
470
+ # # Create a client object. The client can be reused for multiple calls.
471
+ # client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
472
+ #
473
+ # # Create a request. To set request fields, pass in keyword arguments.
474
+ # request = Google::Cloud::DataQnA::V1alpha::GetUserFeedbackRequest.new
475
+ #
476
+ # # Call the get_user_feedback method.
477
+ # result = client.get_user_feedback request
478
+ #
479
+ # # The returned object is of type Google::Cloud::DataQnA::V1alpha::UserFeedback.
480
+ # p result
481
+ #
416
482
  def get_user_feedback request, options = nil
417
483
  raise ::ArgumentError, "request must be provided" if request.nil?
418
484
 
@@ -430,9 +496,11 @@ module Google
430
496
  gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
431
497
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
432
498
 
433
- header_params = {
434
- "name" => request.name
435
- }
499
+ header_params = {}
500
+ if request.name
501
+ header_params["name"] = request.name
502
+ end
503
+
436
504
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
437
505
  metadata[:"x-goog-request-params"] ||= request_params_header
438
506
 
@@ -487,6 +555,21 @@ module Google
487
555
  #
488
556
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
489
557
  #
558
+ # @example Basic example
559
+ # require "google/cloud/dataqna/v1alpha"
560
+ #
561
+ # # Create a client object. The client can be reused for multiple calls.
562
+ # client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
563
+ #
564
+ # # Create a request. To set request fields, pass in keyword arguments.
565
+ # request = Google::Cloud::DataQnA::V1alpha::UpdateUserFeedbackRequest.new
566
+ #
567
+ # # Call the update_user_feedback method.
568
+ # result = client.update_user_feedback request
569
+ #
570
+ # # The returned object is of type Google::Cloud::DataQnA::V1alpha::UserFeedback.
571
+ # p result
572
+ #
490
573
  def update_user_feedback request, options = nil
491
574
  raise ::ArgumentError, "request must be provided" if request.nil?
492
575
 
@@ -504,9 +587,11 @@ module Google
504
587
  gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
505
588
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
506
589
 
507
- header_params = {
508
- "user_feedback.name" => request.user_feedback.name
509
- }
590
+ header_params = {}
591
+ if request.user_feedback&.name
592
+ header_params["user_feedback.name"] = request.user_feedback.name
593
+ end
594
+
510
595
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
511
596
  metadata[:"x-goog-request-params"] ||= request_params_header
512
597
 
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
10
10
  require 'google/cloud/dataqna/v1alpha/question_pb'
11
11
  require 'google/cloud/dataqna/v1alpha/user_feedback_pb'
12
12
  require 'google/protobuf/field_mask_pb'
13
+
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/dataqna/v1alpha/question_service.proto", :syntax => :proto3) do
15
16
  add_message "google.cloud.dataqna.v1alpha.GetQuestionRequest" do
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
+
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/cloud/dataqna/v1alpha/user_feedback.proto", :syntax => :proto3) do
10
11
  add_message "google.cloud.dataqna.v1alpha.UserFeedback" do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataQnA
23
23
  module V1alpha
24
- VERSION = "0.2.4"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -26,6 +26,8 @@ module Google
26
26
  ##
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
+ # @example
30
+ #
29
31
  # require "google/cloud/dataqna/v1alpha"
30
32
  # client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new
31
33
  #
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataqna-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.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: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2022-07-02 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.7'
19
+ version: '0.10'
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.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -211,14 +211,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
211
  requirements:
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
- version: '2.5'
214
+ version: '2.6'
215
215
  required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  requirements:
217
217
  - - ">="
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
220
  requirements: []
221
- rubygems_version: 3.2.17
221
+ rubygems_version: 3.3.14
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: API Client library for the BigQuery Data QnA V1alpha API