Class LocationGroupInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.common.LocationGroupInfo
All Implemented Interfaces:
LocationGroupInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class LocationGroupInfo extends com.google.protobuf.GeneratedMessageV3 implements LocationGroupInfoOrBuilder
 A radius around a list of locations specified through a feed or assetSet.
 
Protobuf type google.ads.googleads.v18.common.LocationGroupInfo
See Also:
  • Field Details

    • FEED_FIELD_NUMBER

      public static final int FEED_FIELD_NUMBER
      See Also:
    • GEO_TARGET_CONSTANTS_FIELD_NUMBER

      public static final int GEO_TARGET_CONSTANTS_FIELD_NUMBER
      See Also:
    • RADIUS_FIELD_NUMBER

      public static final int RADIUS_FIELD_NUMBER
      See Also:
    • RADIUS_UNITS_FIELD_NUMBER

      public static final int RADIUS_UNITS_FIELD_NUMBER
      See Also:
    • FEED_ITEM_SETS_FIELD_NUMBER

      public static final int FEED_ITEM_SETS_FIELD_NUMBER
      See Also:
    • ENABLE_CUSTOMER_LEVEL_LOCATION_ASSET_SET_FIELD_NUMBER

      public static final int ENABLE_CUSTOMER_LEVEL_LOCATION_ASSET_SET_FIELD_NUMBER
      See Also:
    • LOCATION_GROUP_ASSET_SETS_FIELD_NUMBER

      public static final int LOCATION_GROUP_ASSET_SETS_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
    • hasFeed

      public boolean hasFeed()
       Feed specifying locations for targeting. Cannot be set with AssetSet
       fields. This is required and must be set in CREATE operations.
       
      optional string feed = 5;
      Specified by:
      hasFeed in interface LocationGroupInfoOrBuilder
      Returns:
      Whether the feed field is set.
    • getFeed

      public String getFeed()
       Feed specifying locations for targeting. Cannot be set with AssetSet
       fields. This is required and must be set in CREATE operations.
       
      optional string feed = 5;
      Specified by:
      getFeed in interface LocationGroupInfoOrBuilder
      Returns:
      The feed.
    • getFeedBytes

      public com.google.protobuf.ByteString getFeedBytes()
       Feed specifying locations for targeting. Cannot be set with AssetSet
       fields. This is required and must be set in CREATE operations.
       
      optional string feed = 5;
      Specified by:
      getFeedBytes in interface LocationGroupInfoOrBuilder
      Returns:
      The bytes for feed.
    • getGeoTargetConstantsList

      public com.google.protobuf.ProtocolStringList getGeoTargetConstantsList()
       Geo target constant(s) restricting the scope of the geographic area within
       the feed. Currently only one geo target constant is allowed. Cannot be set
       with AssetSet fields.
       
      repeated string geo_target_constants = 6;
      Specified by:
      getGeoTargetConstantsList in interface LocationGroupInfoOrBuilder
      Returns:
      A list containing the geoTargetConstants.
    • getGeoTargetConstantsCount

      public int getGeoTargetConstantsCount()
       Geo target constant(s) restricting the scope of the geographic area within
       the feed. Currently only one geo target constant is allowed. Cannot be set
       with AssetSet fields.
       
      repeated string geo_target_constants = 6;
      Specified by:
      getGeoTargetConstantsCount in interface LocationGroupInfoOrBuilder
      Returns:
      The count of geoTargetConstants.
    • getGeoTargetConstants

      public String getGeoTargetConstants(int index)
       Geo target constant(s) restricting the scope of the geographic area within
       the feed. Currently only one geo target constant is allowed. Cannot be set
       with AssetSet fields.
       
      repeated string geo_target_constants = 6;
      Specified by:
      getGeoTargetConstants in interface LocationGroupInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The geoTargetConstants at the given index.
    • getGeoTargetConstantsBytes

      public com.google.protobuf.ByteString getGeoTargetConstantsBytes(int index)
       Geo target constant(s) restricting the scope of the geographic area within
       the feed. Currently only one geo target constant is allowed. Cannot be set
       with AssetSet fields.
       
      repeated string geo_target_constants = 6;
      Specified by:
      getGeoTargetConstantsBytes in interface LocationGroupInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the geoTargetConstants at the given index.
    • hasRadius

      public boolean hasRadius()
       Distance in units specifying the radius around targeted locations.
       This is required and must be set in CREATE operations.
       
      optional int64 radius = 7;
      Specified by:
      hasRadius in interface LocationGroupInfoOrBuilder
      Returns:
      Whether the radius field is set.
    • getRadius

      public long getRadius()
       Distance in units specifying the radius around targeted locations.
       This is required and must be set in CREATE operations.
       
      optional int64 radius = 7;
      Specified by:
      getRadius in interface LocationGroupInfoOrBuilder
      Returns:
      The radius.
    • getRadiusUnitsValue

      public int getRadiusUnitsValue()
       Unit of the radius. Miles and meters are supported for geo target
       constants. Milli miles and meters are supported for feed item sets and
       asset sets. This is required and must be set in CREATE operations.
       
      .google.ads.googleads.v18.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
      Specified by:
      getRadiusUnitsValue in interface LocationGroupInfoOrBuilder
      Returns:
      The enum numeric value on the wire for radiusUnits.
    • getRadiusUnits

       Unit of the radius. Miles and meters are supported for geo target
       constants. Milli miles and meters are supported for feed item sets and
       asset sets. This is required and must be set in CREATE operations.
       
      .google.ads.googleads.v18.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
      Specified by:
      getRadiusUnits in interface LocationGroupInfoOrBuilder
      Returns:
      The radiusUnits.
    • getFeedItemSetsList

      public com.google.protobuf.ProtocolStringList getFeedItemSetsList()
       FeedItemSets whose FeedItems are targeted. If multiple IDs are specified,
       then all items that appear in at least one set are targeted. This field
       cannot be used with geo_target_constants. This is optional and can only be
       set in CREATE operations. Cannot be set with AssetSet fields.
       
      repeated string feed_item_sets = 8;
      Specified by:
      getFeedItemSetsList in interface LocationGroupInfoOrBuilder
      Returns:
      A list containing the feedItemSets.
    • getFeedItemSetsCount

      public int getFeedItemSetsCount()
       FeedItemSets whose FeedItems are targeted. If multiple IDs are specified,
       then all items that appear in at least one set are targeted. This field
       cannot be used with geo_target_constants. This is optional and can only be
       set in CREATE operations. Cannot be set with AssetSet fields.
       
      repeated string feed_item_sets = 8;
      Specified by:
      getFeedItemSetsCount in interface LocationGroupInfoOrBuilder
      Returns:
      The count of feedItemSets.
    • getFeedItemSets

      public String getFeedItemSets(int index)
       FeedItemSets whose FeedItems are targeted. If multiple IDs are specified,
       then all items that appear in at least one set are targeted. This field
       cannot be used with geo_target_constants. This is optional and can only be
       set in CREATE operations. Cannot be set with AssetSet fields.
       
      repeated string feed_item_sets = 8;
      Specified by:
      getFeedItemSets in interface LocationGroupInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The feedItemSets at the given index.
    • getFeedItemSetsBytes

      public com.google.protobuf.ByteString getFeedItemSetsBytes(int index)
       FeedItemSets whose FeedItems are targeted. If multiple IDs are specified,
       then all items that appear in at least one set are targeted. This field
       cannot be used with geo_target_constants. This is optional and can only be
       set in CREATE operations. Cannot be set with AssetSet fields.
       
      repeated string feed_item_sets = 8;
      Specified by:
      getFeedItemSetsBytes in interface LocationGroupInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the feedItemSets at the given index.
    • hasEnableCustomerLevelLocationAssetSet

      public boolean hasEnableCustomerLevelLocationAssetSet()
       Denotes that the latest customer level asset set is used for targeting.
       Used with radius and radius_units. Cannot be used with
       feed, geo target constants or feed item sets. When using asset sets, either
       this field or location_group_asset_sets should be specified. Both cannot be
       used at the same time. This can only be set in CREATE operations.
       
      optional bool enable_customer_level_location_asset_set = 9;
      Specified by:
      hasEnableCustomerLevelLocationAssetSet in interface LocationGroupInfoOrBuilder
      Returns:
      Whether the enableCustomerLevelLocationAssetSet field is set.
    • getEnableCustomerLevelLocationAssetSet

      public boolean getEnableCustomerLevelLocationAssetSet()
       Denotes that the latest customer level asset set is used for targeting.
       Used with radius and radius_units. Cannot be used with
       feed, geo target constants or feed item sets. When using asset sets, either
       this field or location_group_asset_sets should be specified. Both cannot be
       used at the same time. This can only be set in CREATE operations.
       
      optional bool enable_customer_level_location_asset_set = 9;
      Specified by:
      getEnableCustomerLevelLocationAssetSet in interface LocationGroupInfoOrBuilder
      Returns:
      The enableCustomerLevelLocationAssetSet.
    • getLocationGroupAssetSetsList

      public com.google.protobuf.ProtocolStringList getLocationGroupAssetSetsList()
       AssetSets whose Assets are targeted. If multiple IDs are specified, then
       all items that appear in at least one set are targeted. This field cannot
       be used with feed, geo target constants or feed item sets. When using asset
       sets, either this field or enable_customer_level_location_asset_set should
       be specified. Both cannot be used at the same time. This can only be set
       in CREATE operations.
       
      repeated string location_group_asset_sets = 10;
      Specified by:
      getLocationGroupAssetSetsList in interface LocationGroupInfoOrBuilder
      Returns:
      A list containing the locationGroupAssetSets.
    • getLocationGroupAssetSetsCount

      public int getLocationGroupAssetSetsCount()
       AssetSets whose Assets are targeted. If multiple IDs are specified, then
       all items that appear in at least one set are targeted. This field cannot
       be used with feed, geo target constants or feed item sets. When using asset
       sets, either this field or enable_customer_level_location_asset_set should
       be specified. Both cannot be used at the same time. This can only be set
       in CREATE operations.
       
      repeated string location_group_asset_sets = 10;
      Specified by:
      getLocationGroupAssetSetsCount in interface LocationGroupInfoOrBuilder
      Returns:
      The count of locationGroupAssetSets.
    • getLocationGroupAssetSets

      public String getLocationGroupAssetSets(int index)
       AssetSets whose Assets are targeted. If multiple IDs are specified, then
       all items that appear in at least one set are targeted. This field cannot
       be used with feed, geo target constants or feed item sets. When using asset
       sets, either this field or enable_customer_level_location_asset_set should
       be specified. Both cannot be used at the same time. This can only be set
       in CREATE operations.
       
      repeated string location_group_asset_sets = 10;
      Specified by:
      getLocationGroupAssetSets in interface LocationGroupInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The locationGroupAssetSets at the given index.
    • getLocationGroupAssetSetsBytes

      public com.google.protobuf.ByteString getLocationGroupAssetSetsBytes(int index)
       AssetSets whose Assets are targeted. If multiple IDs are specified, then
       all items that appear in at least one set are targeted. This field cannot
       be used with feed, geo target constants or feed item sets. When using asset
       sets, either this field or enable_customer_level_location_asset_set should
       be specified. Both cannot be used at the same time. This can only be set
       in CREATE operations.
       
      repeated string location_group_asset_sets = 10;
      Specified by:
      getLocationGroupAssetSetsBytes in interface LocationGroupInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the locationGroupAssetSets at the given index.
    • 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 LocationGroupInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static LocationGroupInfo.Builder newBuilder()
    • newBuilder

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

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

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

      public static LocationGroupInfo getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<LocationGroupInfo> 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 LocationGroupInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder