Class LocationGroupInfo

  • All Implemented Interfaces:
    LocationGroupInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class LocationGroupInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements LocationGroupInfoOrBuilder
     A radius around a list of locations specified via a feed.
     
    Protobuf type google.ads.googleads.v10.common.LocationGroupInfo
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LocationGroupInfo.Builder
      A radius around a list of locations specified via a feed.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, 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
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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.
         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.
      • 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.
      • 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.
         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.
      • 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.
      • 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.
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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​(java.nio.ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LocationGroupInfo parseFrom​(java.nio.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​(java.io.InputStream input)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

        public static LocationGroupInfo parseDelimitedFrom​(java.io.InputStream input)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

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

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

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

        public LocationGroupInfo.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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
      • 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