googleapis-common-protos-types 1.0.0 → 1.0.4

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
- SHA1:
3
- metadata.gz: 14f92fc36872fcfffa8a89121352530bc6efd272
4
- data.tar.gz: 545bb1a02b55635f531d3daeb298e259c2814a17
2
+ SHA256:
3
+ metadata.gz: 28d7f3a58df6bfa15565833493133ae25383506d10e56683938290fccf291975
4
+ data.tar.gz: 1d2409f45e9a9eaa1a6fabeb417f11f40a3c69a4df1980bcd2b53471f5d9bde0
5
5
  SHA512:
6
- metadata.gz: c4e1751fcbcad3f1787c28d0dd49015407612665286a45c3423360013b22856529e7ded5c420eab72cac526011b1d7207f706f96c5683da2acd67cea8a4a0363
7
- data.tar.gz: 2f9f4a11e2f56ff08efe8fa450a25c1a4f05f5399efec77ef4ed1b3c40436e1d8178c1c4293da3ac9bd2daec6a3c8eeaffdfe5b264a9846968edc74de63be5f0
6
+ metadata.gz: d0a3344b1c7158b6015b0b154db0bf25bc933cc85f19be83e9d02141abbbedcd05ab10b2317c588d5a3f5ef7edbb48837070f0f2efdeec2c481dd7689b26ffdf
7
+ data.tar.gz: 04046740f45acb772383bd60c02fa8fbbddc749e87f53dc25e39166cc2ddad85db2a38645085f50e3c23125c3a605f2fa51832034283baa05a951757d6c0dd8e
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ Gemfile.lock
2
+ .DS_STORE
3
+ /.bundle/
4
+ /.yardoc
5
+ /_yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /pkg/
9
+ /spec/reports/
10
+ /tmp/
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Release History
2
+
3
+ ### 1.0.4 / 2019-04-03
4
+
5
+ * Add WaitOperation RPC to operations_pb.rb and update documentation.
6
+ * Add new common types for:
7
+ + google/api/resource.proto
8
+ + google/type/calendar_period.proto
9
+ + google/type/expr.proto
10
+ + google/type/fraction.proto
11
+ + google/type/quaternion.proto
12
+
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in api-common-protos-ruby.gemspec
6
+ gemspec
data/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # Common Types
2
+
3
+ This gem contains common message types for Google APIs.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'googleapis-common-protos-types'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install googleapis-common-protos-types
data/Rakefile ADDED
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2018 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'bundler/gem_tasks'
18
+
19
+ desc "Compile the necessary protobuf files."
20
+ task :compile_protos do
21
+ Rake::Task[:clean_protos].invoke
22
+ FileUtils.mkdir 'lib'
23
+
24
+ protos = [
25
+ "../googleapis/google/api/*.proto",
26
+ "../googleapis/google/logging/type/*.proto",
27
+ "../googleapis/google/longrunning/*.proto",
28
+ "../googleapis/google/rpc/*.proto",
29
+ "../googleapis/google/type/*.proto",
30
+ ]
31
+
32
+ command = []
33
+ command << "grpc_tools_ruby_protoc"
34
+ command << "--ruby_out=lib"
35
+ command << "-I ../googleapis"
36
+ command += protos
37
+ full_command = command.join " "
38
+
39
+ puts full_command
40
+ system full_command
41
+ end
42
+
43
+ desc "Remove the compiled protos."
44
+ task :clean_protos do
45
+ FileUtils.rm_rf "lib"
46
+ end
47
+
48
+ desc "Run the CI build"
49
+ task :ci do
50
+ puts "\nCompiling Protos\n"
51
+ Rake::Task[:compile_protos].invoke
52
+ end
53
+
54
+ Rake::Task[:build].enhance [:compile_protos]
55
+ Rake::Task[:clean].enhance [:clean_protos]
56
+
57
+ task default: :ci
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2018 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ Gem::Specification.new do |spec|
18
+ spec.name = "googleapis-common-protos-types"
19
+ spec.version = "1.0.4"
20
+ spec.authors = ["Google Inc"]
21
+ spec.email = ["googleapis-packages@google.com"]
22
+ spec.licenses = ["Apache-2.0"]
23
+
24
+ spec.description = "Common protocol buffer types used by Google APIs"
25
+ spec.summary = "Common protobuf types used in Google APIs"
26
+ spec.homepage = "https://github.com/googleapis/googleapis"
27
+
28
+ # Specify which files should be added to the gem when it is released. The `git
29
+ # ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir File.expand_path(__dir__) do
31
+ `git ls-files -z`.split("\x0").reject do |f|
32
+ f.match %r{^(test|spec|features)/}
33
+ end
34
+ end
35
+ spec.files += Dir.glob "lib/**/*_pb.rb"
36
+ spec.require_paths = ["lib"]
37
+
38
+ spec.add_dependency "google-protobuf", "~> 3.0"
39
+
40
+ spec.add_development_dependency "bundler", "~> 1.15"
41
+ spec.add_development_dependency "grpc-tools", "~> 1.18"
42
+ spec.add_development_dependency "rake", "~> 10.0"
43
+ end
@@ -11,6 +11,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  optional :selector, :string, 1
12
12
  optional :address, :string, 2
