GData.GDPostalAddress¶
- Subclasses:
None
Methods¶
- Inherited:
GData.Parsable (5), GObject.Object (37), GData.Comparable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.Comparable (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The postal address itself. |
||
r/w |
The agent who actually receives the mail. |
||
r/w |
Can be city, village, town, borough, etc. |
||
r |
The name of the country. |
||
r |
The ISO 3166-1 alpha-2 country code for the country. |
||
r/w |
Used in places where houses or buildings have names (and not numbers). |
||
r/w |
Indicates which postal address out of a group is primary. |
||
r/w |
A simple string value used to name this postal address. |
||
r/w |
Classes of mail accepted at this address. |
||
r/w |
This is used to disambiguate a street address. |
||
r/w |
Covers actual P.O. boxes, drawers, locked bags, etc. |
||
r/w |
Postal code. |
||
r/w |
A state, province, county, Land, departement, etc. |
||
r/w |
A programmatic value that identifies the type of postal address. |
||
r/w |
Can be street, avenue, road, etc. |
||
r/w |
Handles administrative districts such as U.S. or U.K. counties. |
||
r/w |
The context in which this address can be used. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.GDPostalAddress(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GDPostalAddress
structure are private and should never be accessed directly.New in version 0.2.0.
- classmethod new(relation_type, label, is_primary)¶
- Parameters:
- Returns:
a new
GData.GDPostalAddress
, orNone
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.GDPostalAddress
. More information is available in the GData specification.New in version 0.2.0.
- get_address()¶
-
Gets the
GData.GDPostalAddress
:address
property.New in version 0.4.0.
- get_agent()¶
-
Gets the
GData.GDPostalAddress
:agent
property.New in version 0.5.0.
- get_city()¶
-
Gets the
GData.GDPostalAddress
:city
property.New in version 0.5.0.
- get_country()¶
-
Gets the
GData.GDPostalAddress
:country
property.New in version 0.5.0.
- get_country_code()¶
-
Gets the
GData.GDPostalAddress
:country-code
property.New in version 0.5.0.
- get_house_name()¶
-
Gets the
GData.GDPostalAddress
:house-name
property.New in version 0.5.0.
- get_label()¶
-
Gets the
GData.GDPostalAddress
:label
property.New in version 0.4.0.
- get_mail_class()¶
-
Gets the
GData.GDPostalAddress
:mail-class
property.New in version 0.5.0.
- get_neighborhood()¶
-
Gets the
GData.GDPostalAddress
:neighborhood
property.New in version 0.5.0.
- get_po_box()¶
-
Gets the
GData.GDPostalAddress
:po-box
property.New in version 0.5.0.
- get_postcode()¶
-
Gets the
GData.GDPostalAddress
:postcode
property.New in version 0.5.0.
- get_region()¶
-
Gets the
GData.GDPostalAddress
:region
property.New in version 0.5.0.
- get_relation_type()¶
-
Gets the
GData.GDPostalAddress
:relation-type
property.New in version 0.4.0.
- get_street()¶
-
Gets the
GData.GDPostalAddress
:street
property.New in version 0.5.0.
- get_subregion()¶
-
Gets the
GData.GDPostalAddress
:subregion
property.New in version 0.5.0.
- get_usage()¶
-
Gets the
GData.GDPostalAddress
:usage
property.New in version 0.5.0.
- is_primary()¶
-
Gets the
GData.GDPostalAddress
:is-primary
property.New in version 0.4.0.
- set_address(address)¶
-
Sets the
GData.GDPostalAddress
:address
property to address.New in version 0.4.0.
- set_agent(agent)¶
-
Sets the
GData.GDPostalAddress
:agent
property to agent.Set agent to
None
to unset the property in the postal address.New in version 0.5.0.
- set_city(city)¶
-
Sets the
GData.GDPostalAddress
:city
property to city.Set city to
None
to unset the property in the postal address.New in version 0.5.0.
- set_country(country, country_code)¶
- Parameters:
Sets the
GData.GDPostalAddress
:country
property to country, andGData.GDPostalAddress
:country-code
to country_code.Set country or country_code to
None
to unset the relevant property in the postal address. If a country_code is provided, a country must also be provided.New in version 0.5.0.
- set_house_name(house_name)¶
-
Sets the
GData.GDPostalAddress
:house-name
property to house_name.Set house_name to
None
to unset the property in the postal address.New in version 0.5.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GDPostalAddress
:is-primary
property to is_primary.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.GDPostalAddress
:label
property to label.Set label to
None
to unset the property in the postal address.New in version 0.4.0.
- set_mail_class(mail_class)¶
-
Sets the
GData.GDPostalAddress
:mail-class
property to mail_class.Set mail_class to
None
to unset the property in the postal address.New in version 0.5.0.
- set_neighborhood(neighborhood)¶
-
Sets the
GData.GDPostalAddress
:neighborhood
property to neighborhood.Set neighborhood to
None
to unset the property in the postal address.New in version 0.5.0.
- set_po_box(po_box)¶
-
Sets the
GData.GDPostalAddress
:po-box
property to po_box.Set po_box to
None
to unset the property in the postal address.New in version 0.5.0.
- set_postcode(postcode)¶
-
Sets the
GData.GDPostalAddress
:postcode
property to postcode.Set postcode to
None
to unset the property in the postal address.New in version 0.5.0.
- set_region(region)¶
-
Sets the
GData.GDPostalAddress
:region
property to region.Set region to
None
to unset the property in the postal address.New in version 0.5.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GDPostalAddress
:relation-type
property to relation_type.Set relation_type to
None
to unset the property in the postal address.New in version 0.4.0.
- set_street(street)¶
-
Sets the
GData.GDPostalAddress
:street
property to street.Set street to
None
to unset the property in the postal address.New in version 0.5.0.
- set_subregion(subregion)¶
-
Sets the
GData.GDPostalAddress
:subregion
property to subregion.Set subregion to
None
to unset the property in the postal address.New in version 0.5.0.
Property Details¶
- GData.GDPostalAddress.props.address¶
-
The postal address itself, formatted and unstructured. It is preferred to use the other, structured properties rather than this one.
For more information, see the
New in version 0.4.0.
- GData.GDPostalAddress.props.agent¶
-
The agent who actually receives the mail. Used in work addresses. Also for “in care of” or “c/o”.
For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.city¶
-
Can be city, village, town, borough, etc. This is the postal town and not necessarily the place of residence or place of business.
For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.country¶
-
The name of the country. Since this is paired with
GData.GDPostalAddress
:country-code
, they must both be set withGData.GDPostalAddress.set_country
().For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.country_code¶
-
The ISO 3166-1 alpha-2 country code for the country in
GData.GDPostalAddress
:country
. Since this is paired withGData.GDPostalAddress
:country
, they must both be set withGData.GDPostalAddress.set_country
().For more information, see the
GData specification or ISO 3166-1 alpha-2.
New in version 0.5.0.
- GData.GDPostalAddress.props.house_name¶
-
Used in places where houses or buildings have names (and not necessarily numbers).
For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.is_primary¶
-
Indicates which postal address out of a group is primary.
For more information, see the
New in version 0.4.0.
- GData.GDPostalAddress.props.label¶
-
A simple string value used to name this postal address. It allows UIs to display a label such as “Work”, “Personal”, “Preferred”, etc.
For more information, see the
New in version 0.4.0.
- GData.GDPostalAddress.props.mail_class¶
- Name:
mail-class
- Type:
- Default Value:
'http://schemas.google.com/g/2005#both'
- Flags:
Classes of mail accepted at this address. For example:
GData.GD_MAIL_CLASS_LETTERS
orGData.GD_MAIL_CLASS_BOTH
.For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.neighborhood¶
-
This is used to disambiguate a street address when a city contains more than one street with the same name, or to specify a small place whose mail is routed through a larger postal town. In China it could be a county or a minor city.
For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.po_box¶
-
Covers actual P.O. boxes, drawers, locked bags, etc. This is usually but not always mutually exclusive with
GData.GDPostalAddress
:street
.For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.postcode¶
-
Postal code. Usually country-wide, but sometimes specific to the city (e.g. “2” in “Dublin 2, Ireland” addresses).
For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.region¶
-
A state, province, county (in Ireland), Land (in Germany), departement (in France), etc.
For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.relation_type¶
- Name:
relation-type
- Type:
- Default Value:
'http://schemas.google.com/g/2005#work'
- Flags:
A programmatic value that identifies the type of postal address. For example:
GData.GD_POSTAL_ADDRESS_WORK
orGData.GD_POSTAL_ADDRESS_OTHER
.For more information, see the
New in version 0.4.0.
- GData.GDPostalAddress.props.street¶
-
Can be street, avenue, road, etc. This element also includes the house number and room/apartment/flat/floor number.
For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.subregion¶
-
Handles administrative districts such as U.S. or U.K. counties that are not used for mail addressing purposes. Subregion is not intended for delivery addresses.
For more information, see the
New in version 0.5.0.
- GData.GDPostalAddress.props.usage¶
- Name:
usage
- Type:
- Default Value:
'http://schemas.google.com/g/2005#general'
- Flags:
The context in which this address can be used. For example:
GData.GD_ADDRESS_USAGE_GENERAL
orGData.GD_ADDRESS_USAGE_LOCAL
.For more information, see the
New in version 0.5.0.