google-cloud-talent 0.1.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 +7 -0
- data/.yardopts +9 -0
- data/LICENSE +201 -0
- data/README.md +69 -0
- data/lib/google/cloud/talent.rb +456 -0
- data/lib/google/cloud/talent/v4beta1.rb +484 -0
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +21 -0
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +264 -0
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +39 -0
- data/lib/google/cloud/talent/v4beta1/company_service_client.rb +479 -0
- data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +51 -0
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +53 -0
- data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +56 -0
- data/lib/google/cloud/talent/v4beta1/completion_client.rb +303 -0
- data/lib/google/cloud/talent/v4beta1/completion_client_config.json +31 -0
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +53 -0
- data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +48 -0
- data/lib/google/cloud/talent/v4beta1/credentials.rb +42 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +890 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +125 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +130 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +153 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +252 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +34 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +853 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +56 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +409 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +732 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +1125 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +392 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/resume_service.rb +98 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +68 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +119 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/duration.rb +91 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb +29 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +230 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +109 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/wrappers.rb +34 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +39 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +65 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/type/money.rb +36 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +126 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +38 -0
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +75 -0
- data/lib/google/cloud/talent/v4beta1/event_service_client.rb +239 -0
- data/lib/google/cloud/talent/v4beta1/event_service_client_config.json +31 -0
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +24 -0
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +53 -0
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +182 -0
- data/lib/google/cloud/talent/v4beta1/helpers.rb +90 -0
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +28 -0
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +69 -0
- data/lib/google/cloud/talent/v4beta1/job_service_client.rb +1295 -0
- data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +66 -0
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +142 -0
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +88 -0
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +249 -0
- data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +757 -0
- data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +56 -0
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +81 -0
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +65 -0
- data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +296 -0
- data/lib/google/cloud/talent/v4beta1/resume_service_client_config.json +31 -0
- data/lib/google/cloud/talent/v4beta1/resume_service_pb.rb +37 -0
- data/lib/google/cloud/talent/v4beta1/resume_service_services_pb.rb +75 -0
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +31 -0
- data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +466 -0
- data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +51 -0
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +52 -0
- data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +55 -0
- metadata +197 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Protobuf
|
|
18
|
+
# A Timestamp represents a point in time independent of any time zone
|
|
19
|
+
# or calendar, represented as seconds and fractions of seconds at
|
|
20
|
+
# nanosecond resolution in UTC Epoch time. It is encoded using the
|
|
21
|
+
# Proleptic Gregorian Calendar which extends the Gregorian calendar
|
|
22
|
+
# backwards to year one. It is encoded assuming all minutes are 60
|
|
23
|
+
# seconds long, i.e. leap seconds are "smeared" so that no leap second
|
|
24
|
+
# table is needed for interpretation. Range is from
|
|
25
|
+
# 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
|
|
26
|
+
# By restricting to that range, we ensure that we can convert to
|
|
27
|
+
# and from RFC 3339 date strings.
|
|
28
|
+
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
|
|
29
|
+
#
|
|
30
|
+
# = Examples
|
|
31
|
+
#
|
|
32
|
+
# Example 1: Compute Timestamp from POSIX `time()`.
|
|
33
|
+
#
|
|
34
|
+
# Timestamp timestamp;
|
|
35
|
+
# timestamp.set_seconds(time(NULL));
|
|
36
|
+
# timestamp.set_nanos(0);
|
|
37
|
+
#
|
|
38
|
+
# Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
39
|
+
#
|
|
40
|
+
# struct timeval tv;
|
|
41
|
+
# gettimeofday(&tv, NULL);
|
|
42
|
+
#
|
|
43
|
+
# Timestamp timestamp;
|
|
44
|
+
# timestamp.set_seconds(tv.tv_sec);
|
|
45
|
+
# timestamp.set_nanos(tv.tv_usec * 1000);
|
|
46
|
+
#
|
|
47
|
+
# Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
48
|
+
#
|
|
49
|
+
# FILETIME ft;
|
|
50
|
+
# GetSystemTimeAsFileTime(&ft);
|
|
51
|
+
# UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
52
|
+
#
|
|
53
|
+
# // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
54
|
+
# // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
55
|
+
# Timestamp timestamp;
|
|
56
|
+
# timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
57
|
+
# timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
58
|
+
#
|
|
59
|
+
# Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
60
|
+
#
|
|
61
|
+
# long millis = System.currentTimeMillis();
|
|
62
|
+
#
|
|
63
|
+
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
64
|
+
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
65
|
+
#
|
|
66
|
+
#
|
|
67
|
+
# Example 5: Compute Timestamp from current time in Python.
|
|
68
|
+
#
|
|
69
|
+
# timestamp = Timestamp()
|
|
70
|
+
# timestamp.GetCurrentTime()
|
|
71
|
+
#
|
|
72
|
+
# = JSON Mapping
|
|
73
|
+
#
|
|
74
|
+
# In JSON format, the Timestamp type is encoded as a string in the
|
|
75
|
+
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
76
|
+
# format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
77
|
+
# where {year} is always expressed using four digits while {month}, {day},
|
|
78
|
+
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
79
|
+
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
80
|
+
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
81
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
82
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
83
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
|
84
|
+
#
|
|
85
|
+
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
86
|
+
# 01:30 UTC on January 15, 2017.
|
|
87
|
+
#
|
|
88
|
+
# In JavaScript, one can convert a Date object to this format using the
|
|
89
|
+
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
|
|
90
|
+
# method. In Python, a standard `datetime.datetime` object can be converted
|
|
91
|
+
# to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
|
|
92
|
+
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
|
93
|
+
# can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
94
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
|
|
95
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
96
|
+
# @!attribute [rw] seconds
|
|
97
|
+
# @return [Integer]
|
|
98
|
+
# Represents seconds of UTC time since Unix epoch
|
|
99
|
+
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
100
|
+
# 9999-12-31T23:59:59Z inclusive.
|
|
101
|
+
# @!attribute [rw] nanos
|
|
102
|
+
# @return [Integer]
|
|
103
|
+
# Non-negative fractions of a second at nanosecond resolution. Negative
|
|
104
|
+
# second values with fractions must still have non-negative nanos values
|
|
105
|
+
# that count forward in time. Must be from 0 to 999,999,999
|
|
106
|
+
# inclusive.
|
|
107
|
+
class Timestamp; end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Protobuf
|
|
18
|
+
# Wrapper message for `double`.
|
|
19
|
+
#
|
|
20
|
+
# The JSON representation for `DoubleValue` is JSON number.
|
|
21
|
+
# @!attribute [rw] value
|
|
22
|
+
# @return [Float]
|
|
23
|
+
# The double value.
|
|
24
|
+
class DoubleValue; end
|
|
25
|
+
|
|
26
|
+
# Wrapper message for `bool`.
|
|
27
|
+
#
|
|
28
|
+
# The JSON representation for `BoolValue` is JSON `true` and `false`.
|
|
29
|
+
# @!attribute [rw] value
|
|
30
|
+
# @return [true, false]
|
|
31
|
+
# The bool value.
|
|
32
|
+
class BoolValue; end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Type
|
|
18
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
|
19
|
+
# time zone are either specified elsewhere or are not significant. The date
|
|
20
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
|
21
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
|
22
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
|
23
|
+
# of year, e.g. anniversary date. Related types are
|
|
24
|
+
# {Google::Type::TimeOfDay} and
|
|
25
|
+
# `google.protobuf.Timestamp`.
|
|
26
|
+
# @!attribute [rw] year
|
|
27
|
+
# @return [Integer]
|
|
28
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
|
29
|
+
# a year.
|
|
30
|
+
# @!attribute [rw] month
|
|
31
|
+
# @return [Integer]
|
|
32
|
+
# Month of year. Must be from 1 to 12.
|
|
33
|
+
# @!attribute [rw] day
|
|
34
|
+
# @return [Integer]
|
|
35
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
36
|
+
# if specifying a year/month where the day is not significant.
|
|
37
|
+
class Date; end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Type
|
|
18
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
19
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
20
|
+
# specified otherwise, this must conform to the
|
|
21
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
22
|
+
# standard</a>. Values must be within normalized ranges.
|
|
23
|
+
#
|
|
24
|
+
# Example of normalization code in Python:
|
|
25
|
+
#
|
|
26
|
+
# def NormalizeLongitude(longitude):
|
|
27
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
28
|
+
# q, r = divmod(longitude, 360.0)
|
|
29
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
30
|
+
# return r - 360.0
|
|
31
|
+
# return r
|
|
32
|
+
#
|
|
33
|
+
# def NormalizeLatLng(latitude, longitude):
|
|
34
|
+
# """Wraps decimal degrees latitude and longitude to
|
|
35
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
36
|
+
# r = latitude % 360.0
|
|
37
|
+
# if r <= 90.0:
|
|
38
|
+
# return r, NormalizeLongitude(longitude)
|
|
39
|
+
# elif r >= 270.0:
|
|
40
|
+
# return r - 360, NormalizeLongitude(longitude)
|
|
41
|
+
# else:
|
|
42
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
43
|
+
#
|
|
44
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
|
45
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
46
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
|
47
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
48
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
49
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
50
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
51
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
52
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
53
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
54
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
55
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
56
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
57
|
+
# @!attribute [rw] latitude
|
|
58
|
+
# @return [Float]
|
|
59
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
60
|
+
# @!attribute [rw] longitude
|
|
61
|
+
# @return [Float]
|
|
62
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
63
|
+
class LatLng; end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Type
|
|
18
|
+
# Represents an amount of money with its currency type.
|
|
19
|
+
# @!attribute [rw] currency_code
|
|
20
|
+
# @return [String]
|
|
21
|
+
# The 3-letter currency code defined in ISO 4217.
|
|
22
|
+
# @!attribute [rw] units
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
# The whole units of the amount.
|
|
25
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
26
|
+
# @!attribute [rw] nanos
|
|
27
|
+
# @return [Integer]
|
|
28
|
+
# Number of nano (10^-9) units of the amount.
|
|
29
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
30
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
|
31
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
32
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
|
33
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
34
|
+
class Money; end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Type
|
|
18
|
+
# Represents a postal address, e.g. for postal delivery or payments addresses.
|
|
19
|
+
# Given a postal address, a postal service can deliver items to a premise, P.O.
|
|
20
|
+
# Box or similar.
|
|
21
|
+
# It is not intended to model geographical locations (roads, towns,
|
|
22
|
+
# mountains).
|
|
23
|
+
#
|
|
24
|
+
# In typical usage an address would be created via user input or from importing
|
|
25
|
+
# existing data, depending on the type of process.
|
|
26
|
+
#
|
|
27
|
+
# Advice on address input / editing:
|
|
28
|
+
# * Use an i18n-ready address widget such as
|
|
29
|
+
# https://github.com/googlei18n/libaddressinput)
|
|
30
|
+
# * Users should not be presented with UI elements for input or editing of
|
|
31
|
+
# fields outside countries where that field is used.
|
|
32
|
+
#
|
|
33
|
+
# For more guidance on how to use this schema, please see:
|
|
34
|
+
# https://support.google.com/business/answer/6397478
|
|
35
|
+
# @!attribute [rw] revision
|
|
36
|
+
# @return [Integer]
|
|
37
|
+
# The schema revision of the `PostalAddress`.
|
|
38
|
+
# All new revisions **must** be backward compatible with old revisions.
|
|
39
|
+
# @!attribute [rw] region_code
|
|
40
|
+
# @return [String]
|
|
41
|
+
# Required. CLDR region code of the country/region of the address. This
|
|
42
|
+
# is never inferred and it is up to the user to ensure the value is
|
|
43
|
+
# correct. See http://cldr.unicode.org/ and
|
|
44
|
+
# http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
|
|
45
|
+
# for details. Example: "CH" for Switzerland.
|
|
46
|
+
# @!attribute [rw] language_code
|
|
47
|
+
# @return [String]
|
|
48
|
+
# Optional. BCP-47 language code of the contents of this address (if
|
|
49
|
+
# known). This is often the UI language of the input form or is expected
|
|
50
|
+
# to match one of the languages used in the address' country/region, or their
|
|
51
|
+
# transliterated equivalents.
|
|
52
|
+
# This can affect formatting in certain countries, but is not critical
|
|
53
|
+
# to the correctness of the data and will never affect any validation or
|
|
54
|
+
# other non-formatting related operations.
|
|
55
|
+
#
|
|
56
|
+
# If this value is not known, it should be omitted (rather than specifying a
|
|
57
|
+
# possibly incorrect default).
|
|
58
|
+
#
|
|
59
|
+
# Examples: "zh-Hant", "ja", "ja-Latn", "en".
|
|
60
|
+
# @!attribute [rw] postal_code
|
|
61
|
+
# @return [String]
|
|
62
|
+
# Optional. Postal code of the address. Not all countries use or require
|
|
63
|
+
# postal codes to be present, but where they are used, they may trigger
|
|
64
|
+
# additional validation with other parts of the address (e.g. state/zip
|
|
65
|
+
# validation in the U.S.A.).
|
|
66
|
+
# @!attribute [rw] sorting_code
|
|
67
|
+
# @return [String]
|
|
68
|
+
# Optional. Additional, country-specific, sorting code. This is not used
|
|
69
|
+
# in most regions. Where it is used, the value is either a string like
|
|
70
|
+
# "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
|
|
71
|
+
# alone, representing the "sector code" (Jamaica), "delivery area indicator"
|
|
72
|
+
# (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
|
|
73
|
+
# @!attribute [rw] administrative_area
|
|
74
|
+
# @return [String]
|
|
75
|
+
# Optional. Highest administrative subdivision which is used for postal
|
|
76
|
+
# addresses of a country or region.
|
|
77
|
+
# For example, this can be a state, a province, an oblast, or a prefecture.
|
|
78
|
+
# Specifically, for Spain this is the province and not the autonomous
|
|
79
|
+
# community (e.g. "Barcelona" and not "Catalonia").
|
|
80
|
+
# Many countries don't use an administrative area in postal addresses. E.g.
|
|
81
|
+
# in Switzerland this should be left unpopulated.
|
|
82
|
+
# @!attribute [rw] locality
|
|
83
|
+
# @return [String]
|
|
84
|
+
# Optional. Generally refers to the city/town portion of the address.
|
|
85
|
+
# Examples: US city, IT comune, UK post town.
|
|
86
|
+
# In regions of the world where localities are not well defined or do not fit
|
|
87
|
+
# into this structure well, leave locality empty and use address_lines.
|
|
88
|
+
# @!attribute [rw] sublocality
|
|
89
|
+
# @return [String]
|
|
90
|
+
# Optional. Sublocality of the address.
|
|
91
|
+
# For example, this can be neighborhoods, boroughs, districts.
|
|
92
|
+
# @!attribute [rw] address_lines
|
|
93
|
+
# @return [Array<String>]
|
|
94
|
+
# Unstructured address lines describing the lower levels of an address.
|
|
95
|
+
#
|
|
96
|
+
# Because values in address_lines do not have type information and may
|
|
97
|
+
# sometimes contain multiple values in a single field (e.g.
|
|
98
|
+
# "Austin, TX"), it is important that the line order is clear. The order of
|
|
99
|
+
# address lines should be "envelope order" for the country/region of the
|
|
100
|
+
# address. In places where this can vary (e.g. Japan), address_language is
|
|
101
|
+
# used to make it explicit (e.g. "ja" for large-to-small ordering and
|
|
102
|
+
# "ja-Latn" or "en" for small-to-large). This way, the most specific line of
|
|
103
|
+
# an address can be selected based on the language.
|
|
104
|
+
#
|
|
105
|
+
# The minimum permitted structural representation of an address consists
|
|
106
|
+
# of a region_code with all remaining information placed in the
|
|
107
|
+
# address_lines. It would be possible to format such an address very
|
|
108
|
+
# approximately without geocoding, but no semantic reasoning could be
|
|
109
|
+
# made about any of the address components until it was at least
|
|
110
|
+
# partially resolved.
|
|
111
|
+
#
|
|
112
|
+
# Creating an address only containing a region_code and address_lines, and
|
|
113
|
+
# then geocoding is the recommended way to handle completely unstructured
|
|
114
|
+
# addresses (as opposed to guessing which parts of the address should be
|
|
115
|
+
# localities or administrative areas).
|
|
116
|
+
# @!attribute [rw] recipients
|
|
117
|
+
# @return [Array<String>]
|
|
118
|
+
# Optional. The recipient at the address.
|
|
119
|
+
# This field may, under certain circumstances, contain multiline information.
|
|
120
|
+
# For example, it might contain "care of" information.
|
|
121
|
+
# @!attribute [rw] organization
|
|
122
|
+
# @return [String]
|
|
123
|
+
# Optional. The name of the organization at the address.
|
|
124
|
+
class PostalAddress; end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Type
|
|
18
|
+
# Represents a time of day. The date and time zone are either not significant
|
|
19
|
+
# or are specified elsewhere. An API may chose to allow leap seconds. Related
|
|
20
|
+
# types are {Google::Type::Date} and
|
|
21
|
+
# `google.protobuf.Timestamp`.
|
|
22
|
+
# @!attribute [rw] hours
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
|
25
|
+
# to allow the value "24:00:00" for scenarios like business closing time.
|
|
26
|
+
# @!attribute [rw] minutes
|
|
27
|
+
# @return [Integer]
|
|
28
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
|
29
|
+
# @!attribute [rw] seconds
|
|
30
|
+
# @return [Integer]
|
|
31
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
|
32
|
+
# allow the value 60 if it allows leap-seconds.
|
|
33
|
+
# @!attribute [rw] nanos
|
|
34
|
+
# @return [Integer]
|
|
35
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
|
36
|
+
class TimeOfDay; end
|
|
37
|
+
end
|
|
38
|
+
end
|