• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/type/postal_address.proto
18 
19 package com.google.type;
20 
21 public interface PostalAddressOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.type.PostalAddress)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The schema revision of the `PostalAddress`. This must be set to 0, which is
31    * the latest revision.
32    * All new revisions **must** be backward compatible with old revisions.
33    * </pre>
34    *
35    * <code>int32 revision = 1;</code>
36    *
37    * @return The revision.
38    */
getRevision()39   int getRevision();
40 
41   /**
42    *
43    *
44    * <pre>
45    * Required. CLDR region code of the country/region of the address. This
46    * is never inferred and it is up to the user to ensure the value is
47    * correct. See http://cldr.unicode.org/ and
48    * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
49    * for details. Example: "CH" for Switzerland.
50    * </pre>
51    *
52    * <code>string region_code = 2;</code>
53    *
54    * @return The regionCode.
55    */
getRegionCode()56   java.lang.String getRegionCode();
57   /**
58    *
59    *
60    * <pre>
61    * Required. CLDR region code of the country/region of the address. This
62    * is never inferred and it is up to the user to ensure the value is
63    * correct. See http://cldr.unicode.org/ and
64    * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
65    * for details. Example: "CH" for Switzerland.
66    * </pre>
67    *
68    * <code>string region_code = 2;</code>
69    *
70    * @return The bytes for regionCode.
71    */
getRegionCodeBytes()72   com.google.protobuf.ByteString getRegionCodeBytes();
73 
74   /**
75    *
76    *
77    * <pre>
78    * Optional. BCP-47 language code of the contents of this address (if
79    * known). This is often the UI language of the input form or is expected
80    * to match one of the languages used in the address' country/region, or their
81    * transliterated equivalents.
82    * This can affect formatting in certain countries, but is not critical
83    * to the correctness of the data and will never affect any validation or
84    * other non-formatting related operations.
85    * If this value is not known, it should be omitted (rather than specifying a
86    * possibly incorrect default).
87    * Examples: "zh-Hant", "ja", "ja-Latn", "en".
88    * </pre>
89    *
90    * <code>string language_code = 3;</code>
91    *
92    * @return The languageCode.
93    */
getLanguageCode()94   java.lang.String getLanguageCode();
95   /**
96    *
97    *
98    * <pre>
99    * Optional. BCP-47 language code of the contents of this address (if
100    * known). This is often the UI language of the input form or is expected
101    * to match one of the languages used in the address' country/region, or their
102    * transliterated equivalents.
103    * This can affect formatting in certain countries, but is not critical
104    * to the correctness of the data and will never affect any validation or
105    * other non-formatting related operations.
106    * If this value is not known, it should be omitted (rather than specifying a
107    * possibly incorrect default).
108    * Examples: "zh-Hant", "ja", "ja-Latn", "en".
109    * </pre>
110    *
111    * <code>string language_code = 3;</code>
112    *
113    * @return The bytes for languageCode.
114    */
getLanguageCodeBytes()115   com.google.protobuf.ByteString getLanguageCodeBytes();
116 
117   /**
118    *
119    *
120    * <pre>
121    * Optional. Postal code of the address. Not all countries use or require
122    * postal codes to be present, but where they are used, they may trigger
123    * additional validation with other parts of the address (e.g. state/zip
124    * validation in the U.S.A.).
125    * </pre>
126    *
127    * <code>string postal_code = 4;</code>
128    *
129    * @return The postalCode.
130    */
getPostalCode()131   java.lang.String getPostalCode();
132   /**
133    *
134    *
135    * <pre>
136    * Optional. Postal code of the address. Not all countries use or require
137    * postal codes to be present, but where they are used, they may trigger
138    * additional validation with other parts of the address (e.g. state/zip
139    * validation in the U.S.A.).
140    * </pre>
141    *
142    * <code>string postal_code = 4;</code>
143    *
144    * @return The bytes for postalCode.
145    */
getPostalCodeBytes()146   com.google.protobuf.ByteString getPostalCodeBytes();
147 
148   /**
149    *
150    *
151    * <pre>
152    * Optional. Additional, country-specific, sorting code. This is not used
153    * in most regions. Where it is used, the value is either a string like
154    * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
155    * alone, representing the "sector code" (Jamaica), "delivery area indicator"
156    * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
157    * </pre>
158    *
159    * <code>string sorting_code = 5;</code>
160    *
161    * @return The sortingCode.
162    */
getSortingCode()163   java.lang.String getSortingCode();
164   /**
165    *
166    *
167    * <pre>
168    * Optional. Additional, country-specific, sorting code. This is not used
169    * in most regions. Where it is used, the value is either a string like
170    * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
171    * alone, representing the "sector code" (Jamaica), "delivery area indicator"
172    * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
173    * </pre>
174    *
175    * <code>string sorting_code = 5;</code>
176    *
177    * @return The bytes for sortingCode.
178    */
getSortingCodeBytes()179   com.google.protobuf.ByteString getSortingCodeBytes();
180 
181   /**
182    *
183    *
184    * <pre>
185    * Optional. Highest administrative subdivision which is used for postal
186    * addresses of a country or region.
187    * For example, this can be a state, a province, an oblast, or a prefecture.
188    * Specifically, for Spain this is the province and not the autonomous
189    * community (e.g. "Barcelona" and not "Catalonia").
190    * Many countries don't use an administrative area in postal addresses. E.g.
191    * in Switzerland this should be left unpopulated.
192    * </pre>
193    *
194    * <code>string administrative_area = 6;</code>
195    *
196    * @return The administrativeArea.
197    */
getAdministrativeArea()198   java.lang.String getAdministrativeArea();
199   /**
200    *
201    *
202    * <pre>
203    * Optional. Highest administrative subdivision which is used for postal
204    * addresses of a country or region.
205    * For example, this can be a state, a province, an oblast, or a prefecture.
206    * Specifically, for Spain this is the province and not the autonomous
207    * community (e.g. "Barcelona" and not "Catalonia").
208    * Many countries don't use an administrative area in postal addresses. E.g.
209    * in Switzerland this should be left unpopulated.
210    * </pre>
211    *
212    * <code>string administrative_area = 6;</code>
213    *
214    * @return The bytes for administrativeArea.
215    */
getAdministrativeAreaBytes()216   com.google.protobuf.ByteString getAdministrativeAreaBytes();
217 
218   /**
219    *
220    *
221    * <pre>
222    * Optional. Generally refers to the city/town portion of the address.
223    * Examples: US city, IT comune, UK post town.
224    * In regions of the world where localities are not well defined or do not fit
225    * into this structure well, leave locality empty and use address_lines.
226    * </pre>
227    *
228    * <code>string locality = 7;</code>
229    *
230    * @return The locality.
231    */
getLocality()232   java.lang.String getLocality();
233   /**
234    *
235    *
236    * <pre>
237    * Optional. Generally refers to the city/town portion of the address.
238    * Examples: US city, IT comune, UK post town.
239    * In regions of the world where localities are not well defined or do not fit
240    * into this structure well, leave locality empty and use address_lines.
241    * </pre>
242    *
243    * <code>string locality = 7;</code>
244    *
245    * @return The bytes for locality.
246    */
getLocalityBytes()247   com.google.protobuf.ByteString getLocalityBytes();
248 
249   /**
250    *
251    *
252    * <pre>
253    * Optional. Sublocality of the address.
254    * For example, this can be neighborhoods, boroughs, districts.
255    * </pre>
256    *
257    * <code>string sublocality = 8;</code>
258    *
259    * @return The sublocality.
260    */
getSublocality()261   java.lang.String getSublocality();
262   /**
263    *
264    *
265    * <pre>
266    * Optional. Sublocality of the address.
267    * For example, this can be neighborhoods, boroughs, districts.
268    * </pre>
269    *
270    * <code>string sublocality = 8;</code>
271    *
272    * @return The bytes for sublocality.
273    */
getSublocalityBytes()274   com.google.protobuf.ByteString getSublocalityBytes();
275 
276   /**
277    *
278    *
279    * <pre>
280    * Unstructured address lines describing the lower levels of an address.
281    * Because values in address_lines do not have type information and may
282    * sometimes contain multiple values in a single field (e.g.
283    * "Austin, TX"), it is important that the line order is clear. The order of
284    * address lines should be "envelope order" for the country/region of the
285    * address. In places where this can vary (e.g. Japan), address_language is
286    * used to make it explicit (e.g. "ja" for large-to-small ordering and
287    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
288    * an address can be selected based on the language.
289    * The minimum permitted structural representation of an address consists
290    * of a region_code with all remaining information placed in the
291    * address_lines. It would be possible to format such an address very
292    * approximately without geocoding, but no semantic reasoning could be
293    * made about any of the address components until it was at least
294    * partially resolved.
295    * Creating an address only containing a region_code and address_lines, and
296    * then geocoding is the recommended way to handle completely unstructured
297    * addresses (as opposed to guessing which parts of the address should be
298    * localities or administrative areas).
299    * </pre>
300    *
301    * <code>repeated string address_lines = 9;</code>
302    *
303    * @return A list containing the addressLines.
304    */
getAddressLinesList()305   java.util.List<java.lang.String> getAddressLinesList();
306   /**
307    *
308    *
309    * <pre>
310    * Unstructured address lines describing the lower levels of an address.
311    * Because values in address_lines do not have type information and may
312    * sometimes contain multiple values in a single field (e.g.
313    * "Austin, TX"), it is important that the line order is clear. The order of
314    * address lines should be "envelope order" for the country/region of the
315    * address. In places where this can vary (e.g. Japan), address_language is
316    * used to make it explicit (e.g. "ja" for large-to-small ordering and
317    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
318    * an address can be selected based on the language.
319    * The minimum permitted structural representation of an address consists
320    * of a region_code with all remaining information placed in the
321    * address_lines. It would be possible to format such an address very
322    * approximately without geocoding, but no semantic reasoning could be
323    * made about any of the address components until it was at least
324    * partially resolved.
325    * Creating an address only containing a region_code and address_lines, and
326    * then geocoding is the recommended way to handle completely unstructured
327    * addresses (as opposed to guessing which parts of the address should be
328    * localities or administrative areas).
329    * </pre>
330    *
331    * <code>repeated string address_lines = 9;</code>
332    *
333    * @return The count of addressLines.
334    */
getAddressLinesCount()335   int getAddressLinesCount();
336   /**
337    *
338    *
339    * <pre>
340    * Unstructured address lines describing the lower levels of an address.
341    * Because values in address_lines do not have type information and may
342    * sometimes contain multiple values in a single field (e.g.
343    * "Austin, TX"), it is important that the line order is clear. The order of
344    * address lines should be "envelope order" for the country/region of the
345    * address. In places where this can vary (e.g. Japan), address_language is
346    * used to make it explicit (e.g. "ja" for large-to-small ordering and
347    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
348    * an address can be selected based on the language.
349    * The minimum permitted structural representation of an address consists
350    * of a region_code with all remaining information placed in the
351    * address_lines. It would be possible to format such an address very
352    * approximately without geocoding, but no semantic reasoning could be
353    * made about any of the address components until it was at least
354    * partially resolved.
355    * Creating an address only containing a region_code and address_lines, and
356    * then geocoding is the recommended way to handle completely unstructured
357    * addresses (as opposed to guessing which parts of the address should be
358    * localities or administrative areas).
359    * </pre>
360    *
361    * <code>repeated string address_lines = 9;</code>
362    *
363    * @param index The index of the element to return.
364    * @return The addressLines at the given index.
365    */
getAddressLines(int index)366   java.lang.String getAddressLines(int index);
367   /**
368    *
369    *
370    * <pre>
371    * Unstructured address lines describing the lower levels of an address.
372    * Because values in address_lines do not have type information and may
373    * sometimes contain multiple values in a single field (e.g.
374    * "Austin, TX"), it is important that the line order is clear. The order of
375    * address lines should be "envelope order" for the country/region of the
376    * address. In places where this can vary (e.g. Japan), address_language is
377    * used to make it explicit (e.g. "ja" for large-to-small ordering and
378    * "ja-Latn" or "en" for small-to-large). This way, the most specific line of
379    * an address can be selected based on the language.
380    * The minimum permitted structural representation of an address consists
381    * of a region_code with all remaining information placed in the
382    * address_lines. It would be possible to format such an address very
383    * approximately without geocoding, but no semantic reasoning could be
384    * made about any of the address components until it was at least
385    * partially resolved.
386    * Creating an address only containing a region_code and address_lines, and
387    * then geocoding is the recommended way to handle completely unstructured
388    * addresses (as opposed to guessing which parts of the address should be
389    * localities or administrative areas).
390    * </pre>
391    *
392    * <code>repeated string address_lines = 9;</code>
393    *
394    * @param index The index of the value to return.
395    * @return The bytes of the addressLines at the given index.
396    */
getAddressLinesBytes(int index)397   com.google.protobuf.ByteString getAddressLinesBytes(int index);
398 
399   /**
400    *
401    *
402    * <pre>
403    * Optional. The recipient at the address.
404    * This field may, under certain circumstances, contain multiline information.
405    * For example, it might contain "care of" information.
406    * </pre>
407    *
408    * <code>repeated string recipients = 10;</code>
409    *
410    * @return A list containing the recipients.
411    */
getRecipientsList()412   java.util.List<java.lang.String> getRecipientsList();
413   /**
414    *
415    *
416    * <pre>
417    * Optional. The recipient at the address.
418    * This field may, under certain circumstances, contain multiline information.
419    * For example, it might contain "care of" information.
420    * </pre>
421    *
422    * <code>repeated string recipients = 10;</code>
423    *
424    * @return The count of recipients.
425    */
getRecipientsCount()426   int getRecipientsCount();
427   /**
428    *
429    *
430    * <pre>
431    * Optional. The recipient at the address.
432    * This field may, under certain circumstances, contain multiline information.
433    * For example, it might contain "care of" information.
434    * </pre>
435    *
436    * <code>repeated string recipients = 10;</code>
437    *
438    * @param index The index of the element to return.
439    * @return The recipients at the given index.
440    */
getRecipients(int index)441   java.lang.String getRecipients(int index);
442   /**
443    *
444    *
445    * <pre>
446    * Optional. The recipient at the address.
447    * This field may, under certain circumstances, contain multiline information.
448    * For example, it might contain "care of" information.
449    * </pre>
450    *
451    * <code>repeated string recipients = 10;</code>
452    *
453    * @param index The index of the value to return.
454    * @return The bytes of the recipients at the given index.
455    */
getRecipientsBytes(int index)456   com.google.protobuf.ByteString getRecipientsBytes(int index);
457 
458   /**
459    *
460    *
461    * <pre>
462    * Optional. The name of the organization at the address.
463    * </pre>
464    *
465    * <code>string organization = 11;</code>
466    *
467    * @return The organization.
468    */
getOrganization()469   java.lang.String getOrganization();
470   /**
471    *
472    *
473    * <pre>
474    * Optional. The name of the organization at the address.
475    * </pre>
476    *
477    * <code>string organization = 11;</code>
478    *
479    * @return The bytes for organization.
480    */
getOrganizationBytes()481   com.google.protobuf.ByteString getOrganizationBytes();
482 }
483