Class PlannableLocation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.services.PlannableLocation
All Implemented Interfaces:
PlannableLocationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class PlannableLocation extends com.google.protobuf.GeneratedMessageV3 implements PlannableLocationOrBuilder
 A plannable location: country, metro region, province, etc.
 
Protobuf type google.ads.googleads.v18.services.PlannableLocation
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A plannable location: country, metro region, province, etc.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The ISO-3166-1 alpha-2 country code that is associated with the location.
    com.google.protobuf.ByteString
    The ISO-3166-1 alpha-2 country code that is associated with the location.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    The location identifier.
    com.google.protobuf.ByteString
    The location identifier.
    The location's type.
    com.google.protobuf.ByteString
    The location's type.
    The unique location name in English.
    com.google.protobuf.ByteString
    The unique location name in English.
    long
    The parent country (not present if location is a country).
    com.google.protobuf.Parser<PlannableLocation>
     
    int
     
    boolean
    The ISO-3166-1 alpha-2 country code that is associated with the location.
    int
     
    boolean
    The location identifier.
    boolean
    The location's type.
    boolean
    The unique location name in English.
    boolean
    The parent country (not present if location is a country).
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<PlannableLocation>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • PARENT_COUNTRY_ID_FIELD_NUMBER

      public static final int PARENT_COUNTRY_ID_FIELD_NUMBER
      See Also:
    • COUNTRY_CODE_FIELD_NUMBER

      public static final int COUNTRY_CODE_FIELD_NUMBER
      See Also:
    • LOCATION_TYPE_FIELD_NUMBER

      public static final int LOCATION_TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasId

      public boolean hasId()
       The location identifier.
       
      optional string id = 4;
      Specified by:
      hasId in interface PlannableLocationOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       The location identifier.
       
      optional string id = 4;
      Specified by:
      getId in interface PlannableLocationOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The location identifier.
       
      optional string id = 4;
      Specified by:
      getIdBytes in interface PlannableLocationOrBuilder
      Returns:
      The bytes for id.
    • hasName

      public boolean hasName()
       The unique location name in English.
       
      optional string name = 5;
      Specified by:
      hasName in interface PlannableLocationOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The unique location name in English.
       
      optional string name = 5;
      Specified by:
      getName in interface PlannableLocationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The unique location name in English.
       
      optional string name = 5;
      Specified by:
      getNameBytes in interface PlannableLocationOrBuilder
      Returns:
      The bytes for name.
    • hasParentCountryId

      public 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;
      Specified by:
      hasParentCountryId in interface PlannableLocationOrBuilder
      Returns:
      Whether the parentCountryId field is set.
    • getParentCountryId

      public 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;
      Specified by:
      getParentCountryId in interface PlannableLocationOrBuilder
      Returns:
      The parentCountryId.
    • hasCountryCode

      public boolean hasCountryCode()
       The ISO-3166-1 alpha-2 country code that is associated with the location.
       
      optional string country_code = 7;
      Specified by:
      hasCountryCode in interface PlannableLocationOrBuilder
      Returns:
      Whether the countryCode field is set.
    • getCountryCode

      public String getCountryCode()
       The ISO-3166-1 alpha-2 country code that is associated with the location.
       
      optional string country_code = 7;
      Specified by:
      getCountryCode in interface PlannableLocationOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       The ISO-3166-1 alpha-2 country code that is associated with the location.
       
      optional string country_code = 7;
      Specified by:
      getCountryCodeBytes in interface PlannableLocationOrBuilder
      Returns:
      The bytes for countryCode.
    • hasLocationType

      public 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;
      Specified by:
      hasLocationType in interface PlannableLocationOrBuilder
      Returns:
      Whether the locationType field is set.
    • getLocationType

      public 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;
      Specified by:
      getLocationType in interface PlannableLocationOrBuilder
      Returns:
      The locationType.
    • getLocationTypeBytes

      public 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;
      Specified by:
      getLocationTypeBytes in interface PlannableLocationOrBuilder
      Returns:
      The bytes for locationType.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PlannableLocation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PlannableLocation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PlannableLocation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PlannableLocation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PlannableLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PlannableLocation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PlannableLocation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PlannableLocation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PlannableLocation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PlannableLocation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PlannableLocation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PlannableLocation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public PlannableLocation.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PlannableLocation.Builder newBuilder()
    • newBuilder

      public static PlannableLocation.Builder newBuilder(PlannableLocation prototype)
    • toBuilder

      public PlannableLocation.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PlannableLocation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static PlannableLocation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PlannableLocation> parser()
    • getParserForType

      public com.google.protobuf.Parser<PlannableLocation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public PlannableLocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder