google-geo-type 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 202360a48a68f8c4a48de4009dc5d6b5e74238835f8b3db6cd11ea1802f801a1
4
+ data.tar.gz: 2c1538efe25a7bc9694a4d1bd1d2cdb34125fd250c5c9c8714a2d801a1dd93d8
5
+ SHA512:
6
+ metadata.gz: cbb51b0a7a89a3f7b8dfb772c60a432444ad093dcf010e4dcc48eeb22830079f50e276e6a3a9d21b47692d739878f39446380ec17ceaf30c7024dd983a93a3f1
7
+ data.tar.gz: cf3fd19a758ae359968b6b1746aa60f6405b3dc760b0ffdfbeb7cba3c1ee17bda2a954426637b5a1f79efb49eb0f26cfe9e101a0d3d904df6ffa9f92a87db36a
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ### 0.1.0 (2024-05-01)
4
+
5
+ #### Features
6
+
7
+ * Initial generation of google-geo-type ([#278](https://github.com/googleapis/common-protos-ruby/issues/278))
8
+
9
+ ## Changelog
data/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # Common Protocol Buffer Types
2
+
3
+ This gem contains common protocol buffer types used by certain client libraries.
4
+
5
+ ## Installation
6
+
7
+ This library is generally brought in as a dependency by Google API client
8
+ libraries that use it. However, you can include it directly in your
9
+ application's Gemfile if you need to use its protos directly.
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
+ module Google
18
+ module Geo
19
+ module Type
20
+ VERSION = "0.1.0".freeze
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,93 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/geo/type/viewport.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/type/latlng_pb'
8
+
9
+
10
+ descriptor_data = "\n\x1egoogle/geo/type/viewport.proto\x12\x0fgoogle.geo.type\x1a\x18google/type/latlng.proto\"O\n\x08Viewport\x12 \n\x03low\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12!\n\x04high\x18\x02 \x01(\x0b\x32\x13.google.type.LatLngBo\n\x13\x63om.google.geo.typeB\rViewportProtoP\x01Z@google.golang.org/genproto/googleapis/geo/type/viewport;viewport\xa2\x02\x04GGTPb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Google
16
+ module Geo
17
+ module Type
18
+ Viewport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.geo.type.Viewport").msgclass
19
+ end
20
+ end
21
+ end
22
+
23
+ #### Source proto file: google/geo/type/viewport.proto ####
24
+ #
25
+ # // Copyright 2019 Google LLC.
26
+ # //
27
+ # // Licensed under the Apache License, Version 2.0 (the "License");
28
+ # // you may not use this file except in compliance with the License.
29
+ # // You may obtain a copy of the License at
30
+ # //
31
+ # // http://www.apache.org/licenses/LICENSE-2.0
32
+ # //
33
+ # // Unless required by applicable law or agreed to in writing, software
34
+ # // distributed under the License is distributed on an "AS IS" BASIS,
35
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36
+ # // See the License for the specific language governing permissions and
37
+ # // limitations under the License.
38
+ # //
39
+ #
40
+ # syntax = "proto3";
41
+ #
42
+ # package google.geo.type;
43
+ #
44
+ # import "google/type/latlng.proto";
45
+ #
46
+ # option go_package = "google.golang.org/genproto/googleapis/geo/type/viewport;viewport";
47
+ # option java_multiple_files = true;
48
+ # option java_outer_classname = "ViewportProto";
49
+ # option java_package = "com.google.geo.type";
50
+ # option objc_class_prefix = "GGTP";
51
+ #
52
+ # // A latitude-longitude viewport, represented as two diagonally opposite `low`
53
+ # // and `high` points. A viewport is considered a closed region, i.e. it includes
54
+ # // its boundary. The latitude bounds must range between -90 to 90 degrees
55
+ # // inclusive, and the longitude bounds must range between -180 to 180 degrees
56
+ # // inclusive. Various cases include:
57
+ # //
58
+ # // - If `low` = `high`, the viewport consists of that single point.
59
+ # //
60
+ # // - If `low.longitude` > `high.longitude`, the longitude range is inverted
61
+ # // (the viewport crosses the 180 degree longitude line).
62
+ # //
63
+ # // - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees,
64
+ # // the viewport includes all longitudes.
65
+ # //
66
+ # // - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees,
67
+ # // the longitude range is empty.
68
+ # //
69
+ # // - If `low.latitude` > `high.latitude`, the latitude range is empty.
70
+ # //
71
+ # // Both `low` and `high` must be populated, and the represented box cannot be
72
+ # // empty (as specified by the definitions above). An empty viewport will result
73
+ # // in an error.
74
+ # //
75
+ # // For example, this viewport fully encloses New York City:
76
+ # //
77
+ # // {
78
+ # // "low": {
79
+ # // "latitude": 40.477398,
80
+ # // "longitude": -74.259087
81
+ # // },
82
+ # // "high": {
83
+ # // "latitude": 40.91618,
84
+ # // "longitude": -73.70018
85
+ # // }
86
+ # // }
87
+ # message Viewport {
88
+ # // Required. The low point of the viewport.
89
+ # google.type.LatLng low = 1;
90
+ #
91
+ # // Required. The high point of the viewport.
92
+ # google.type.LatLng high = 2;
93
+ # }
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-geo-type
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: googleapis-common-protos-types
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: google-protobuf
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.18'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.18'
41
+ description: Common protocol buffer types used by client libraries
42
+ email:
43
+ - googleapis-packages@google.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - CHANGELOG.md
49
+ - README.md
50
+ - lib/google/geo/type/version.rb
51
+ - lib/google/geo/type/viewport_pb.rb
52
+ homepage: https://github.com/googleapis/common-protos-ruby
53
+ licenses:
54
+ - Apache-2.0
55
+ metadata: {}
56
+ post_install_message:
57
+ rdoc_options: []
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '2.7'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubygems_version: 3.5.6
72
+ signing_key:
73
+ specification_version: 4
74
+ summary: Common protocol buffer types used by client libraries
75
+ test_files: []