google-cloud-talent 0.8.1 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +347 -0
- data/README.md +35 -25
- data/lib/{google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb → google-cloud-talent.rb} +5 -15
- data/lib/google/cloud/talent.rb +254 -442
- data/lib/google/cloud/talent/version.rb +6 -2
- metadata +62 -111
- data/LICENSE +0 -201
- data/lib/google/cloud/talent/v4beta1.rb +0 -543
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +0 -62
- data/lib/google/cloud/talent/v4beta1/application_service_client.rb +0 -491
- data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +0 -54
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +0 -56
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +0 -18
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +0 -341
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +0 -40
- data/lib/google/cloud/talent/v4beta1/company_service_client.rb +0 -535
- data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +0 -56
- data/lib/google/cloud/talent/v4beta1/completion_client.rb +0 -359
- data/lib/google/cloud/talent/v4beta1/completion_client_config.json +0 -31
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +0 -48
- data/lib/google/cloud/talent/v4beta1/credentials.rb +0 -42
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +0 -166
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +0 -107
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +0 -1147
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +0 -110
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +0 -122
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +0 -141
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +0 -238
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +0 -36
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +0 -847
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +0 -55
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +0 -363
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +0 -762
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +0 -808
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +0 -446
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +0 -74
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +0 -101
- data/lib/google/cloud/talent/v4beta1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/wrappers.rb +0 -34
- data/lib/google/cloud/talent/v4beta1/doc/google/rpc/status.rb +0 -87
- data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +0 -43
- data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -31
- data/lib/google/cloud/talent/v4beta1/doc/google/type/money.rb +0 -36
- data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +0 -126
- data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +0 -37
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +0 -69
- data/lib/google/cloud/talent/v4beta1/event_service_client.rb +0 -268
- data/lib/google/cloud/talent/v4beta1/event_service_client_config.json +0 -31
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +0 -26
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +0 -53
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +0 -187
- data/lib/google/cloud/talent/v4beta1/helpers.rb +0 -162
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +0 -27
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +0 -71
- data/lib/google/cloud/talent/v4beta1/job_service_client.rb +0 -1576
- data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +0 -76
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -165
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +0 -92
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +0 -212
- data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +0 -844
- data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +0 -56
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +0 -88
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +0 -67
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +0 -33
- data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +0 -476
- data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +0 -51
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +0 -54
- data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +0 -55
@@ -1,113 +0,0 @@
|
|
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 or local
|
19
|
-
# calendar, encoded as a count of seconds and fractions of seconds at
|
20
|
-
# nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
21
|
-
# January 1, 1970, in the proleptic Gregorian calendar which extends the
|
22
|
-
# Gregorian calendar backwards to year one.
|
23
|
-
#
|
24
|
-
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
25
|
-
# second table is needed for interpretation, using a [24-hour linear
|
26
|
-
# smear](https://developers.google.com/time/smear).
|
27
|
-
#
|
28
|
-
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
29
|
-
# restricting to that range, we ensure that we can convert to and from [RFC
|
30
|
-
# 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
31
|
-
#
|
32
|
-
# = Examples
|
33
|
-
#
|
34
|
-
# Example 1: Compute Timestamp from POSIX `time()`.
|
35
|
-
#
|
36
|
-
# Timestamp timestamp;
|
37
|
-
# timestamp.set_seconds(time(NULL));
|
38
|
-
# timestamp.set_nanos(0);
|
39
|
-
#
|
40
|
-
# Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
41
|
-
#
|
42
|
-
# struct timeval tv;
|
43
|
-
# gettimeofday(&tv, NULL);
|
44
|
-
#
|
45
|
-
# Timestamp timestamp;
|
46
|
-
# timestamp.set_seconds(tv.tv_sec);
|
47
|
-
# timestamp.set_nanos(tv.tv_usec * 1000);
|
48
|
-
#
|
49
|
-
# Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
50
|
-
#
|
51
|
-
# FILETIME ft;
|
52
|
-
# GetSystemTimeAsFileTime(&ft);
|
53
|
-
# UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
54
|
-
#
|
55
|
-
# // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
56
|
-
# // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
57
|
-
# Timestamp timestamp;
|
58
|
-
# timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
59
|
-
# timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
60
|
-
#
|
61
|
-
# Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
62
|
-
#
|
63
|
-
# long millis = System.currentTimeMillis();
|
64
|
-
#
|
65
|
-
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
66
|
-
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
67
|
-
#
|
68
|
-
#
|
69
|
-
# Example 5: Compute Timestamp from current time in Python.
|
70
|
-
#
|
71
|
-
# timestamp = Timestamp()
|
72
|
-
# timestamp.GetCurrentTime()
|
73
|
-
#
|
74
|
-
# = JSON Mapping
|
75
|
-
#
|
76
|
-
# In JSON format, the Timestamp type is encoded as a string in the
|
77
|
-
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
78
|
-
# format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
79
|
-
# where {year} is always expressed using four digits while {month}, {day},
|
80
|
-
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
81
|
-
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
82
|
-
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
83
|
-
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
84
|
-
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
85
|
-
# able to accept both UTC and other timezones (as indicated by an offset).
|
86
|
-
#
|
87
|
-
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
88
|
-
# 01:30 UTC on January 15, 2017.
|
89
|
-
#
|
90
|
-
# In JavaScript, one can convert a Date object to this format using the
|
91
|
-
# standard
|
92
|
-
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
93
|
-
# method. In Python, a standard `datetime.datetime` object can be converted
|
94
|
-
# to this format using
|
95
|
-
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
96
|
-
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
97
|
-
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
98
|
-
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
99
|
-
# ) to obtain a formatter capable of generating timestamps in this format.
|
100
|
-
# @!attribute [rw] seconds
|
101
|
-
# @return [Integer]
|
102
|
-
# Represents seconds of UTC time since Unix epoch
|
103
|
-
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
104
|
-
# 9999-12-31T23:59:59Z inclusive.
|
105
|
-
# @!attribute [rw] nanos
|
106
|
-
# @return [Integer]
|
107
|
-
# Non-negative fractions of a second at nanosecond resolution. Negative
|
108
|
-
# second values with fractions must still have non-negative nanos values
|
109
|
-
# that count forward in time. Must be from 0 to 999,999,999
|
110
|
-
# inclusive.
|
111
|
-
class Timestamp; end
|
112
|
-
end
|
113
|
-
end
|
@@ -1,34 +0,0 @@
|
|
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
|
@@ -1,87 +0,0 @@
|
|
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 Rpc
|
18
|
-
# The `Status` type defines a logical error model that is suitable for
|
19
|
-
# different programming environments, including REST APIs and RPC APIs. It is
|
20
|
-
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
21
|
-
#
|
22
|
-
# * Simple to use and understand for most users
|
23
|
-
# * Flexible enough to meet unexpected needs
|
24
|
-
#
|
25
|
-
# = Overview
|
26
|
-
#
|
27
|
-
# The `Status` message contains three pieces of data: error code, error
|
28
|
-
# message, and error details. The error code should be an enum value of
|
29
|
-
# {Google::Rpc::Code}, but it may accept additional error codes
|
30
|
-
# if needed. The error message should be a developer-facing English message
|
31
|
-
# that helps developers *understand* and *resolve* the error. If a localized
|
32
|
-
# user-facing error message is needed, put the localized message in the error
|
33
|
-
# details or localize it in the client. The optional error details may contain
|
34
|
-
# arbitrary information about the error. There is a predefined set of error
|
35
|
-
# detail types in the package `google.rpc` that can be used for common error
|
36
|
-
# conditions.
|
37
|
-
#
|
38
|
-
# = Language mapping
|
39
|
-
#
|
40
|
-
# The `Status` message is the logical representation of the error model, but it
|
41
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
42
|
-
# exposed in different client libraries and different wire protocols, it can be
|
43
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
44
|
-
# in Java, but more likely mapped to some error codes in C.
|
45
|
-
#
|
46
|
-
# = Other uses
|
47
|
-
#
|
48
|
-
# The error model and the `Status` message can be used in a variety of
|
49
|
-
# environments, either with or without APIs, to provide a
|
50
|
-
# consistent developer experience across different environments.
|
51
|
-
#
|
52
|
-
# Example uses of this error model include:
|
53
|
-
#
|
54
|
-
# * Partial errors. If a service needs to return partial errors to the client,
|
55
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
56
|
-
# errors.
|
57
|
-
#
|
58
|
-
# * Workflow errors. A typical workflow has multiple steps. Each step may
|
59
|
-
# have a `Status` message for error reporting.
|
60
|
-
#
|
61
|
-
# * Batch operations. If a client uses batch request and batch response, the
|
62
|
-
# `Status` message should be used directly inside batch response, one for
|
63
|
-
# each error sub-response.
|
64
|
-
#
|
65
|
-
# * Asynchronous operations. If an API call embeds asynchronous operation
|
66
|
-
# results in its response, the status of those operations should be
|
67
|
-
# represented directly using the `Status` message.
|
68
|
-
#
|
69
|
-
# * Logging. If some API errors are stored in logs, the message `Status` could
|
70
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
71
|
-
# @!attribute [rw] code
|
72
|
-
# @return [Integer]
|
73
|
-
# The status code, which should be an enum value of
|
74
|
-
# {Google::Rpc::Code}.
|
75
|
-
# @!attribute [rw] message
|
76
|
-
# @return [String]
|
77
|
-
# A developer-facing error message, which should be in English. Any
|
78
|
-
# user-facing error message should be localized and sent in the
|
79
|
-
# {Google::Rpc::Status#details} field, or localized
|
80
|
-
# by the client.
|
81
|
-
# @!attribute [rw] details
|
82
|
-
# @return [Array<Google::Protobuf::Any>]
|
83
|
-
# A list of messages that carry the error details. There is a common set of
|
84
|
-
# message types for APIs to use.
|
85
|
-
class Status; end
|
86
|
-
end
|
87
|
-
end
|
@@ -1,43 +0,0 @@
|
|
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 or partial calendar date, e.g. a birthday. The time of day
|
19
|
-
# and time zone are either specified elsewhere or are not significant. The date
|
20
|
-
# is relative to the Proleptic Gregorian Calendar. This can represent:
|
21
|
-
#
|
22
|
-
# * A full date, with non-zero year, month and day values
|
23
|
-
# * A month and day value, with a zero year, e.g. an anniversary
|
24
|
-
# * A year on its own, with zero month and day values
|
25
|
-
# * A year and month value, with a zero day, e.g. a credit card expiration date
|
26
|
-
#
|
27
|
-
# Related types are {Google::Type::TimeOfDay} and `google.protobuf.Timestamp`.
|
28
|
-
# @!attribute [rw] year
|
29
|
-
# @return [Integer]
|
30
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
31
|
-
# a year.
|
32
|
-
# @!attribute [rw] month
|
33
|
-
# @return [Integer]
|
34
|
-
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a
|
35
|
-
# month and day.
|
36
|
-
# @!attribute [rw] day
|
37
|
-
# @return [Integer]
|
38
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
39
|
-
# if specifying a year by itself or a year and month where the day is not
|
40
|
-
# significant.
|
41
|
-
class Date; end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,31 +0,0 @@
|
|
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
|
-
# @!attribute [rw] latitude
|
24
|
-
# @return [Float]
|
25
|
-
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
26
|
-
# @!attribute [rw] longitude
|
27
|
-
# @return [Float]
|
28
|
-
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
29
|
-
class LatLng; end
|
30
|
-
end
|
31
|
-
end
|
@@ -1,36 +0,0 @@
|
|
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
|
@@ -1,126 +0,0 @@
|
|
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/google/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
|