google-cloud-talent-v4beta1 0.7.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +25 -2
  4. data/lib/google/cloud/talent/v4beta1/common_pb.rb +29 -230
  5. data/lib/google/cloud/talent/v4beta1/company_pb.rb +25 -19
  6. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +6 -4
  7. data/lib/google/cloud/talent/v4beta1/company_service/rest/client.rb +6 -4
  8. data/lib/google/cloud/talent/v4beta1/company_service/rest/service_stub.rb +5 -5
  9. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +27 -26
  10. data/lib/google/cloud/talent/v4beta1/completion/client.rb +6 -4
  11. data/lib/google/cloud/talent/v4beta1/completion/rest/client.rb +6 -4
  12. data/lib/google/cloud/talent/v4beta1/completion/rest/service_stub.rb +1 -1
  13. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +25 -30
  14. data/lib/google/cloud/talent/v4beta1/event_pb.rb +25 -33
  15. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +6 -4
  16. data/lib/google/cloud/talent/v4beta1/event_service/rest/client.rb +6 -4
  17. data/lib/google/cloud/talent/v4beta1/event_service/rest/service_stub.rb +1 -1
  18. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +25 -5
  19. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +28 -59
  20. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +24 -8
  21. data/lib/google/cloud/talent/v4beta1/job_pb.rb +26 -46
  22. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +6 -4
  23. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +5 -3
  24. data/lib/google/cloud/talent/v4beta1/job_service/rest/client.rb +6 -4
  25. data/lib/google/cloud/talent/v4beta1/job_service/rest/operations.rb +9 -7
  26. data/lib/google/cloud/talent/v4beta1/job_service/rest/service_stub.rb +10 -10
  27. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +31 -123
  28. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +24 -12
  29. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +6 -4
  30. data/lib/google/cloud/talent/v4beta1/tenant_service/rest/client.rb +6 -4
  31. data/lib/google/cloud/talent/v4beta1/tenant_service/rest/service_stub.rb +5 -5
  32. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +27 -25
  33. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  34. data/proto_docs/google/api/client.rb +67 -4
  35. data/proto_docs/google/protobuf/any.rb +7 -4
  36. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  37. metadata +4 -4
@@ -148,7 +148,7 @@ module Google
148
148
  credentials = @config.credentials
149
149
  # Use self-signed JWT if the endpoint is unchanged from default,
150
150
  # but only if the default endpoint does not have a region prefix.
151
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
151
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
152
152
  !@config.endpoint.split(".").first.include?("-")
153
153
  credentials ||= Credentials.default scope: @config.scope,
154
154
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1540,9 +1540,9 @@ module Google
1540
1540
  # * (`String`) The path to a service account key file in JSON format
1541
1541
  # * (`Hash`) A service account key as a Hash
1542
1542
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1543
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1543
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1544
1544
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1545
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1545
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1546
1546
  # * (`nil`) indicating no credentials
1547
1547
  # @return [::Object]
1548
1548
  # @!attribute [rw] scope
@@ -1575,7 +1575,9 @@ module Google
1575
1575
  class Configuration
1576
1576
  extend ::Gapic::Config
1577
1577
 
1578
- config_attr :endpoint, "jobs.googleapis.com", ::String
1578
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
1579
+
1580
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1579
1581
  config_attr :credentials, nil do |value|
1580
1582
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1581
1583
  allowed.any? { |klass| klass === value }
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "jobs.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_jobs_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_jobs_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_job_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_jobs_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_search_jobs_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_search_jobs_for_alert_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/job_service.proto
3
4
 
@@ -17,131 +18,38 @@ require 'google/protobuf/empty_pb'
17
18
  require 'google/protobuf/field_mask_pb'
18
19
  require 'google/rpc/status_pb'
19
20
 
