Interface PlannableLocationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PlannableLocation,PlannableLocation.Builder
public interface PlannableLocationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCountryCode()The ISO-3166-1 alpha-2 country code that is associated with the location.com.google.protobuf.ByteStringgetCountryCodeBytes()The ISO-3166-1 alpha-2 country code that is associated with the location.java.lang.StringgetId()The location identifier.com.google.protobuf.ByteStringgetIdBytes()The location identifier.java.lang.StringgetLocationType()The location's type.com.google.protobuf.ByteStringgetLocationTypeBytes()The location's type.java.lang.StringgetName()The unique location name in english.com.google.protobuf.ByteStringgetNameBytes()The unique location name in english.longgetParentCountryId()The parent country, not present if location is a country.booleanhasCountryCode()The ISO-3166-1 alpha-2 country code that is associated with the location.booleanhasId()The location identifier.booleanhasLocationType()The location's type.booleanhasName()The unique location name in english.booleanhasParentCountryId()The parent country, not present if location is a country.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasId
boolean hasId()
The location identifier.
optional string id = 4;- Returns:
- Whether the id field is set.
-
getId
java.lang.String getId()
The location identifier.
optional string id = 4;- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
The location identifier.
optional string id = 4;- Returns:
- The bytes for id.
-
hasName
boolean hasName()
The unique location name in english.
optional string name = 5;- Returns:
- Whether the name field is set.
-
getName
java.lang.String getName()
The unique location name in english.
optional string name = 5;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The unique location name in english.
optional string name = 5;- Returns:
- The bytes for name.
-
hasParentCountryId
boolean hasParentCountryId()
The parent country, not present if location is a country. If present will always be a GeoTargetConstant ID. Additional information, such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations] or [GoogleAdsService.Search/SearchStream][].
optional int64 parent_country_id = 6;- Returns:
- Whether the parentCountryId field is set.
-
getParentCountryId
long getParentCountryId()
The parent country, not present if location is a country. If present will always be a GeoTargetConstant ID. Additional information, such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations] or [GoogleAdsService.Search/SearchStream][].
optional int64 parent_country_id = 6;- Returns:
- The parentCountryId.
-
hasCountryCode
boolean hasCountryCode()
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Returns:
- Whether the countryCode field is set.
-
getCountryCode
java.lang.String getCountryCode()
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Returns:
- The countryCode.
-
getCountryCodeBytes
com.google.protobuf.ByteString getCountryCodeBytes()
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Returns:
- The bytes for countryCode.
-
hasLocationType
boolean hasLocationType()
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Returns:
- Whether the locationType field is set.
-
getLocationType
java.lang.String getLocationType()
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Returns:
- The locationType.
-
getLocationTypeBytes
com.google.protobuf.ByteString getLocationTypeBytes()
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Returns:
- The bytes for locationType.
-
-