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.GDPostalAddressstructure 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:addressproperty.New in version 0.4.0.
- get_agent()¶
-
Gets the
GData.GDPostalAddress:agentproperty.New in version 0.5.0.
- get_city()¶
-
Gets the
GData.GDPostalAddress:cityproperty.New in version 0.5.0.
- get_country()¶
-
Gets the
GData.GDPostalAddress:countryproperty.New in version 0.5.0.
- get_country_code()¶
-
Gets the
GData.GDPostalAddress:country-codeproperty.New in version 0.5.0.
- get_house_name()¶
-
Gets the
GData.GDPostalAddress:house-nameproperty.New in version 0.5.0.
- get_label()¶
-
Gets the
GData.GDPostalAddress:labelproperty.New in version 0.4.0.
- get_mail_class()¶
-
Gets the
GData.GDPostalAddress:mail-classproperty.New in version 0.5.0.
- get_neighborhood()¶
-
Gets the
GData.GDPostalAddress:neighborhoodproperty.New in version 0.5.0.
- get_po_box()¶
-
Gets the
GData.GDPostalAddress:po-boxproperty.New in version 0.5.0.
- get_postcode()¶
-
Gets the
GData.GDPostalAddress:postcodeproperty.New in version 0.5.0.
- get_region()¶
-
Gets the
GData.GDPostalAddress:regionproperty.New in version 0.5.0.
- get_relation_type()¶
-
Gets the
GData.GDPostalAddress:relation-typeproperty.New in version 0.4.0.
- get_street()¶
-
Gets the
GData.GDPostalAddress:streetproperty.New in version 0.5.0.
- get_subregion()¶
-
Gets the
GData.GDPostalAddress:subregionproperty.New in version 0.5.0.
- get_usage()¶
-
Gets the
GData.GDPostalAddress:usageproperty.New in version 0.5.0.
- is_primary()¶
-
Gets the
GData.GDPostalAddress:is-primaryproperty.New in version 0.4.0.
- set_address(address)¶
-
Sets the
GData.GDPostalAddress:addressproperty to address.New in version 0.4.0.
- set_agent(agent)¶
-
Sets the
GData.GDPostalAddress:agentproperty to agent.Set agent to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_city(city)¶
-
Sets the
GData.GDPostalAddress:cityproperty to city.Set city to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_country(country, country_code)¶
- Parameters:
Sets the
GData.GDPostalAddress:countryproperty to country, andGData.GDPostalAddress:country-codeto country_code.Set country or country_code to
Noneto 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-nameproperty to house_name.Set house_name to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GDPostalAddress:is-primaryproperty to is_primary.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.GDPostalAddress:labelproperty to label.Set label to
Noneto unset the property in the postal address.New in version 0.4.0.
- set_mail_class(mail_class)¶
-
Sets the
GData.GDPostalAddress:mail-classproperty to mail_class.Set mail_class to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_neighborhood(neighborhood)¶
-
Sets the
GData.GDPostalAddress:neighborhoodproperty to neighborhood.Set neighborhood to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_po_box(po_box)¶
-
Sets the
GData.GDPostalAddress:po-boxproperty to po_box.Set po_box to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_postcode(postcode)¶
-
Sets the
GData.GDPostalAddress:postcodeproperty to postcode.Set postcode to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_region(region)¶
-
Sets the
GData.GDPostalAddress:regionproperty to region.Set region to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GDPostalAddress:relation-typeproperty to relation_type.Set relation_type to
Noneto unset the property in the postal address.New in version 0.4.0.
- set_street(street)¶
-
Sets the
GData.GDPostalAddress:streetproperty to street.Set street to
Noneto unset the property in the postal address.New in version 0.5.0.
- set_subregion(subregion)¶
-
Sets the
GData.GDPostalAddress:subregionproperty to subregion.Set subregion to
Noneto 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_LETTERSorGData.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_WORKorGData.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_GENERALorGData.GD_ADDRESS_USAGE_LOCAL.For more information, see the
New in version 0.5.0.