Class LocationGroupInfo.Builder

  • All Implemented Interfaces:
    LocationGroupInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    LocationGroupInfo

    public static final class LocationGroupInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LocationGroupInfo.Builder>
    implements LocationGroupInfoOrBuilder
     A radius around a list of locations specified via a feed.
     
    Protobuf type google.ads.googleads.v10.common.LocationGroupInfo
    • Method Detail

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

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

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

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

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

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

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

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

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

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

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

        public LocationGroupInfo.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<LocationGroupInfo.Builder>
      • isInitialized

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

        public LocationGroupInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.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<LocationGroupInfo.Builder>
        Throws:
        java.io.IOException
      • hasFeed

        public boolean hasFeed()
         Feed specifying locations for targeting.
         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 java.lang.String getFeed()
         Feed specifying locations for targeting.
         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.
         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.
      • setFeed

        public LocationGroupInfo.Builder setFeed​(java.lang.String value)
         Feed specifying locations for targeting.
         This is required and must be set in CREATE operations.
         
        optional string feed = 5;
        Parameters:
        value - The feed to set.
        Returns:
        This builder for chaining.
      • clearFeed

        public LocationGroupInfo.Builder clearFeed()
         Feed specifying locations for targeting.
         This is required and must be set in CREATE operations.
         
        optional string feed = 5;
        Returns:
        This builder for chaining.
      • setFeedBytes

        public LocationGroupInfo.Builder setFeedBytes​(com.google.protobuf.ByteString value)
         Feed specifying locations for targeting.
         This is required and must be set in CREATE operations.
         
        optional string feed = 5;
        Parameters:
        value - The bytes for feed to set.
        Returns:
        This builder for chaining.
      • 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.
         
        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.
         
        repeated string geo_target_constants = 6;
        Specified by:
        getGeoTargetConstantsCount in interface LocationGroupInfoOrBuilder
        Returns:
        The count of geoTargetConstants.
      • getGeoTargetConstants

        public java.lang.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.
         
        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.
         
        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.
      • setGeoTargetConstants

        public LocationGroupInfo.Builder setGeoTargetConstants​(int index,
                                                               java.lang.String value)
         Geo target constant(s) restricting the scope of the geographic area within
         the feed. Currently only one geo target constant is allowed.
         
        repeated string geo_target_constants = 6;
        Parameters:
        index - The index to set the value at.
        value - The geoTargetConstants to set.
        Returns:
        This builder for chaining.
      • addGeoTargetConstants

        public LocationGroupInfo.Builder addGeoTargetConstants​(java.lang.String value)
         Geo target constant(s) restricting the scope of the geographic area within
         the feed. Currently only one geo target constant is allowed.
         
        repeated string geo_target_constants = 6;
        Parameters:
        value - The geoTargetConstants to add.
        Returns:
        This builder for chaining.
      • addAllGeoTargetConstants

        public LocationGroupInfo.Builder addAllGeoTargetConstants​(java.lang.Iterable<java.lang.String> values)
         Geo target constant(s) restricting the scope of the geographic area within
         the feed. Currently only one geo target constant is allowed.
         
        repeated string geo_target_constants = 6;
        Parameters:
        values - The geoTargetConstants to add.
        Returns:
        This builder for chaining.
      • clearGeoTargetConstants

        public LocationGroupInfo.Builder clearGeoTargetConstants()
         Geo target constant(s) restricting the scope of the geographic area within
         the feed. Currently only one geo target constant is allowed.
         
        repeated string geo_target_constants = 6;
        Returns:
        This builder for chaining.
      • addGeoTargetConstantsBytes

        public LocationGroupInfo.Builder addGeoTargetConstantsBytes​(com.google.protobuf.ByteString value)
         Geo target constant(s) restricting the scope of the geographic area within
         the feed. Currently only one geo target constant is allowed.
         
        repeated string geo_target_constants = 6;
        Parameters:
        value - The bytes of the geoTargetConstants to add.
        Returns:
        This builder for chaining.
      • 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.
      • setRadius

        public LocationGroupInfo.Builder setRadius​(long value)
         Distance in units specifying the radius around targeted locations.
         This is required and must be set in CREATE operations.
         
        optional int64 radius = 7;
        Parameters:
        value - The radius to set.
        Returns:
        This builder for chaining.
      • clearRadius

        public LocationGroupInfo.Builder clearRadius()
         Distance in units specifying the radius around targeted locations.
         This is required and must be set in CREATE operations.
         
        optional int64 radius = 7;
        Returns:
        This builder for chaining.
      • 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.
         This is required and must be set in CREATE operations.
         
        .google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
        Specified by:
        getRadiusUnitsValue in interface LocationGroupInfoOrBuilder
        Returns:
        The enum numeric value on the wire for radiusUnits.
      • setRadiusUnitsValue

        public LocationGroupInfo.Builder setRadiusUnitsValue​(int value)
         Unit of the radius. Miles and meters are supported for geo target
         constants. Milli miles and meters are supported for feed item sets.
         This is required and must be set in CREATE operations.
         
        .google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
        Parameters:
        value - The enum numeric value on the wire for radiusUnits to set.
        Returns:
        This builder for chaining.
      • getRadiusUnits

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

        public LocationGroupInfo.Builder setRadiusUnits​(LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits value)
         Unit of the radius. Miles and meters are supported for geo target
         constants. Milli miles and meters are supported for feed item sets.
         This is required and must be set in CREATE operations.
         
        .google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
        Parameters:
        value - The radiusUnits to set.
        Returns:
        This builder for chaining.
      • clearRadiusUnits

        public LocationGroupInfo.Builder clearRadiusUnits()
         Unit of the radius. Miles and meters are supported for geo target
         constants. Milli miles and meters are supported for feed item sets.
         This is required and must be set in CREATE operations.
         
        .google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
        Returns:
        This builder for chaining.
      • 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.
         
        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.
         
        repeated string feed_item_sets = 8;
        Specified by:
        getFeedItemSetsCount in interface LocationGroupInfoOrBuilder
        Returns:
        The count of feedItemSets.
      • getFeedItemSets

        public java.lang.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.
         
        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.
         
        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.
      • setFeedItemSets

        public LocationGroupInfo.Builder setFeedItemSets​(int index,
                                                         java.lang.String value)
         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.
         
        repeated string feed_item_sets = 8;
        Parameters:
        index - The index to set the value at.
        value - The feedItemSets to set.
        Returns:
        This builder for chaining.
      • addFeedItemSets

        public LocationGroupInfo.Builder addFeedItemSets​(java.lang.String value)
         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.
         
        repeated string feed_item_sets = 8;
        Parameters:
        value - The feedItemSets to add.
        Returns:
        This builder for chaining.
      • addAllFeedItemSets

        public LocationGroupInfo.Builder addAllFeedItemSets​(java.lang.Iterable<java.lang.String> values)
         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.
         
        repeated string feed_item_sets = 8;
        Parameters:
        values - The feedItemSets to add.
        Returns:
        This builder for chaining.
      • clearFeedItemSets

        public LocationGroupInfo.Builder clearFeedItemSets()
         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.
         
        repeated string feed_item_sets = 8;
        Returns:
        This builder for chaining.
      • addFeedItemSetsBytes

        public LocationGroupInfo.Builder addFeedItemSetsBytes​(com.google.protobuf.ByteString value)
         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.
         
        repeated string feed_item_sets = 8;
        Parameters:
        value - The bytes of the feedItemSets to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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