google-cloud-talent 0.10.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +51 -59
  4. data/LICENSE.md +201 -0
  5. data/MIGRATING.md +347 -0
  6. data/README.md +97 -27
  7. data/lib/{google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb → google-cloud-talent.rb} +4 -14
  8. data/lib/google/cloud/talent.rb +203 -453
  9. data/lib/google/cloud/talent/version.rb +6 -2
  10. metadata +76 -111
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/talent/v4beta1.rb +0 -543
  13. data/lib/google/cloud/talent/v4beta1/application_pb.rb +0 -63
  14. data/lib/google/cloud/talent/v4beta1/application_service_client.rb +0 -527
  15. data/lib/google/cloud/talent/v4beta1/application_service_client_config.json +0 -51
  16. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +0 -55
  17. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +0 -55
  18. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +0 -18
  19. data/lib/google/cloud/talent/v4beta1/common_pb.rb +0 -341
  20. data/lib/google/cloud/talent/v4beta1/company_pb.rb +0 -41
  21. data/lib/google/cloud/talent/v4beta1/company_service_client.rb +0 -536
  22. data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +0 -51
  23. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +0 -56
  24. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +0 -55
  25. data/lib/google/cloud/talent/v4beta1/completion_client.rb +0 -344
  26. data/lib/google/cloud/talent/v4beta1/completion_client_config.json +0 -31
  27. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +0 -56
  28. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +0 -47
  29. data/lib/google/cloud/talent/v4beta1/credentials.rb +0 -42
  30. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +0 -162
  31. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +0 -100
  32. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +0 -1057
  33. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +0 -107
  34. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +0 -116
  35. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +0 -130
  36. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +0 -224
  37. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +0 -36
  38. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +0 -763
  39. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +0 -50
  40. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +0 -331
  41. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +0 -694
  42. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +0 -750
  43. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +0 -361
  44. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +0 -70
  45. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +0 -96
  46. data/lib/google/cloud/talent/v4beta1/doc/google/longrunning/operations.rb +0 -51
  47. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/any.rb +0 -131
  48. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/duration.rb +0 -91
  49. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +0 -222
  50. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +0 -113
  51. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/wrappers.rb +0 -34
  52. data/lib/google/cloud/talent/v4beta1/doc/google/rpc/status.rb +0 -39
  53. data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +0 -43
  54. data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +0 -31
  55. data/lib/google/cloud/talent/v4beta1/doc/google/type/money.rb +0 -36
  56. data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +0 -128
  57. data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +0 -37
  58. data/lib/google/cloud/talent/v4beta1/event_pb.rb +0 -69
  59. data/lib/google/cloud/talent/v4beta1/event_service_client.rb +0 -271
  60. data/lib/google/cloud/talent/v4beta1/event_service_client_config.json +0 -31
  61. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +0 -27
  62. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +0 -52
  63. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +0 -187
  64. data/lib/google/cloud/talent/v4beta1/helpers.rb +0 -179
  65. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +0 -27
  66. data/lib/google/cloud/talent/v4beta1/job_pb.rb +0 -72
  67. data/lib/google/cloud/talent/v4beta1/job_service_client.rb +0 -1521
  68. data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +0 -76
  69. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +0 -166
  70. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +0 -87
  71. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +0 -213
  72. data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +0 -765
  73. data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +0 -56
  74. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +0 -91
  75. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +0 -64
  76. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +0 -34
  77. data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +0 -474
  78. data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +0 -51
  79. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +0 -55
  80. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +0 -54
@@ -1,113 +0,0 @@
1
- # Copyright 2020 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 2020 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,39 +0,0 @@
1
- # Copyright 2020 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). Each `Status` message contains
21
- # three pieces of data: error code, error message, and error details.
22
- #
23
- # You can find out more about this error model and how to work with it in the
24
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
25
- # @!attribute [rw] code
26
- # @return [Integer]
27
- # The status code, which should be an enum value of {Google::Rpc::Code}.
28
- # @!attribute [rw] message
29
- # @return [String]
30
- # A developer-facing error message, which should be in English. Any
31
- # user-facing error message should be localized and sent in the
32
- # {Google::Rpc::Status#details} field, or localized by the client.
33
- # @!attribute [rw] details
34
- # @return [Array<Google::Protobuf::Any>]
35
- # A list of messages that carry the error details. There is a common set of
36
- # message types for APIs to use.
37
- class Status; end
38
- end
39
- end
@@ -1,43 +0,0 @@
1
- # Copyright 2020 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 2020 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 2020 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,128 +0,0 @@
1
- # Copyright 2020 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`. This must be set to 0, which is
38
- # the latest revision.
39
- #
40
- # All new revisions **must** be backward compatible with old revisions.
41
- # @!attribute [rw] region_code
42
- # @return [String]
43
- # Required. CLDR region code of the country/region of the address. This
44
- # is never inferred and it is up to the user to ensure the value is
45
- # correct. See http://cldr.unicode.org/ and
46
- # http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
47
- # for details. Example: "CH" for Switzerland.
48
- # @!attribute [rw] language_code
49
- # @return [String]
50
- # Optional. BCP-47 language code of the contents of this address (if
51
- # known). This is often the UI language of the input form or is expected
52
- # to match one of the languages used in the address' country/region, or their
53
- # transliterated equivalents.
54
- # This can affect formatting in certain countries, but is not critical
55
- # to the correctness of the data and will never affect any validation or
56
- # other non-formatting related operations.
57
- #
58
- # If this value is not known, it should be omitted (rather than specifying a
59
- # possibly incorrect default).
60
- #
61
- # Examples: "zh-Hant", "ja", "ja-Latn", "en".
62
- # @!attribute [rw] postal_code
63
- # @return [String]
64
- # Optional. Postal code of the address. Not all countries use or require
65
- # postal codes to be present, but where they are used, they may trigger
66
- # additional validation with other parts of the address (e.g. state/zip
67
- # validation in the U.S.A.).
68
- # @!attribute [rw] sorting_code
69
- # @return [String]
70
- # Optional. Additional, country-specific, sorting code. This is not used
71
- # in most regions. Where it is used, the value is either a string like
72
- # "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
73
- # alone, representing the "sector code" (Jamaica), "delivery area indicator"
74
- # (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
75
- # @!attribute [rw] administrative_area
76
- # @return [String]
77
- # Optional. Highest administrative subdivision which is used for postal
78
- # addresses of a country or region.
79
- # For example, this can be a state, a province, an oblast, or a prefecture.
80
- # Specifically, for Spain this is the province and not the autonomous
81
- # community (e.g. "Barcelona" and not "Catalonia").
82
- # Many countries don't use an administrative area in postal addresses. E.g.
83
- # in Switzerland this should be left unpopulated.
84
- # @!attribute [rw] locality
85
- # @return [String]
86
- # Optional. Generally refers to the city/town portion of the address.
87
- # Examples: US city, IT comune, UK post town.
88
- # In regions of the world where localities are not well defined or do not fit
89
- # into this structure well, leave locality empty and use address_lines.
90
- # @!attribute [rw] sublocality
91
- # @return [String]
92
- # Optional. Sublocality of the address.
93
- # For example, this can be neighborhoods, boroughs, districts.
94
- # @!attribute [rw] address_lines
95
- # @return [Array<String>]
96
- # Unstructured address lines describing the lower levels of an address.
97
- #
98
- # Because values in address_lines do not have type information and may
99
- # sometimes contain multiple values in a single field (e.g.
100
- # "Austin, TX"), it is important that the line order is clear. The order of
101
- # address lines should be "envelope order" for the country/region of the
102
- # address. In places where this can vary (e.g. Japan), address_language is
103
- # used to make it explicit (e.g. "ja" for large-to-small ordering and
104
- # "ja-Latn" or "en" for small-to-large). This way, the most specific line of
105
- # an address can be selected based on the language.
106
- #
107
- # The minimum permitted structural representation of an address consists
108
- # of a region_code with all remaining information placed in the
109
- # address_lines. It would be possible to format such an address very
110
- # approximately without geocoding, but no semantic reasoning could be
111
- # made about any of the address components until it was at least
112
- # partially resolved.
113
- #
114
- # Creating an address only containing a region_code and address_lines, and
115
- # then geocoding is the recommended way to handle completely unstructured
116
- # addresses (as opposed to guessing which parts of the address should be
117
- # localities or administrative areas).
118
- # @!attribute [rw] recipients
119
- # @return [Array<String>]
120
- # Optional. The recipient at the address.
121
- # This field may, under certain circumstances, contain multiline information.
122
- # For example, it might contain "care of" information.
123
- # @!attribute [rw] organization
124
- # @return [String]
125
- # Optional. The name of the organization at the address.
126
- class PostalAddress; end
127
- end
128
- end
@@ -1,37 +0,0 @@
1
- # Copyright 2020 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 choose to allow leap seconds. Related
20
- # types are {Google::Type::Date} and `google.protobuf.Timestamp`.
21
- # @!attribute [rw] hours
22
- # @return [Integer]
23
- # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
24
- # to allow the value "24:00:00" for scenarios like business closing time.
25
- # @!attribute [rw] minutes
26
- # @return [Integer]
27
- # Minutes of hour of day. Must be from 0 to 59.
28
- # @!attribute [rw] seconds
29
- # @return [Integer]
30
- # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
31
- # allow the value 60 if it allows leap-seconds.
32
- # @!attribute [rw] nanos
33
- # @return [Integer]
34
- # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
35
- class TimeOfDay; end
36
- end
37
- end