13
13
  optional :deadline, :double, 3
14
+ optional :min_deadline, :double, 4
15
+ optional :operation_deadline, :double, 5
16
+ optional :path_translation, :enum, 6, "google.api.BackendRule.PathTranslation"
17
+ oneof :authentication do
18
+ optional :jwt_audience, :string, 7
19
+ end
20
+ end
21
+ add_enum "google.api.BackendRule.PathTranslation" do
22
+ value :PATH_TRANSLATION_UNSPECIFIED, 0
23
+ value :CONSTANT_ADDRESS, 1
24
+ value :APPEND_PATH_TO_ADDRESS, 2
14
25
  end
15
26
  end
16
27
 
@@ -18,5 +29,6 @@ module Google
18
29
  module Api
19
30
  Backend = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Backend").msgclass
20
31
  BackendRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule").msgclass
32
+ BackendRule::PathTranslation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule.PathTranslation").enummodule
21
33
  end
22
34
  end
@@ -7,18 +7,17 @@ require 'google/api/annotations_pb'
7
7
  require 'google/api/metric_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_message "google.api.Billing" do
10
- repeated :metrics, :string, 1
11
- repeated :rules, :message, 5, "google.api.BillingStatusRule"
10
+ repeated :consumer_destinations, :message, 8, "google.api.Billing.BillingDestination"
12
11
  end
13
- add_message "google.api.BillingStatusRule" do
14
- optional :selector, :string, 1
15
- repeated :allowed_statuses, :string, 2
12
+ add_message "google.api.Billing.BillingDestination" do
13
+ optional :monitored_resource, :string, 1
14
+ repeated :metrics, :string, 2
16
15
  end
17
16
  end
18
17
 
19
18
  module Google
20
19
  module Api
21
20
  Billing = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Billing").msgclass
22
- BillingStatusRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BillingStatusRule").msgclass
21
+ Billing::BillingDestination = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Billing.BillingDestination").msgclass
23
22
  end
24
23
  end
@@ -0,0 +1,12 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/client.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ end
8
+
9
+ module Google
10
+ module Api
11
+ end
12
+ end
@@ -11,6 +11,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  optional :selector, :string, 1
12
12
  repeated :requested, :string, 2
13
13
  repeated :provided, :string, 3
14
+ repeated :allowed_request_extensions, :string, 4
15
+ repeated :allowed_response_extensions, :string, 5
14
16
  end
15
17
  end
16
18
 
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/protobuf/any_pb'
8
7
  require 'google/protobuf/timestamp_pb'
9
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -14,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
14
13
  optional :range, :message, 4, "google.api.Distribution.Range"
15
14
  optional :bucket_options, :message, 6, "google.api.Distribution.BucketOptions"
16
15
  repeated :bucket_counts, :int64, 7
16
+ repeated :exemplars, :message, 10, "google.api.Distribution.Exemplar"
17
17
  end
18
18
  add_message "google.api.Distribution.Range" do
