Class LocationSet.Builder

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

public static final class LocationSet.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder> implements LocationSetOrBuilder
 Data related to location set. One of the Google Business Profile (previously
 known as Google My Business) data, Chain data, and map location data need to
 be specified.
 
Protobuf type google.ads.googleads.v18.common.LocationSet
  • 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<LocationSet.Builder>
    • clear

      public LocationSet.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<LocationSet.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<LocationSet.Builder>
    • getDefaultInstanceForType

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

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

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

      public LocationSet.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<LocationSet.Builder>
    • setField

      public LocationSet.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<LocationSet.Builder>
    • clearField

      public LocationSet.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<LocationSet.Builder>
    • clearOneof

      public LocationSet.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<LocationSet.Builder>
    • setRepeatedField

      public LocationSet.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<LocationSet.Builder>
    • addRepeatedField

      public LocationSet.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<LocationSet.Builder>
    • mergeFrom

      public LocationSet.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<LocationSet.Builder>
    • mergeFrom

      public LocationSet.Builder mergeFrom(LocationSet other)
    • isInitialized

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

      public LocationSet.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<LocationSet.Builder>
      Throws:
      IOException
    • getSourceCase

      public LocationSet.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface LocationSetOrBuilder
    • clearSource

      public LocationSet.Builder clearSource()
    • getLocationOwnershipTypeValue

      public int getLocationOwnershipTypeValue()
       Required. Immutable. Location Ownership Type (owned location or affiliate
       location).
       
      .google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getLocationOwnershipTypeValue in interface LocationSetOrBuilder
      Returns:
      The enum numeric value on the wire for locationOwnershipType.
    • setLocationOwnershipTypeValue

      public LocationSet.Builder setLocationOwnershipTypeValue(int value)
       Required. Immutable. Location Ownership Type (owned location or affiliate
       location).
       
      .google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for locationOwnershipType to set.
      Returns:
      This builder for chaining.
    • getLocationOwnershipType

      public LocationOwnershipTypeEnum.LocationOwnershipType getLocationOwnershipType()
       Required. Immutable. Location Ownership Type (owned location or affiliate
       location).
       
      .google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getLocationOwnershipType in interface LocationSetOrBuilder
      Returns:
      The locationOwnershipType.
    • setLocationOwnershipType

       Required. Immutable. Location Ownership Type (owned location or affiliate
       location).
       
      .google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The locationOwnershipType to set.
      Returns:
      This builder for chaining.
    • clearLocationOwnershipType

      public LocationSet.Builder clearLocationOwnershipType()
       Required. Immutable. Location Ownership Type (owned location or affiliate
       location).
       
      .google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • hasBusinessProfileLocationSet

      public boolean hasBusinessProfileLocationSet()
       Data used to configure a location set populated from Google Business
       Profile locations.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;
      Specified by:
      hasBusinessProfileLocationSet in interface LocationSetOrBuilder
      Returns:
      Whether the businessProfileLocationSet field is set.
    • getBusinessProfileLocationSet

      public BusinessProfileLocationSet getBusinessProfileLocationSet()
       Data used to configure a location set populated from Google Business
       Profile locations.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;
      Specified by:
      getBusinessProfileLocationSet in interface LocationSetOrBuilder
      Returns:
      The businessProfileLocationSet.
    • setBusinessProfileLocationSet

      public LocationSet.Builder setBusinessProfileLocationSet(BusinessProfileLocationSet value)
       Data used to configure a location set populated from Google Business
       Profile locations.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;
    • setBusinessProfileLocationSet

      public LocationSet.Builder setBusinessProfileLocationSet(BusinessProfileLocationSet.Builder builderForValue)
       Data used to configure a location set populated from Google Business
       Profile locations.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;
    • mergeBusinessProfileLocationSet

      public LocationSet.Builder mergeBusinessProfileLocationSet(BusinessProfileLocationSet value)
       Data used to configure a location set populated from Google Business
       Profile locations.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;
    • clearBusinessProfileLocationSet

      public LocationSet.Builder clearBusinessProfileLocationSet()
       Data used to configure a location set populated from Google Business
       Profile locations.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;
    • getBusinessProfileLocationSetBuilder

      public BusinessProfileLocationSet.Builder getBusinessProfileLocationSetBuilder()
       Data used to configure a location set populated from Google Business
       Profile locations.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;
    • getBusinessProfileLocationSetOrBuilder

      public BusinessProfileLocationSetOrBuilder getBusinessProfileLocationSetOrBuilder()
       Data used to configure a location set populated from Google Business
       Profile locations.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;
      Specified by:
      getBusinessProfileLocationSetOrBuilder in interface LocationSetOrBuilder
    • hasChainLocationSet

      public boolean hasChainLocationSet()
       Data used to configure a location on chain set populated with the
       specified chains.
       
      .google.ads.googleads.v18.common.ChainSet chain_location_set = 2;
      Specified by:
      hasChainLocationSet in interface LocationSetOrBuilder
      Returns:
      Whether the chainLocationSet field is set.
    • getChainLocationSet

      public ChainSet getChainLocationSet()
       Data used to configure a location on chain set populated with the
       specified chains.
       
      .google.ads.googleads.v18.common.ChainSet chain_location_set = 2;
      Specified by:
      getChainLocationSet in interface LocationSetOrBuilder
      Returns:
      The chainLocationSet.
    • setChainLocationSet

      public LocationSet.Builder setChainLocationSet(ChainSet value)
       Data used to configure a location on chain set populated with the
       specified chains.
       
      .google.ads.googleads.v18.common.ChainSet chain_location_set = 2;
    • setChainLocationSet

      public LocationSet.Builder setChainLocationSet(ChainSet.Builder builderForValue)
       Data used to configure a location on chain set populated with the
       specified chains.
       
      .google.ads.googleads.v18.common.ChainSet chain_location_set = 2;
    • mergeChainLocationSet

      public LocationSet.Builder mergeChainLocationSet(ChainSet value)
       Data used to configure a location on chain set populated with the
       specified chains.
       
      .google.ads.googleads.v18.common.ChainSet chain_location_set = 2;
    • clearChainLocationSet

      public LocationSet.Builder clearChainLocationSet()
       Data used to configure a location on chain set populated with the
       specified chains.
       
      .google.ads.googleads.v18.common.ChainSet chain_location_set = 2;
    • getChainLocationSetBuilder

      public ChainSet.Builder getChainLocationSetBuilder()
       Data used to configure a location on chain set populated with the
       specified chains.
       
      .google.ads.googleads.v18.common.ChainSet chain_location_set = 2;
    • getChainLocationSetOrBuilder

      public ChainSetOrBuilder getChainLocationSetOrBuilder()
       Data used to configure a location on chain set populated with the
       specified chains.
       
      .google.ads.googleads.v18.common.ChainSet chain_location_set = 2;
      Specified by:
      getChainLocationSetOrBuilder in interface LocationSetOrBuilder
    • hasMapsLocationSet

      public boolean hasMapsLocationSet()
       Only set if locations are synced based on selected maps locations
       
      .google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;
      Specified by:
      hasMapsLocationSet in interface LocationSetOrBuilder
      Returns:
      Whether the mapsLocationSet field is set.
    • getMapsLocationSet

      public MapsLocationSet getMapsLocationSet()
       Only set if locations are synced based on selected maps locations
       
      .google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;
      Specified by:
      getMapsLocationSet in interface LocationSetOrBuilder
      Returns:
      The mapsLocationSet.
    • setMapsLocationSet

      public LocationSet.Builder setMapsLocationSet(MapsLocationSet value)
       Only set if locations are synced based on selected maps locations
       
      .google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;
    • setMapsLocationSet

      public LocationSet.Builder setMapsLocationSet(MapsLocationSet.Builder builderForValue)
       Only set if locations are synced based on selected maps locations
       
      .google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;
    • mergeMapsLocationSet

      public LocationSet.Builder mergeMapsLocationSet(MapsLocationSet value)
       Only set if locations are synced based on selected maps locations
       
      .google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;
    • clearMapsLocationSet

      public LocationSet.Builder clearMapsLocationSet()
       Only set if locations are synced based on selected maps locations
       
      .google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;
    • getMapsLocationSetBuilder

      public MapsLocationSet.Builder getMapsLocationSetBuilder()
       Only set if locations are synced based on selected maps locations
       
      .google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;
    • getMapsLocationSetOrBuilder

      public MapsLocationSetOrBuilder getMapsLocationSetOrBuilder()
       Only set if locations are synced based on selected maps locations
       
      .google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;
      Specified by:
      getMapsLocationSetOrBuilder in interface LocationSetOrBuilder
    • setUnknownFields

      public final LocationSet.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<LocationSet.Builder>
    • mergeUnknownFields

      public final LocationSet.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<LocationSet.Builder>