20
- Google::Protobuf::DescriptorPool.generated_pool.build do
21
- add_file("google/cloud/talent/v4beta1/job_service.proto", :syntax => :proto3) do
22
- add_message "google.cloud.talent.v4beta1.CreateJobRequest" do
23
- optional :parent, :string, 1
24
- optional :job, :message, 2, "google.cloud.talent.v4beta1.Job"
25
- end
26
- add_message "google.cloud.talent.v4beta1.GetJobRequest" do
27
- optional :name, :string, 1
28
- end
29
- add_message "google.cloud.talent.v4beta1.UpdateJobRequest" do
30
- optional :job, :message, 1, "google.cloud.talent.v4beta1.Job"
31
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
32
- end
33
- add_message "google.cloud.talent.v4beta1.DeleteJobRequest" do
34
- optional :name, :string, 1
35
- end
36
- add_message "google.cloud.talent.v4beta1.BatchDeleteJobsRequest" do
37
- optional :parent, :string, 1
38
- optional :filter, :string, 2
39
- end
40
- add_message "google.cloud.talent.v4beta1.ListJobsRequest" do
41
- optional :parent, :string, 1
42
- optional :filter, :string, 2
43
- optional :page_token, :string, 3
44
- optional :page_size, :int32, 4
45
- optional :job_view, :enum, 5, "google.cloud.talent.v4beta1.JobView"
46
- end
47
- add_message "google.cloud.talent.v4beta1.ListJobsResponse" do
48
- repeated :jobs, :message, 1, "google.cloud.talent.v4beta1.Job"
49
- optional :next_page_token, :string, 2
50
- optional :metadata, :message, 3, "google.cloud.talent.v4beta1.ResponseMetadata"
51
- end
52
- add_message "google.cloud.talent.v4beta1.SearchJobsRequest" do
53
- optional :parent, :string, 1
54
- optional :search_mode, :enum, 2, "google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode"
55
- optional :request_metadata, :message, 3, "google.cloud.talent.v4beta1.RequestMetadata"
56
- optional :job_query, :message, 4, "google.cloud.talent.v4beta1.JobQuery"
57
- optional :enable_broadening, :bool, 5
58
- optional :require_precise_result_size, :bool, 6
59
- repeated :histogram_queries, :message, 7, "google.cloud.talent.v4beta1.HistogramQuery"
60
- optional :job_view, :enum, 8, "google.cloud.talent.v4beta1.JobView"
61
- optional :offset, :int32, 9
62
- optional :page_size, :int32, 10
63
- optional :page_token, :string, 11
64
- optional :order_by, :string, 12
65
- optional :diversification_level, :enum, 13, "google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel"
66
- optional :custom_ranking_info, :message, 14, "google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo"
67
- optional :disable_keyword_match, :bool, 16
68
- optional :keyword_match_mode, :enum, 18, "google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode"
69
- end
70
- add_message "google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo" do
71
- optional :importance_level, :enum, 1, "google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel"
72
- optional :ranking_expression, :string, 2
73
- end
74
- add_enum "google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel" do
75
- value :IMPORTANCE_LEVEL_UNSPECIFIED, 0
76
- value :NONE, 1
77
- value :LOW, 2
78
- value :MILD, 3
79
- value :MEDIUM, 4
80
- value :HIGH, 5
81
- value :EXTREME, 6
82
- end
83
- add_enum "google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode" do
84
- value :SEARCH_MODE_UNSPECIFIED, 0
85
- value :JOB_SEARCH, 1
86
- value :FEATURED_JOB_SEARCH, 2
87
- end
88
- add_enum "google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel" do
89
- value :DIVERSIFICATION_LEVEL_UNSPECIFIED, 0
90
- value :DISABLED, 1
91
- value :SIMPLE, 2
92
- end
93
- add_enum "google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode" do
94
- value :KEYWORD_MATCH_MODE_UNSPECIFIED, 0
95
- value :KEYWORD_MATCH_DISABLED, 1
96
- value :KEYWORD_MATCH_ALL, 2
97
- value :KEYWORD_MATCH_TITLE_ONLY, 3
98
- end
99
- add_message "google.cloud.talent.v4beta1.SearchJobsResponse" do
100
- repeated :matching_jobs, :message, 1, "google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob"
101
- repeated :histogram_query_results, :message, 2, "google.cloud.talent.v4beta1.HistogramQueryResult"
102
- optional :next_page_token, :string, 3
103
- repeated :location_filters, :message, 4, "google.cloud.talent.v4beta1.Location"
104
- optional :estimated_total_size, :int32, 5
105
- optional :total_size, :int32, 6
106
- optional :metadata, :message, 7, "google.cloud.talent.v4beta1.ResponseMetadata"
107
- optional :broadened_query_jobs_count, :int32, 8
108
- optional :spell_correction, :message, 9, "google.cloud.talent.v4beta1.SpellingCorrection"
109
- end
110
- add_message "google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob" do
111
- optional :job, :message, 1, "google.cloud.talent.v4beta1.Job"
112
- optional :job_summary, :string, 2
113
- optional :job_title_snippet, :string, 3
114
- optional :search_text_snippet, :string, 4
115
- optional :commute_info, :message, 5, "google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo"
116
- end
117
- add_message "google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo" do
118
- optional :job_location, :message, 1, "google.cloud.talent.v4beta1.Location"
119
- optional :travel_duration, :message, 2, "google.protobuf.Duration"
120
- end
121
- add_message "google.cloud.talent.v4beta1.BatchCreateJobsRequest" do
122
- optional :parent, :string, 1
123
- repeated :jobs, :message, 2, "google.cloud.talent.v4beta1.Job"
124
- end
125
- add_message "google.cloud.talent.v4beta1.BatchUpdateJobsRequest" do
126
- optional :parent, :string, 1
127
- repeated :jobs, :message, 2, "google.cloud.talent.v4beta1.Job"
128
- optional :update_mask, :message, 3, "google.protobuf.FieldMask"
129
- end
130
- add_message "google.cloud.talent.v4beta1.JobOperationResult" do
131
- repeated :job_results, :message, 1, "google.cloud.talent.v4beta1.JobOperationResult.JobResult"
132
- end
133
- add_message "google.cloud.talent.v4beta1.JobOperationResult.JobResult" do
134
- optional :job, :message, 1, "google.cloud.talent.v4beta1.Job"
135
- optional :status, :message, 2, "google.rpc.Status"
136
- end
137
- add_enum "google.cloud.talent.v4beta1.JobView" do
138
- value :JOB_VIEW_UNSPECIFIED, 0
139
- value :JOB_VIEW_ID_ONLY, 1
140
- value :JOB_VIEW_MINIMAL, 2
141
- value :JOB_VIEW_SMALL, 3
142
- value :JOB_VIEW_FULL, 4
21
+
22
+ descriptor_data = "\n-google/cloud/talent/v4beta1/job_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/talent/v4beta1/common.proto\x1a)google/cloud/talent/v4beta1/filters.proto\x1a+google/cloud/talent/v4beta1/histogram.proto\x1a%google/cloud/talent/v4beta1/job.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"w\n\x10\x43reateJobRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x32\n\x03job\x18\x02 \x01(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\">\n\rGetJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job\"w\n\x10UpdateJobRequest\x12\x32\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"A\n\x10\x44\x65leteJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job\"^\n\x16\x42\x61tchDeleteJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xb6\x01\n\x0fListJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x36\n\x08job_view\x18\x05 \x01(\x0e\x32$.google.cloud.talent.v4beta1.JobView\"\x9c\x01\n\x10ListJobsResponse\x12.\n\x04jobs\x18\x01 \x03(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\"\xbb\x0b\n\x11SearchJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12N\n\x0bsearch_mode\x18\x02 \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode\x12K\n\x10request_metadata\x18\x03 \x01(\x0b\x32,.google.cloud.talent.v4beta1.RequestMetadataB\x03\xe0\x41\x02\x12\x38\n\tjob_query\x18\x04 \x01(\x0b\x32%.google.cloud.talent.v4beta1.JobQuery\x12\x19\n\x11\x65nable_broadening\x18\x05 \x01(\x08\x12\'\n\x1brequire_precise_result_size\x18\x06 \x01(\x08\x42\x02\x18\x01\x12\x46\n\x11histogram_queries\x18\x07 \x03(\x0b\x32+.google.cloud.talent.v4beta1.HistogramQuery\x12\x36\n\x08job_view\x18\x08 \x01(\x0e\x32$.google.cloud.talent.v4beta1.JobView\x12\x0e\n\x06offset\x18\t \x01(\x05\x12\x11\n\tpage_size\x18\n \x01(\x05\x12\x12\n\npage_token\x18\x0b \x01(\t\x12\x10\n\x08order_by\x18\x0c \x01(\t\x12\x62\n\x15\x64iversification_level\x18\r \x01(\x0e\x32\x43.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel\x12]\n\x13\x63ustom_ranking_info\x18\x0e \x01(\x0b\x32@.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo\x12\x1d\n\x15\x64isable_keyword_match\x18\x10 \x01(\x08\x12[\n\x12keyword_match_mode\x18\x12 \x01(\x0e\x32?.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode\x1a\x9a\x02\n\x11\x43ustomRankingInfo\x12o\n\x10importance_level\x18\x01 \x01(\x0e\x32P.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevelB\x03\xe0\x41\x02\x12\x1f\n\x12ranking_expression\x18\x02 \x01(\tB\x03\xe0\x41\x02\"s\n\x0fImportanceLevel\x12 \n\x1cIMPORTANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\x08\n\x04MILD\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\x0b\n\x07\x45XTREME\x10\x06\"R\n\nSearchMode\x12\x1b\n\x17SEARCH_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nJOB_SEARCH\x10\x01\x12\x17\n\x13\x46\x45\x41TURED_JOB_SEARCH\x10\x02\"W\n\x14\x44iversificationLevel\x12%\n!DIVERSIFICATION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\n\n\x06SIMPLE\x10\x02\"\x87\x01\n\x10KeywordMatchMode\x12\"\n\x1eKEYWORD_MATCH_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16KEYWORD_MATCH_DISABLED\x10\x01\x12\x15\n\x11KEYWORD_MATCH_ALL\x10\x02\x12\x1c\n\x18KEYWORD_MATCH_TITLE_ONLY\x10\x03\"\xd7\x06\n\x12SearchJobsResponse\x12R\n\rmatching_jobs\x18\x01 \x03(\x0b\x32;.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob\x12R\n\x17histogram_query_results\x18\x02 \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.HistogramQueryResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12?\n\x10location_filters\x18\x04 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12\x1c\n\x14\x65stimated_total_size\x18\x05 \x01(\x05\x12\x12\n\ntotal_size\x18\x06 \x01(\x05\x12?\n\x08metadata\x18\x07 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x12\"\n\x1a\x62roadened_query_jobs_count\x18\x08 \x01(\x05\x12I\n\x10spell_correction\x18\t \x01(\x0b\x32/.google.cloud.talent.v4beta1.SpellingCorrection\x1a\xdc\x01\n\x0bMatchingJob\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\x13\n\x0bjob_summary\x18\x02 \x01(\t\x12\x19\n\x11job_title_snippet\x18\x03 \x01(\t\x12\x1b\n\x13search_text_snippet\x18\x04 \x01(\t\x12Q\n\x0c\x63ommute_info\x18\x05 \x01(\x0b\x32;.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo\x1a~\n\x0b\x43ommuteInfo\x12;\n\x0cjob_location\x18\x01 \x01(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12\x32\n\x0ftravel_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"~\n\x16\x42\x61tchCreateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x33\n\x04jobs\x18\x02 \x03(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\"\xaf\x01\n\x16\x42\x61tchUpdateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x33\n\x04jobs\x18\x02 \x03(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xc4\x01\n\x12JobOperationResult\x12N\n\x0bjob_results\x18\x01 \x03(\x0b\x32\x39.google.cloud.talent.v4beta1.JobOperationResult.JobResult\x1a^\n\tJobResult\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status*v\n\x07JobView\x12\x18\n\x14JOB_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10JOB_VIEW_ID_ONLY\x10\x01\x12\x14\n\x10JOB_VIEW_MINIMAL\x10\x02\x12\x12\n\x0eJOB_VIEW_SMALL\x10\x03\x12\x11\n\rJOB_VIEW_FULL\x10\x04\x32\xce\x12\n\nJobService\x12\xc9\x01\n\tCreateJob\x12-.google.cloud.talent.v4beta1.CreateJobRequest\x1a .google.cloud.talent.v4beta1.Job\"k\x82\xd3\xe4\x93\x02X\"+/v4beta1/{parent=projects/*/tenants/*}/jobs:\x01*Z&\"!/v4beta1/{parent=projects/*}/jobs:\x01*\xda\x41\nparent,job\x12\x9b\x02\n\x0f\x42\x61tchCreateJobs\x12\x33.google.cloud.talent.v4beta1.BatchCreateJobsRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\x82\xd3\xe4\x93\x02p\"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchCreate:\x01*Z2\"-/v4beta1/{parent=projects/*}/jobs:batchCreate:\x01*\xda\x41\x0bparent,jobs\xca\x41,\n\x12JobOperationResult\x12\x16\x42\x61tchOperationMetadata\x12\xb7\x01\n\x06GetJob\x12*.google.cloud.talent.v4beta1.GetJobRequest\x1a .google.cloud.talent.v4beta1.Job\"_\x82\xd3\xe4\x93\x02R\x12+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#\x12!/v4beta1/{name=projects/*/jobs/*}\xda\x41\x04name\x12\xca\x01\n\tUpdateJob\x12-.google.cloud.talent.v4beta1.UpdateJobRequest\x1a .google.cloud.talent.v4beta1.Job\"l\x82\xd3\xe4\x93\x02`2//v4beta1/{job.name=projects/*/tenants/*/jobs/*}:\x01*Z*2%/v4beta1/{job.name=projects/*/jobs/*}:\x01*\xda\x41\x03job\x12\x9b\x02\n\x0f\x42\x61tchUpdateJobs\x12\x33.google.cloud.talent.v4beta1.BatchUpdateJobsRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\x82\xd3\xe4\x93\x02p\"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchUpdate:\x01*Z2\"-/v4beta1/{parent=projects/*}/jobs:batchUpdate:\x01*\xda\x41\x0bparent,jobs\xca\x41,\n\x12JobOperationResult\x12\x16\x42\x61tchOperationMetadata\x12\xb3\x01\n\tDeleteJob\x12-.google.cloud.talent.v4beta1.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"_\x82\xd3\xe4\x93\x02R*+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#*!/v4beta1/{name=projects/*/jobs/*}\xda\x41\x04name\x12\xe4\x01\n\x0f\x42\x61tchDeleteJobs\x12\x33.google.cloud.talent.v4beta1.BatchDeleteJobsRequest\x1a\x16.google.protobuf.Empty\"\x83\x01\x82\xd3\xe4\x93\x02m\"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchDelete:\x01*Z/\"-/v4beta1/{parent=projects/*}/jobs:batchDelete\xda\x41\rparent,filter\x12\xd1\x01\n\x08ListJobs\x12,.google.cloud.talent.v4beta1.ListJobsRequest\x1a-.google.cloud.talent.v4beta1.ListJobsResponse\"h\x82\xd3\xe4\x93\x02R\x12+/v4beta1/{parent=projects/*/tenants/*}/jobsZ#\x12!/v4beta1/{parent=projects/*}/jobs\xda\x41\rparent,filter\x12\xdb\x01\n\nSearchJobs\x12..google.cloud.talent.v4beta1.SearchJobsRequest\x1a/.google.cloud.talent.v4beta1.SearchJobsResponse\"l\x82\xd3\xe4\x93\x02\x66\"2/v4beta1/{parent=projects/*/tenants/*}/jobs:search:\x01*Z-\"(/v4beta1/{parent=projects/*}/jobs:search:\x01*\x12\xf3\x01\n\x12SearchJobsForAlert\x12..google.cloud.talent.v4beta1.SearchJobsRequest\x1a/.google.cloud.talent.v4beta1.SearchJobsResponse\"|\x82\xd3\xe4\x93\x02v\":/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert:\x01*Z5\"0/v4beta1/{parent=projects/*}/jobs:searchForAlert:\x01*\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBs\n\x1f\x63om.google.cloud.talent.v4beta1B\x0fJobServiceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
23
+
24
+ pool = Google::Protobuf::DescriptorPool.generated_pool
25
+
26
+ begin
27
+ pool.add_serialized_file(descriptor_data)
28
+ rescue TypeError => e
29
+ # Compatibility code: will be removed in the next major version.
30
+ require 'google/protobuf/descriptor_pb'
31
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
32
+ parsed.clear_dependency
33
+ serialized = parsed.class.encode(parsed)
34
+ file = pool.add_serialized_file(serialized)
35
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
36
+ imports = [
37
+ ["google.cloud.talent.v4beta1.Job", "google/cloud/talent/v4beta1/job.proto"],
38
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
39
+ ["google.cloud.talent.v4beta1.ResponseMetadata", "google/cloud/talent/v4beta1/common.proto"],
40
+ ["google.cloud.talent.v4beta1.JobQuery", "google/cloud/talent/v4beta1/filters.proto"],
41
+ ["google.cloud.talent.v4beta1.HistogramQuery", "google/cloud/talent/v4beta1/histogram.proto"],
42
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
43
+ ["google.rpc.Status", "google/rpc/status.proto"],
44
+ ]
45
+ imports.each do |type_name, expected_filename|
46
+ import_file = pool.lookup(type_name).file_descriptor
47
+ if import_file.name != expected_filename
48
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
143
49
  end
144
50
  end
51
+ warn "Each proto file must use a consistent fully-qualified name."
52
+ warn "This will become an error in the next major version."
145
53
  end
146
54
 
147
55
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/tenant.proto
3
4
 
@@ -6,20 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/talent/v4beta1/tenant.proto", :syntax => :proto3) do
11
- add_message "google.cloud.talent.v4beta1.Tenant" do
12
- optional :name, :string, 1
13
- optional :external_id, :string, 2
14
- optional :usage_type, :enum, 3, "google.cloud.talent.v4beta1.Tenant.DataUsageType"
15
- repeated :keyword_searchable_profile_custom_attributes, :string, 4
16
- end
17
- add_enum "google.cloud.talent.v4beta1.Tenant.DataUsageType" do
18
- value :DATA_USAGE_TYPE_UNSPECIFIED, 0
19
- value :AGGREGATED, 1
20
- value :ISOLATED, 2
10
+
11
+ descriptor_data = "\n(google/cloud/talent/v4beta1/tenant.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc3\x02\n\x06Tenant\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x65xternal_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nusage_type\x18\x03 \x01(\x0e\x32\x31.google.cloud.talent.v4beta1.Tenant.DataUsageType\x12\x34\n,keyword_searchable_profile_custom_attributes\x18\x04 \x03(\t\"N\n\rDataUsageType\x12\x1f\n\x1b\x44\x41TA_USAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nAGGREGATED\x10\x01\x12\x0c\n\x08ISOLATED\x10\x02:D\xea\x41\x41\n\x1ajobs.googleapis.com/Tenant\x12#projects/{project}/tenants/{tenant}Bw\n\x1f\x63om.google.cloud.talent.v4beta1B\x13TenantResourceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
21
31
  end
22
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
23
35
  end
24
36
 
25
37
  module Google
@@ -142,7 +142,7 @@ module Google
142
142
  credentials = @config.credentials
143
143
  # Use self-signed JWT if the endpoint is unchanged from default,
144
144
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
146
  !@config.endpoint.split(".").first.include?("-")
147
147
  credentials ||= Credentials.default scope: @config.scope,
148
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -663,9 +663,9 @@ module Google
663
663
  # * (`String`) The path to a service account key file in JSON format
664
664
  # * (`Hash`) A service account key as a Hash
665
665
  # * (`Google::Auth::Credentials`) A googleauth credentials object
666
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
666
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
667
667
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
668
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
668
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
669
669
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
670
670
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
671
671
  # * (`nil`) indicating no credentials
@@ -707,7 +707,9 @@ module Google
707
707
  class Configuration
708
708
  extend ::Gapic::Config
709
709
 
710
- config_attr :endpoint, "jobs.googleapis.com", ::String
710
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
711
+
712
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
711
713
  config_attr :credentials, nil do |value|
712
714
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
713
715
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -138,7 +138,7 @@ module Google
138
138
  credentials = @config.credentials
139
139
  # Use self-signed JWT if the endpoint is unchanged from default,
140
140
  # but only if the default endpoint does not have a region prefix.
141
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
141
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
142
  !@config.endpoint.split(".").first.include?("-")
143
143
  credentials ||= Credentials.default scope: @config.scope,
144
144
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -535,9 +535,9 @@ module Google
535
535
  # * (`String`) The path to a service account key file in JSON format
536
536
  # * (`Hash`) A service account key as a Hash
537
537
  # * (`Google::Auth::Credentials`) A googleauth credentials object
538
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
538
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
539
539
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
540
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
540
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
541
541
  # * (`nil`) indicating no credentials
542
542
  # @return [::Object]
543
543
  # @!attribute [rw] scope
@@ -570,7 +570,9 @@ module Google
570
570
  class Configuration
571
571
  extend ::Gapic::Config
572
572
 
573
- config_attr :endpoint, "jobs.googleapis.com", ::String
573
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
574
+
575
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
574
576
  config_attr :credentials, nil do |value|
575
577
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
576
578
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_tenant_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_tenant_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_update_tenant_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_tenant_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_list_tenants_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/tenant_service.proto
3
4
 
@@ -12,33 +13,34 @@ require 'google/cloud/talent/v4beta1/tenant_pb'
12
13
  require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/talent/v4beta1/tenant_service.proto", :syntax => :proto3) do
17
- add_message "google.cloud.talent.v4beta1.CreateTenantRequest" do
18
- optional :parent, :string, 1
19
- optional :tenant, :message, 2, "google.cloud.talent.v4beta1.Tenant"
20
- end
21
- add_message "google.cloud.talent.v4beta1.GetTenantRequest" do
22
- optional :name, :string, 1
23
- end
24
- add_message "google.cloud.talent.v4beta1.UpdateTenantRequest" do
25
- optional :tenant, :message, 1, "google.cloud.talent.v4beta1.Tenant"
26
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
27
- end
28
- add_message "google.cloud.talent.v4beta1.DeleteTenantRequest" do
29
- optional :name, :string, 1
30
- end
31
- add_message "google.cloud.talent.v4beta1.ListTenantsRequest" do
32
- optional :parent, :string, 1
33
- optional :page_token, :string, 2
34
- optional :page_size, :int32, 3
35
- end
36
- add_message "google.cloud.talent.v4beta1.ListTenantsResponse" do
37
- repeated :tenants, :message, 1, "google.cloud.talent.v4beta1.Tenant"
38
- optional :next_page_token, :string, 2
39
- optional :metadata, :message, 3, "google.cloud.talent.v4beta1.ResponseMetadata"
16
+
17
+ descriptor_data = "\n0google/cloud/talent/v4beta1/tenant_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/talent/v4beta1/common.proto\x1a(google/cloud/talent/v4beta1/tenant.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x94\x01\n\x13\x43reateTenantRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x38\n\x06tenant\x18\x02 \x01(\x0b\x32#.google.cloud.talent.v4beta1.TenantB\x03\xe0\x41\x02\"D\n\x10GetTenantRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\"\x80\x01\n\x13UpdateTenantRequest\x12\x38\n\x06tenant\x18\x01 \x01(\x0b\x32#.google.cloud.talent.v4beta1.TenantB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"G\n\x13\x44\x65leteTenantRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\"\x80\x01\n\x12ListTenantsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\xa5\x01\n\x13ListTenantsResponse\x12\x34\n\x07tenants\x18\x01 \x03(\x0b\x32#.google.cloud.talent.v4beta1.Tenant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata2\xa0\x07\n\rTenantService\x12\xa6\x01\n\x0c\x43reateTenant\x12\x30.google.cloud.talent.v4beta1.CreateTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant\"?\x82\xd3\xe4\x93\x02)\"$/v4beta1/{parent=projects/*}/tenants:\x01*\xda\x41\rparent,tenant\x12\x94\x01\n\tGetTenant\x12-.google.cloud.talent.v4beta1.GetTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant\"3\x82\xd3\xe4\x93\x02&\x12$/v4beta1/{name=projects/*/tenants/*}\xda\x41\x04name\x12\xa6\x01\n\x0cUpdateTenant\x12\x30.google.cloud.talent.v4beta1.UpdateTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant\"?\x82\xd3\xe4\x93\x02\x30\x32+/v4beta1/{tenant.name=projects/*/tenants/*}:\x01*\xda\x41\x06tenant\x12\x8d\x01\n\x0c\x44\x65leteTenant\x12\x30.google.cloud.talent.v4beta1.DeleteTenantRequest\x1a\x16.google.protobuf.Empty\"3\x82\xd3\xe4\x93\x02&*$/v4beta1/{name=projects/*/tenants/*}\xda\x41\x04name\x12\xa7\x01\n\x0bListTenants\x12/.google.cloud.talent.v4beta1.ListTenantsRequest\x1a\x30.google.cloud.talent.v4beta1.ListTenantsResponse\"5\x82\xd3\xe4\x93\x02&\x12$/v4beta1/{parent=projects/*}/tenants\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBv\n\x1f\x63om.google.cloud.talent.v4beta1B\x12TenantServiceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.cloud.talent.v4beta1.Tenant", "google/cloud/talent/v4beta1/tenant.proto"],
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ["google.cloud.talent.v4beta1.ResponseMetadata", "google/cloud/talent/v4beta1/common.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
40
  end
41
41
  end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
42
44
  end
43
45
 
44
46
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4beta1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.1"
25
25
  end
26
26
  end
27
27
  end