Class PlannableLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
com.google.ads.googleads.v18.services.PlannableLocation.Builder
All Implemented Interfaces:
PlannableLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PlannableLocation

public static final class PlannableLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder> implements PlannableLocationOrBuilder
 A plannable location: country, metro region, province, etc.
 
Protobuf type google.ads.googleads.v18.services.PlannableLocation
  • Method Details

    • 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.Builder<PlannableLocation.Builder>
    • clear

      public PlannableLocation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • getDefaultInstanceForType

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

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

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

      public PlannableLocation.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • setField

      public PlannableLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • clearField

      public PlannableLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • clearOneof

      public PlannableLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • setRepeatedField

      public PlannableLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • addRepeatedField

      public PlannableLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • mergeFrom

      public PlannableLocation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PlannableLocation.Builder>
    • mergeFrom

      public PlannableLocation.Builder mergeFrom(PlannableLocation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • mergeFrom

      public PlannableLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PlannableLocation.Builder>
      Throws:
      IOException
    • 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.
    • setId

      public PlannableLocation.Builder setId(String value)
       The location identifier.
       
      optional string id = 4;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public PlannableLocation.Builder clearId()
       The location identifier.
       
      optional string id = 4;
      Returns:
      This builder for chaining.
    • setIdBytes

      public PlannableLocation.Builder setIdBytes(com.google.protobuf.ByteString value)
       The location identifier.
       
      optional string id = 4;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • 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.
    • setName

      public PlannableLocation.Builder setName(String value)
       The unique location name in English.
       
      optional string name = 5;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PlannableLocation.Builder clearName()
       The unique location name in English.
       
      optional string name = 5;
      Returns:
      This builder for chaining.
    • setNameBytes

      public PlannableLocation.Builder setNameBytes(com.google.protobuf.ByteString value)
       The unique location name in English.
       
      optional string name = 5;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setParentCountryId

      public PlannableLocation.Builder setParentCountryId(long value)
       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;
      Parameters:
      value - The parentCountryId to set.
      Returns:
      This builder for chaining.
    • clearParentCountryId

      public PlannableLocation.Builder clearParentCountryId()
       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:
      This builder for chaining.
    • 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.
    • setCountryCode

      public PlannableLocation.Builder setCountryCode(String value)
       The ISO-3166-1 alpha-2 country code that is associated with the location.
       
      optional string country_code = 7;
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

      public PlannableLocation.Builder clearCountryCode()
       The ISO-3166-1 alpha-2 country code that is associated with the location.
       
      optional string country_code = 7;
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public PlannableLocation.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       The ISO-3166-1 alpha-2 country code that is associated with the location.
       
      optional string country_code = 7;
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • 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.
    • setLocationType

      public PlannableLocation.Builder setLocationType(String value)
       The location's type. Location types correspond to target_type returned by
       searching location type in GoogleAdsService.Search/SearchStream.
       
      optional string location_type = 8;
      Parameters:
      value - The locationType to set.
      Returns:
      This builder for chaining.
    • clearLocationType

      public PlannableLocation.Builder clearLocationType()
       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:
      This builder for chaining.
    • setLocationTypeBytes

      public PlannableLocation.Builder setLocationTypeBytes(com.google.protobuf.ByteString value)
       The location's type. Location types correspond to target_type returned by
       searching location type in GoogleAdsService.Search/SearchStream.
       
      optional string location_type = 8;
      Parameters:
      value - The bytes for locationType to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final PlannableLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
    • mergeUnknownFields

      public final PlannableLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>