19
19
  optional :min, :double, 1
@@ -39,6 +39,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
39
39
  add_message "google.api.Distribution.BucketOptions.Explicit" do
40
40
  repeated :bounds, :double, 1
41
41
  end
42
+ add_message "google.api.Distribution.Exemplar" do
43
+ optional :value, :double, 1
44
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp"
45
+ repeated :attachments, :message, 3, "google.protobuf.Any"
46
+ end
42
47
  end
43
48
 
44
49
  module Google
@@ -49,5 +54,6 @@ module Google
49
54
  Distribution::BucketOptions::Linear = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Linear").msgclass
50
55
  Distribution::BucketOptions::Exponential = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Exponential").msgclass
51
56
  Distribution::BucketOptions::Explicit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Explicit").msgclass
57
+ Distribution::Exemplar = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.Exemplar").msgclass
52
58
  end
53
59
  end
@@ -8,7 +8,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_message "google.api.Endpoint" do
9
9
  optional :name, :string, 1
10
10
  repeated :aliases, :string, 2
11
- repeated :apis, :string, 3
12
11
  repeated :features, :string, 4
13
12
  optional :target, :string, 101
14
13
  optional :allow_cors, :bool, 5
@@ -0,0 +1,21 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/field_behavior.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_enum "google.api.FieldBehavior" do
8
+ value :FIELD_BEHAVIOR_UNSPECIFIED, 0
9
+ value :OPTIONAL, 1
10
+ value :REQUIRED, 2
11
+ value :OUTPUT_ONLY, 3
12
+ value :INPUT_ONLY, 4
13
+ value :IMMUTABLE, 5
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Api
19
+ FieldBehavior = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FieldBehavior").enummodule
20
+ end
21
+ end
@@ -6,10 +6,12 @@ require 'google/protobuf'
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
7
  add_message "google.api.Http" do
8
8
  repeated :rules, :message, 1, "google.api.HttpRule"
9
+ optional :fully_decode_reserved_expansion, :bool, 2
9
10
  end
10
11
  add_message "google.api.HttpRule" do
11
12
  optional :selector, :string, 1
12
13
  optional :body, :string, 7
14
+ optional :response_body, :string, 12
13
15
  repeated :additional_bindings, :message, 11, "google.api.HttpRule"
14
16
  oneof :pattern do
15
17
  optional :get, :string, 2
@@ -3,10 +3,12 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/protobuf/any_pb'
6
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
8
  add_message "google.api.HttpBody" do
8
9
  optional :content_type, :string, 1
9
10
  optional :data, :bytes, 2
11
+ repeated :extensions, :message, 3, "google.protobuf.Any"
10
12
  end
11
13
  end
12
14
 
@@ -0,0 +1,21 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/launch_stage.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_enum "google.api.LaunchStage" do
8
+ value :LAUNCH_STAGE_UNSPECIFIED, 0
9
+ value :EARLY_ACCESS, 1
10
+ value :ALPHA, 2
11
+ value :BETA, 3
12
+ value :GA, 4
13
+ value :DEPRECATED, 5
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Api
19
+ LaunchStage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LaunchStage").enummodule
20
+ end
21
+ end
@@ -4,6 +4,8 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/label_pb'
7
+ require 'google/api/launch_stage_pb'
8
+ require 'google/protobuf/duration_pb'
7
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
10
  add_message "google.api.MetricDescriptor" do
9
11
  optional :name, :string, 1
@@ -14,6 +16,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
14
16
  optional :unit, :string, 5
15
17
  optional :description, :string, 6
16
18
  optional :display_name, :string, 7
19
+ optional :metadata, :message, 10, "google.api.MetricDescriptor.MetricDescriptorMetadata"
20
+ end
21
+ add_message "google.api.MetricDescriptor.MetricDescriptorMetadata" do
22
+ optional :launch_stage, :enum, 1, "google.api.LaunchStage"
23
+ optional :sample_period, :message, 2, "google.protobuf.Duration"
24
+ optional :ingest_delay, :message, 3, "google.protobuf.Duration"
17
25
  end
18
26
  add_enum "google.api.MetricDescriptor.MetricKind" do
19
27
  value :METRIC_KIND_UNSPECIFIED, 0
@@ -39,6 +47,7 @@ end
39
47
  module Google
40
48
  module Api
41
49
  MetricDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor").msgclass
50
+ MetricDescriptor::MetricDescriptorMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricDescriptorMetadata").msgclass
42
51
  MetricDescriptor::MetricKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricKind").enummodule
43
52
  MetricDescriptor::ValueType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.ValueType").enummodule
44
53
  Metric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Metric").msgclass
@@ -4,6 +4,7 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/label_pb'
7
+ require 'google/protobuf/struct_pb'
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_message "google.api.MonitoredResourceDescriptor" do
9
10
  optional :name, :string, 5
@@ -16,11 +17,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
17
  optional :type, :string, 1
17
18
  map :labels, :string, :string, 2
18
19
  end
20
+ add_message "google.api.MonitoredResourceMetadata" do
21
+ optional :system_labels, :message, 1, "google.protobuf.Struct"
22
+ map :user_labels, :string, :string, 2
23
+ end
19
24
  end
20
25
 
21
26
  module Google
22
27
  module Api
23
28
  MonitoredResourceDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResourceDescriptor").msgclass
24
29
  MonitoredResource = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResource").msgclass
30
+ MonitoredResourceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResourceMetadata").msgclass
25
31
  end
26
32
  end
@@ -0,0 +1,17 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/resource.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.api.Resource" do
8
+ optional :pattern, :string, 1
9
+ optional :symbol, :string, 2
10
+ end
11
+ end
12
+
13
+ module Google
14
+ module Api
15
+ Resource = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Resource").msgclass
16
+ end
17
+ end
@@ -6,6 +6,7 @@ require 'google/protobuf'
6
6
  require 'google/api/annotations_pb'
7
7
  require 'google/api/auth_pb'
8
8
  require 'google/api/backend_pb'
9
+ require 'google/api/billing_pb'
9
10
  require 'google/api/context_pb'
10
11
  require 'google/api/control_pb'
11
12
  require 'google/api/documentation_pb'
@@ -48,6 +49,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
48
49
  repeated :logs, :message, 23, "google.api.LogDescriptor"
49
50
  repeated :metrics, :message, 24, "google.api.MetricDescriptor"
50
51
  repeated :monitored_resources, :message, 25, "google.api.MonitoredResourceDescriptor"
52
+ optional :billing, :message, 26, "google.api.Billing"
51
53
  optional :logging, :message, 27, "google.api.Logging"
52
54
  optional :monitoring, :message, 28, "google.api.Monitoring"
53
55
  optional :system_parameters, :message, 29, "google.api.SystemParameters"
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/annotations_pb'
7
7
  require 'google/protobuf/any_pb'
8
+ require 'google/protobuf/duration_pb'
8
9
  require 'google/protobuf/empty_pb'
9
10
  require 'google/rpc/status_pb'
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -36,6 +37,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
36
37
  add_message "google.longrunning.DeleteOperationRequest" do
37
38
  optional :name, :string, 1
38
39
  end
40
+ add_message "google.longrunning.WaitOperationRequest" do
41
+ optional :name, :string, 1
42
+ optional :timeout, :message, 2, "google.protobuf.Duration"
43
+ end
44
+ add_message "google.longrunning.OperationInfo" do
45
+ optional :response_type, :string, 1
46
+ optional :metadata_type, :string, 2
47
+ end
39
48
  end
40
49
 
41
50
  module Google
@@ -46,5 +55,7 @@ module Google
46
55
  ListOperationsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsResponse").msgclass
47
56
  CancelOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.CancelOperationRequest").msgclass
48
57
  DeleteOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.DeleteOperationRequest").msgclass
58
+ WaitOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.WaitOperationRequest").msgclass
59
+ OperationInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.OperationInfo").msgclass
49
60
  end
50
61
  end
