All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v10.common.LocationGroupInfo Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/common/criteria.proto

package com.google.ads.googleads.v10.common;

/**
 * 
 * A radius around a list of locations specified through a feed.
 * 
* * Protobuf type {@code google.ads.googleads.v10.common.LocationGroupInfo} */ public final class LocationGroupInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.LocationGroupInfo) LocationGroupInfoOrBuilder { private static final long serialVersionUID = 0L; // Use LocationGroupInfo.newBuilder() to construct. private LocationGroupInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocationGroupInfo() { feed_ = ""; geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; radiusUnits_ = 0; feedItemSets_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LocationGroupInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.CriteriaProto.internal_static_google_ads_googleads_v10_common_LocationGroupInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.common.CriteriaProto.internal_static_google_ads_googleads_v10_common_LocationGroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.LocationGroupInfo.class, com.google.ads.googleads.v10.common.LocationGroupInfo.Builder.class); } private int bitField0_; public static final int FEED_FIELD_NUMBER = 5; private volatile java.lang.Object feed_; /** *
   * Feed specifying locations for targeting.
   * This is required and must be set in CREATE operations.
   * 
* * optional string feed = 5; * @return Whether the feed field is set. */ @java.lang.Override public boolean hasFeed() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Feed specifying locations for targeting.
   * This is required and must be set in CREATE operations.
   * 
* * optional string feed = 5; * @return The feed. */ @java.lang.Override public java.lang.String getFeed() { java.lang.Object ref = feed_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feed_ = s; return s; } } /** *
   * Feed specifying locations for targeting.
   * This is required and must be set in CREATE operations.
   * 
* * optional string feed = 5; * @return The bytes for feed. */ @java.lang.Override public com.google.protobuf.ByteString getFeedBytes() { java.lang.Object ref = feed_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feed_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GEO_TARGET_CONSTANTS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList geoTargetConstants_; /** *
   * 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; * @return A list containing the geoTargetConstants. */ public com.google.protobuf.ProtocolStringList getGeoTargetConstantsList() { return geoTargetConstants_; } /** *
   * 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; * @return The count of geoTargetConstants. */ public int getGeoTargetConstantsCount() { return geoTargetConstants_.size(); } /** *
   * 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; * @param index The index of the element to return. * @return The geoTargetConstants at the given index. */ public java.lang.String getGeoTargetConstants(int index) { return geoTargetConstants_.get(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; * @param index The index of the value to return. * @return The bytes of the geoTargetConstants at the given index. */ public com.google.protobuf.ByteString getGeoTargetConstantsBytes(int index) { return geoTargetConstants_.getByteString(index); } public static final int RADIUS_FIELD_NUMBER = 7; private long radius_; /** *
   * Distance in units specifying the radius around targeted locations.
   * This is required and must be set in CREATE operations.
   * 
* * optional int64 radius = 7; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Distance in units specifying the radius around targeted locations.
   * This is required and must be set in CREATE operations.
   * 
* * optional int64 radius = 7; * @return The radius. */ @java.lang.Override public long getRadius() { return radius_; } public static final int RADIUS_UNITS_FIELD_NUMBER = 4; private int radiusUnits_; /** *
   * 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; * @return The enum numeric value on the wire for radiusUnits. */ @java.lang.Override public int getRadiusUnitsValue() { return radiusUnits_; } /** *
   * 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; * @return The radiusUnits. */ @java.lang.Override public com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits getRadiusUnits() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits result = com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.valueOf(radiusUnits_); return result == null ? com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.UNRECOGNIZED : result; } public static final int FEED_ITEM_SETS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList feedItemSets_; /** *
   * 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; * @return A list containing the feedItemSets. */ public com.google.protobuf.ProtocolStringList getFeedItemSetsList() { return feedItemSets_; } /** *
   * 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; * @return The count of feedItemSets. */ public int getFeedItemSetsCount() { return feedItemSets_.size(); } /** *
   * 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; * @param index The index of the element to return. * @return The feedItemSets at the given index. */ public java.lang.String getFeedItemSets(int index) { return feedItemSets_.get(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; * @param index The index of the value to return. * @return The bytes of the feedItemSets at the given index. */ public com.google.protobuf.ByteString getFeedItemSetsBytes(int index) { return feedItemSets_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (radiusUnits_ != com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.UNSPECIFIED.getNumber()) { output.writeEnum(4, radiusUnits_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, feed_); } for (int i = 0; i < geoTargetConstants_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, geoTargetConstants_.getRaw(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(7, radius_); } for (int i = 0; i < feedItemSets_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, feedItemSets_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (radiusUnits_ != com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, radiusUnits_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, feed_); } { int dataSize = 0; for (int i = 0; i < geoTargetConstants_.size(); i++) { dataSize += computeStringSizeNoTag(geoTargetConstants_.getRaw(i)); } size += dataSize; size += 1 * getGeoTargetConstantsList().size(); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, radius_); } { int dataSize = 0; for (int i = 0; i < feedItemSets_.size(); i++) { dataSize += computeStringSizeNoTag(feedItemSets_.getRaw(i)); } size += dataSize; size += 1 * getFeedItemSetsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.common.LocationGroupInfo)) { return super.equals(obj); } com.google.ads.googleads.v10.common.LocationGroupInfo other = (com.google.ads.googleads.v10.common.LocationGroupInfo) obj; if (hasFeed() != other.hasFeed()) return false; if (hasFeed()) { if (!getFeed() .equals(other.getFeed())) return false; } if (!getGeoTargetConstantsList() .equals(other.getGeoTargetConstantsList())) return false; if (hasRadius() != other.hasRadius()) return false; if (hasRadius()) { if (getRadius() != other.getRadius()) return false; } if (radiusUnits_ != other.radiusUnits_) return false; if (!getFeedItemSetsList() .equals(other.getFeedItemSetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFeed()) { hash = (37 * hash) + FEED_FIELD_NUMBER; hash = (53 * hash) + getFeed().hashCode(); } if (getGeoTargetConstantsCount() > 0) { hash = (37 * hash) + GEO_TARGET_CONSTANTS_FIELD_NUMBER; hash = (53 * hash) + getGeoTargetConstantsList().hashCode(); } if (hasRadius()) { hash = (37 * hash) + RADIUS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRadius()); } hash = (37 * hash) + RADIUS_UNITS_FIELD_NUMBER; hash = (53 * hash) + radiusUnits_; if (getFeedItemSetsCount() > 0) { hash = (37 * hash) + FEED_ITEM_SETS_FIELD_NUMBER; hash = (53 * hash) + getFeedItemSetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.LocationGroupInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.common.LocationGroupInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A radius around a list of locations specified through a feed.
   * 
* * Protobuf type {@code google.ads.googleads.v10.common.LocationGroupInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.LocationGroupInfo) com.google.ads.googleads.v10.common.LocationGroupInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.CriteriaProto.internal_static_google_ads_googleads_v10_common_LocationGroupInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.common.CriteriaProto.internal_static_google_ads_googleads_v10_common_LocationGroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.LocationGroupInfo.class, com.google.ads.googleads.v10.common.LocationGroupInfo.Builder.class); } // Construct using com.google.ads.googleads.v10.common.LocationGroupInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); feed_ = ""; bitField0_ = (bitField0_ & ~0x00000001); geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); radius_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); radiusUnits_ = 0; feedItemSets_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.common.CriteriaProto.internal_static_google_ads_googleads_v10_common_LocationGroupInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.common.LocationGroupInfo getDefaultInstanceForType() { return com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.common.LocationGroupInfo build() { com.google.ads.googleads.v10.common.LocationGroupInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.common.LocationGroupInfo buildPartial() { com.google.ads.googleads.v10.common.LocationGroupInfo result = new com.google.ads.googleads.v10.common.LocationGroupInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.feed_ = feed_; if (((bitField0_ & 0x00000002) != 0)) { geoTargetConstants_ = geoTargetConstants_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.geoTargetConstants_ = geoTargetConstants_; if (((from_bitField0_ & 0x00000004) != 0)) { result.radius_ = radius_; to_bitField0_ |= 0x00000002; } result.radiusUnits_ = radiusUnits_; if (((bitField0_ & 0x00000008) != 0)) { feedItemSets_ = feedItemSets_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.feedItemSets_ = feedItemSets_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.common.LocationGroupInfo) { return mergeFrom((com.google.ads.googleads.v10.common.LocationGroupInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.common.LocationGroupInfo other) { if (other == com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance()) return this; if (other.hasFeed()) { bitField0_ |= 0x00000001; feed_ = other.feed_; onChanged(); } if (!other.geoTargetConstants_.isEmpty()) { if (geoTargetConstants_.isEmpty()) { geoTargetConstants_ = other.geoTargetConstants_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGeoTargetConstantsIsMutable(); geoTargetConstants_.addAll(other.geoTargetConstants_); } onChanged(); } if (other.hasRadius()) { setRadius(other.getRadius()); } if (other.radiusUnits_ != 0) { setRadiusUnitsValue(other.getRadiusUnitsValue()); } if (!other.feedItemSets_.isEmpty()) { if (feedItemSets_.isEmpty()) { feedItemSets_ = other.feedItemSets_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFeedItemSetsIsMutable(); feedItemSets_.addAll(other.feedItemSets_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 32: { radiusUnits_ = input.readEnum(); break; } // case 32 case 42: { feed_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureGeoTargetConstantsIsMutable(); geoTargetConstants_.add(s); break; } // case 50 case 56: { radius_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 56 case 66: { java.lang.String s = input.readStringRequireUtf8(); ensureFeedItemSetsIsMutable(); feedItemSets_.add(s); break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object feed_ = ""; /** *
     * Feed specifying locations for targeting.
     * This is required and must be set in CREATE operations.
     * 
* * optional string feed = 5; * @return Whether the feed field is set. */ public boolean hasFeed() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Feed specifying locations for targeting.
     * This is required and must be set in CREATE operations.
     * 
* * optional string feed = 5; * @return The feed. */ public java.lang.String getFeed() { java.lang.Object ref = feed_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feed_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Feed specifying locations for targeting.
     * This is required and must be set in CREATE operations.
     * 
* * optional string feed = 5; * @return The bytes for feed. */ public com.google.protobuf.ByteString getFeedBytes() { java.lang.Object ref = feed_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feed_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Feed specifying locations for targeting.
     * This is required and must be set in CREATE operations.
     * 
* * optional string feed = 5; * @param value The feed to set. * @return This builder for chaining. */ public Builder setFeed( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; feed_ = value; onChanged(); return this; } /** *
     * Feed specifying locations for targeting.
     * This is required and must be set in CREATE operations.
     * 
* * optional string feed = 5; * @return This builder for chaining. */ public Builder clearFeed() { bitField0_ = (bitField0_ & ~0x00000001); feed_ = getDefaultInstance().getFeed(); onChanged(); return this; } /** *
     * Feed specifying locations for targeting.
     * This is required and must be set in CREATE operations.
     * 
* * optional string feed = 5; * @param value The bytes for feed to set. * @return This builder for chaining. */ public Builder setFeedBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; feed_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGeoTargetConstantsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { geoTargetConstants_ = new com.google.protobuf.LazyStringArrayList(geoTargetConstants_); bitField0_ |= 0x00000002; } } /** *
     * 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; * @return A list containing the geoTargetConstants. */ public com.google.protobuf.ProtocolStringList getGeoTargetConstantsList() { return geoTargetConstants_.getUnmodifiableView(); } /** *
     * 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; * @return The count of geoTargetConstants. */ public int getGeoTargetConstantsCount() { return geoTargetConstants_.size(); } /** *
     * 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; * @param index The index of the element to return. * @return The geoTargetConstants at the given index. */ public java.lang.String getGeoTargetConstants(int index) { return geoTargetConstants_.get(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; * @param index The index of the value to return. * @return The bytes of the geoTargetConstants at the given index. */ public com.google.protobuf.ByteString getGeoTargetConstantsBytes(int index) { return geoTargetConstants_.getByteString(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; * @param index The index to set the value at. * @param value The geoTargetConstants to set. * @return This builder for chaining. */ public Builder setGeoTargetConstants( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGeoTargetConstantsIsMutable(); geoTargetConstants_.set(index, value); onChanged(); return this; } /** *
     * 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; * @param value The geoTargetConstants to add. * @return This builder for chaining. */ public Builder addGeoTargetConstants( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGeoTargetConstantsIsMutable(); geoTargetConstants_.add(value); onChanged(); return this; } /** *
     * 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; * @param values The geoTargetConstants to add. * @return This builder for chaining. */ public Builder addAllGeoTargetConstants( java.lang.Iterable values) { ensureGeoTargetConstantsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, geoTargetConstants_); onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearGeoTargetConstants() { geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * 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; * @param value The bytes of the geoTargetConstants to add. * @return This builder for chaining. */ public Builder addGeoTargetConstantsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureGeoTargetConstantsIsMutable(); geoTargetConstants_.add(value); onChanged(); return this; } private long radius_ ; /** *
     * Distance in units specifying the radius around targeted locations.
     * This is required and must be set in CREATE operations.
     * 
* * optional int64 radius = 7; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Distance in units specifying the radius around targeted locations.
     * This is required and must be set in CREATE operations.
     * 
* * optional int64 radius = 7; * @return The radius. */ @java.lang.Override public long getRadius() { return radius_; } /** *
     * Distance in units specifying the radius around targeted locations.
     * This is required and must be set in CREATE operations.
     * 
* * optional int64 radius = 7; * @param value The radius to set. * @return This builder for chaining. */ public Builder setRadius(long value) { bitField0_ |= 0x00000004; radius_ = value; onChanged(); return this; } /** *
     * Distance in units specifying the radius around targeted locations.
     * This is required and must be set in CREATE operations.
     * 
* * optional int64 radius = 7; * @return This builder for chaining. */ public Builder clearRadius() { bitField0_ = (bitField0_ & ~0x00000004); radius_ = 0L; onChanged(); return this; } private int radiusUnits_ = 0; /** *
     * 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; * @return The enum numeric value on the wire for radiusUnits. */ @java.lang.Override public int getRadiusUnitsValue() { return radiusUnits_; } /** *
     * 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; * @param value The enum numeric value on the wire for radiusUnits to set. * @return This builder for chaining. */ public Builder setRadiusUnitsValue(int value) { radiusUnits_ = value; onChanged(); return this; } /** *
     * 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; * @return The radiusUnits. */ @java.lang.Override public com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits getRadiusUnits() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits result = com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.valueOf(radiusUnits_); return result == null ? com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.UNRECOGNIZED : result; } /** *
     * 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; * @param value The radiusUnits to set. * @return This builder for chaining. */ public Builder setRadiusUnits(com.google.ads.googleads.v10.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits value) { if (value == null) { throw new NullPointerException(); } radiusUnits_ = value.getNumber(); onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearRadiusUnits() { radiusUnits_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList feedItemSets_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFeedItemSetsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { feedItemSets_ = new com.google.protobuf.LazyStringArrayList(feedItemSets_); bitField0_ |= 0x00000008; } } /** *
     * 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; * @return A list containing the feedItemSets. */ public com.google.protobuf.ProtocolStringList getFeedItemSetsList() { return feedItemSets_.getUnmodifiableView(); } /** *
     * 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; * @return The count of feedItemSets. */ public int getFeedItemSetsCount() { return feedItemSets_.size(); } /** *
     * 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; * @param index The index of the element to return. * @return The feedItemSets at the given index. */ public java.lang.String getFeedItemSets(int index) { return feedItemSets_.get(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; * @param index The index of the value to return. * @return The bytes of the feedItemSets at the given index. */ public com.google.protobuf.ByteString getFeedItemSetsBytes(int index) { return feedItemSets_.getByteString(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; * @param index The index to set the value at. * @param value The feedItemSets to set. * @return This builder for chaining. */ public Builder setFeedItemSets( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFeedItemSetsIsMutable(); feedItemSets_.set(index, value); onChanged(); return this; } /** *
     * 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; * @param value The feedItemSets to add. * @return This builder for chaining. */ public Builder addFeedItemSets( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFeedItemSetsIsMutable(); feedItemSets_.add(value); onChanged(); return this; } /** *
     * 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; * @param values The feedItemSets to add. * @return This builder for chaining. */ public Builder addAllFeedItemSets( java.lang.Iterable values) { ensureFeedItemSetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, feedItemSets_); onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearFeedItemSets() { feedItemSets_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * 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; * @param value The bytes of the feedItemSets to add. * @return This builder for chaining. */ public Builder addFeedItemSetsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFeedItemSetsIsMutable(); feedItemSets_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.common.LocationGroupInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.LocationGroupInfo) private static final com.google.ads.googleads.v10.common.LocationGroupInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.LocationGroupInfo(); } public static com.google.ads.googleads.v10.common.LocationGroupInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LocationGroupInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.common.LocationGroupInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy