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
Modifier and TypeMethodDescriptionThe ISO-3166-1 alpha-2 country code that is associated with the location.com.google.protobuf.ByteStringThe ISO-3166-1 alpha-2 country code that is associated with the location.getId()The location identifier.com.google.protobuf.ByteStringThe location identifier.The location's type.com.google.protobuf.ByteStringThe location's type.getName()The unique location name in English.com.google.protobuf.ByteStringThe unique location name in English.longThe parent country (not present if location is a country).booleanThe ISO-3166-1 alpha-2 country code that is associated with the location.booleanhasId()The location identifier.booleanThe location's type.booleanhasName()The unique location name in English.booleanThe parent country (not present if location is a country).Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasId
boolean hasId()The location identifier.
optional string id = 4;- Returns:
- Whether the id field is set.
-
getId
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
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.v18.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.v18.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
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
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.
-