@@ -0,0 +1,23 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/type/calendar_period.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_enum "google.type.CalendarPeriod" do
8
+ value :CALENDAR_PERIOD_UNSPECIFIED, 0
9
+ value :DAY, 1
10
+ value :WEEK, 2
11
+ value :FORTNIGHT, 3
12
+ value :MONTH, 4
13
+ value :QUARTER, 5
14
+ value :HALF, 6
15
+ value :YEAR, 7
16
+ end
17
+ end
18
+
19
+ module Google
20
+ module Type
21
+ CalendarPeriod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.CalendarPeriod").enummodule
22
+ end
23
+ end
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/type/expr.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.type.Expr" do
8
+ optional :expression, :string, 1
9
+ optional :title, :string, 2
10
+ optional :description, :string, 3
11
+ optional :location, :string, 4
12
+ end
13
+ end
14
+
15
+ module Google
16
+ module Type
17
+ Expr = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Expr").msgclass
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/type/fraction.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.type.Fraction" do
8
+ optional :numerator, :int64, 1
9
+ optional :denominator, :int64, 2
10
+ end
11
+ end
12
+
13
+ module Google
14
+ module Type
15
+ Fraction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Fraction").msgclass
16
+ end
17
+ end
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/type/quaternion.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.type.Quaternion" do
8
+ optional :x, :double, 1
9
+ optional :y, :double, 2
10
+ optional :z, :double, 3
11
+ optional :w, :double, 4
12
+ end
13
+ end
14
+
15
+ module Google
16
+ module Type
17
+ Quaternion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Quaternion").msgclass
18
+ end
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googleapis-common-protos-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-11 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -30,38 +30,60 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.9'
33
+ version: '1.15'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.9'
40
+ version: '1.15'
41
+ - !ruby/object:Gem::Dependency
42
+ name: grpc-tools
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.18'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.18'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '10.4'
61
+ version: '10.0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '10.4'
68
+ version: '10.0'
55
69
  description: Common protocol buffer types used by Google APIs
56
- email: googleapis-packages@google.com
70
+ email:
71
+ - googleapis-packages@google.com
57
72
  executables: []
58
73
  extensions: []
59
74
  extra_rdoc_files: []
60
75
  files:
76
+ - ".gitignore"
77
+ - CHANGELOG.md
78
+ - Gemfile
79
+ - README.md
80
+ - Rakefile
81
+ - googleapis-common-protos-types.gemspec
61
82
  - lib/google/api/annotations_pb.rb
62
83
  - lib/google/api/auth_pb.rb
63
84
  - lib/google/api/backend_pb.rb
64
85
  - lib/google/api/billing_pb.rb
86
+ - lib/google/api/client_pb.rb
65
87
  - lib/google/api/config_change_pb.rb
66
88
  - lib/google/api/consumer_pb.rb
67
89
  - lib/google/api/context_pb.rb
@@ -69,15 +91,18 @@ files:
69
91
  - lib/google/api/distribution_pb.rb
70
92
  - lib/google/api/documentation_pb.rb
71
93
  - lib/google/api/endpoint_pb.rb
94
+ - lib/google/api/field_behavior_pb.rb
72
95
  - lib/google/api/http_pb.rb
73
96
  - lib/google/api/httpbody_pb.rb
74
97
  - lib/google/api/label_pb.rb
98
+ - lib/google/api/launch_stage_pb.rb
75
99
  - lib/google/api/log_pb.rb
76
100
  - lib/google/api/logging_pb.rb
77
101
  - lib/google/api/metric_pb.rb
78
102
  - lib/google/api/monitored_resource_pb.rb
79
103
  - lib/google/api/monitoring_pb.rb
80
104
  - lib/google/api/quota_pb.rb
105
+ - lib/google/api/resource_pb.rb
81
106
  - lib/google/api/service_pb.rb
82
107
  - lib/google/api/source_info_pb.rb
83
108
  - lib/google/api/system_parameter_pb.rb
@@ -85,16 +110,19 @@ files:
85
110
  - lib/google/logging/type/http_request_pb.rb
86
111
  - lib/google/logging/type/log_severity_pb.rb
87
112
  - lib/google/longrunning/operations_pb.rb
88
- - lib/google/longrunning/operations_services_pb.rb
89
113
  - lib/google/rpc/code_pb.rb
90
114
  - lib/google/rpc/error_details_pb.rb
91
115
  - lib/google/rpc/status_pb.rb
116
+ - lib/google/type/calendar_period_pb.rb
92
117
  - lib/google/type/color_pb.rb
93
118
  - lib/google/type/date_pb.rb
94
119
  - lib/google/type/dayofweek_pb.rb
120
+ - lib/google/type/expr_pb.rb
121
+ - lib/google/type/fraction_pb.rb
95
122
  - lib/google/type/latlng_pb.rb
96
123
  - lib/google/type/money_pb.rb
97
124
  - lib/google/type/postal_address_pb.rb
125
+ - lib/google/type/quaternion_pb.rb
98
126
  - lib/google/type/timeofday_pb.rb
99
127
  homepage: https://github.com/googleapis/googleapis
100
128
  licenses:
@@ -108,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
136
  requirements:
109
137
  - - ">="
110
138
  - !ruby/object:Gem::Version
111
- version: 2.0.0
139
+ version: '0'
112
140
  required_rubygems_version: !ruby/object:Gem::Requirement
113
141
  requirements:
114
142
  - - ">="
@@ -116,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
144
  version: '0'
117
145
  requirements: []
118
146
  rubyforge_project:
119
- rubygems_version: 2.4.8
147
+ rubygems_version: 2.7.8
120
148
  signing_key:
121
149
  specification_version: 4
122
150
  summary: Common protobuf types used in Google APIs
@@ -1,73 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/longrunning/operations.proto for package 'google.longrunning'
3
- # Original file comments:
4
- # Copyright 2016 Google Inc.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- require 'grpc'
20
- require 'google/longrunning/operations_pb'
21
-
22
- module Google
23
- module Longrunning
24
- module Operations
25
- # Manages long-running operations with an API service.
26
- #
27
- # When an API method normally takes long time to complete, it can be designed
28
- # to return [Operation][google.longrunning.Operation] to the client, and the client can use this
29
- # interface to receive the real response asynchronously by polling the
30
- # operation resource, or pass the operation resource to another API (such as
31
- # Google Cloud Pub/Sub API) to receive the response. Any API service that
32
- # returns long-running operations should implement the `Operations` interface
33
- # so developers can have a consistent client experience.
34
- class Service
35
-
36
- include GRPC::GenericService
37
-
38
- self.marshal_class_method = :encode
39
- self.unmarshal_class_method = :decode
40
- self.service_name = 'google.longrunning.Operations'
41
-
42
- # Lists operations that match the specified filter in the request. If the
43
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
44
- #
45
- # NOTE: the `name` binding below allows API services to override the binding
46
- # to use different resource name schemes, such as `users/*/operations`.
47
- rpc :ListOperations, ListOperationsRequest, ListOperationsResponse
48
- # Gets the latest state of a long-running operation. Clients can use this
49
- # method to poll the operation result at intervals as recommended by the API
50
- # service.
51
- rpc :GetOperation, GetOperationRequest, Operation
52
- # Deletes a long-running operation. This method indicates that the client is
53
- # no longer interested in the operation result. It does not cancel the
54
- # operation. If the server doesn't support this method, it returns
55
- # `google.rpc.Code.UNIMPLEMENTED`.
56
- rpc :DeleteOperation, DeleteOperationRequest, Google::Protobuf::Empty
57
- # Starts asynchronous cancellation on a long-running operation. The server
58
- # makes a best effort to cancel the operation, but success is not
59
- # guaranteed. If the server doesn't support this method, it returns
60
- # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
61
- # [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
62
- # other methods to check whether the cancellation succeeded or whether the
63
- # operation completed despite cancellation. On successful cancellation,
64
- # the operation is not deleted; instead, it becomes an operation with
65
- # an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
66
- # corresponding to `Code.CANCELLED`.
67
- rpc :CancelOperation, CancelOperationRequest, Google::Protobuf::Empty
68
- end
69
-
70
- Stub = Service.rpc_stub_class
71
- end
72
- end
73
- end