com.google.ads.googleads.v17.common.LocationGroupInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/criteria.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* A radius around a list of locations specified through a feed or assetSet.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LocationGroupInfo}
*/
public final class LocationGroupInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.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.emptyList();
radiusUnits_ = 0;
feedItemSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
locationGroupAssetSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationGroupInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_LocationGroupInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_LocationGroupInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LocationGroupInfo.class, com.google.ads.googleads.v17.common.LocationGroupInfo.Builder.class);
}
private int bitField0_;
public static final int FEED_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object feed_ = "";
/**
*
* 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;
* @return Whether the feed field is set.
*/
@java.lang.Override
public boolean hasFeed() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* 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;
* @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. Cannot be set with AssetSet
* fields. 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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* 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;
* @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. Cannot be set
* with AssetSet fields.
*
*
* 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. Cannot be set
* with AssetSet fields.
*
*
* 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. Cannot be set
* with AssetSet fields.
*
*
* 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_ = 0L;
/**
*
* 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_ = 0;
/**
*
* 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.v17.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 and
* asset sets. This is required and must be set in CREATE operations.
*
*
* .google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
* @return The radiusUnits.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits getRadiusUnits() {
com.google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits result = com.google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.forNumber(radiusUnits_);
return result == null ? com.google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.UNRECOGNIZED : result;
}
public static final int FEED_ITEM_SETS_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList feedItemSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* 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;
* @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. Cannot be set with AssetSet fields.
*
*
* 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. Cannot be set with AssetSet fields.
*
*
* 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. Cannot be set with AssetSet fields.
*
*
* 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);
}
public static final int ENABLE_CUSTOMER_LEVEL_LOCATION_ASSET_SET_FIELD_NUMBER = 9;
private boolean enableCustomerLevelLocationAssetSet_ = false;
/**
*
* 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;
* @return Whether the enableCustomerLevelLocationAssetSet field is set.
*/
@java.lang.Override
public boolean hasEnableCustomerLevelLocationAssetSet() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* 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;
* @return The enableCustomerLevelLocationAssetSet.
*/
@java.lang.Override
public boolean getEnableCustomerLevelLocationAssetSet() {
return enableCustomerLevelLocationAssetSet_;
}
public static final int LOCATION_GROUP_ASSET_SETS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList locationGroupAssetSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* 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;
* @return A list containing the locationGroupAssetSets.
*/
public com.google.protobuf.ProtocolStringList
getLocationGroupAssetSetsList() {
return locationGroupAssetSets_;
}
/**
*
* 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;
* @return The count of locationGroupAssetSets.
*/
public int getLocationGroupAssetSetsCount() {
return locationGroupAssetSets_.size();
}
/**
*
* 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;
* @param index The index of the element to return.
* @return The locationGroupAssetSets at the given index.
*/
public java.lang.String getLocationGroupAssetSets(int index) {
return locationGroupAssetSets_.get(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;
* @param index The index of the value to return.
* @return The bytes of the locationGroupAssetSets at the given index.
*/
public com.google.protobuf.ByteString
getLocationGroupAssetSetsBytes(int index) {
return locationGroupAssetSets_.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.v17.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));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(9, enableCustomerLevelLocationAssetSet_);
}
for (int i = 0; i < locationGroupAssetSets_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, locationGroupAssetSets_.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.v17.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();
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, enableCustomerLevelLocationAssetSet_);
}
{
int dataSize = 0;
for (int i = 0; i < locationGroupAssetSets_.size(); i++) {
dataSize += computeStringSizeNoTag(locationGroupAssetSets_.getRaw(i));
}
size += dataSize;
size += 1 * getLocationGroupAssetSetsList().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.v17.common.LocationGroupInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.LocationGroupInfo other = (com.google.ads.googleads.v17.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 (hasEnableCustomerLevelLocationAssetSet() != other.hasEnableCustomerLevelLocationAssetSet()) return false;
if (hasEnableCustomerLevelLocationAssetSet()) {
if (getEnableCustomerLevelLocationAssetSet()
!= other.getEnableCustomerLevelLocationAssetSet()) return false;
}
if (!getLocationGroupAssetSetsList()
.equals(other.getLocationGroupAssetSetsList())) 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();
}
if (hasEnableCustomerLevelLocationAssetSet()) {
hash = (37 * hash) + ENABLE_CUSTOMER_LEVEL_LOCATION_ASSET_SET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableCustomerLevelLocationAssetSet());
}
if (getLocationGroupAssetSetsCount() > 0) {
hash = (37 * hash) + LOCATION_GROUP_ASSET_SETS_FIELD_NUMBER;
hash = (53 * hash) + getLocationGroupAssetSetsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.LocationGroupInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.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.v17.common.LocationGroupInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.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.v17.common.LocationGroupInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.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.v17.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.v17.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.v17.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.v17.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.v17.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.v17.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.v17.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 or assetSet.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LocationGroupInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.LocationGroupInfo)
com.google.ads.googleads.v17.common.LocationGroupInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_LocationGroupInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_LocationGroupInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LocationGroupInfo.class, com.google.ads.googleads.v17.common.LocationGroupInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.LocationGroupInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
feed_ = "";
geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
radius_ = 0L;
radiusUnits_ = 0;
feedItemSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
enableCustomerLevelLocationAssetSet_ = false;
locationGroupAssetSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_LocationGroupInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationGroupInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.LocationGroupInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationGroupInfo build() {
com.google.ads.googleads.v17.common.LocationGroupInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationGroupInfo buildPartial() {
com.google.ads.googleads.v17.common.LocationGroupInfo result = new com.google.ads.googleads.v17.common.LocationGroupInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.LocationGroupInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.feed_ = feed_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
geoTargetConstants_.makeImmutable();
result.geoTargetConstants_ = geoTargetConstants_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.radius_ = radius_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.radiusUnits_ = radiusUnits_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
feedItemSets_.makeImmutable();
result.feedItemSets_ = feedItemSets_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.enableCustomerLevelLocationAssetSet_ = enableCustomerLevelLocationAssetSet_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
locationGroupAssetSets_.makeImmutable();
result.locationGroupAssetSets_ = locationGroupAssetSets_;
}
result.bitField0_ |= to_bitField0_;
}
@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.v17.common.LocationGroupInfo) {
return mergeFrom((com.google.ads.googleads.v17.common.LocationGroupInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.LocationGroupInfo other) {
if (other == com.google.ads.googleads.v17.common.LocationGroupInfo.getDefaultInstance()) return this;
if (other.hasFeed()) {
feed_ = other.feed_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.geoTargetConstants_.isEmpty()) {
if (geoTargetConstants_.isEmpty()) {
geoTargetConstants_ = other.geoTargetConstants_;
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_ |= 0x00000010;
} else {
ensureFeedItemSetsIsMutable();
feedItemSets_.addAll(other.feedItemSets_);
}
onChanged();
}
if (other.hasEnableCustomerLevelLocationAssetSet()) {
setEnableCustomerLevelLocationAssetSet(other.getEnableCustomerLevelLocationAssetSet());
}
if (!other.locationGroupAssetSets_.isEmpty()) {
if (locationGroupAssetSets_.isEmpty()) {
locationGroupAssetSets_ = other.locationGroupAssetSets_;
bitField0_ |= 0x00000040;
} else {
ensureLocationGroupAssetSetsIsMutable();
locationGroupAssetSets_.addAll(other.locationGroupAssetSets_);
}
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();
bitField0_ |= 0x00000008;
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
case 72: {
enableCustomerLevelLocationAssetSet_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 72
case 82: {
java.lang.String s = input.readStringRequireUtf8();
ensureLocationGroupAssetSetsIsMutable();
locationGroupAssetSets_.add(s);
break;
} // case 82
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. Cannot be set with AssetSet
* fields. 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. Cannot be set with AssetSet
* fields. 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. Cannot be set with AssetSet
* fields. 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. Cannot be set with AssetSet
* fields. 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(); }
feed_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearFeed() {
feed_ = getDefaultInstance().getFeed();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* 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;
* @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);
feed_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGeoTargetConstantsIsMutable() {
if (!geoTargetConstants_.isModifiable()) {
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. Cannot be set
* with AssetSet fields.
*
*
* repeated string geo_target_constants = 6;
* @return A list containing the geoTargetConstants.
*/
public com.google.protobuf.ProtocolStringList
getGeoTargetConstantsList() {
geoTargetConstants_.makeImmutable();
return geoTargetConstants_;
}
/**
*
* 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;
* @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. Cannot be set
* with AssetSet fields.
*
*
* 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. Cannot be set
* with AssetSet fields.
*
*
* 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. Cannot be set
* with AssetSet fields.
*
*
* 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);
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. Cannot be set
* with AssetSet fields.
*
*
* 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);
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. Cannot be set
* with AssetSet fields.
*
*
* 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_);
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. Cannot be set
* with AssetSet fields.
*
*
* repeated string geo_target_constants = 6;
* @return This builder for chaining.
*/
public Builder clearGeoTargetConstants() {
geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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. Cannot be set
* with AssetSet fields.
*
*
* 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);
bitField0_ |= 0x00000002;
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) {
radius_ = value;
bitField0_ |= 0x00000004;
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 and
* asset sets. This is required and must be set in CREATE operations.
*
*
* .google.ads.googleads.v17.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 and
* asset sets. This is required and must be set in CREATE operations.
*
*
* .google.ads.googleads.v17.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;
bitField0_ |= 0x00000008;
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 and
* asset sets. This is required and must be set in CREATE operations.
*
*
* .google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
* @return The radiusUnits.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits getRadiusUnits() {
com.google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits result = com.google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits.forNumber(radiusUnits_);
return result == null ? com.google.ads.googleads.v17.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 and
* asset sets. This is required and must be set in CREATE operations.
*
*
* .google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
* @param value The radiusUnits to set.
* @return This builder for chaining.
*/
public Builder setRadiusUnits(com.google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
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 and
* asset sets. This is required and must be set in CREATE operations.
*
*
* .google.ads.googleads.v17.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
* @return This builder for chaining.
*/
public Builder clearRadiusUnits() {
bitField0_ = (bitField0_ & ~0x00000008);
radiusUnits_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList feedItemSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureFeedItemSetsIsMutable() {
if (!feedItemSets_.isModifiable()) {
feedItemSets_ = new com.google.protobuf.LazyStringArrayList(feedItemSets_);
}
bitField0_ |= 0x00000010;
}
/**
*
* 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;
* @return A list containing the feedItemSets.
*/
public com.google.protobuf.ProtocolStringList
getFeedItemSetsList() {
feedItemSets_.makeImmutable();
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. Cannot be set with AssetSet fields.
*
*
* 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. Cannot be set with AssetSet fields.
*
*
* 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. Cannot be set with AssetSet fields.
*
*
* 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. Cannot be set with AssetSet fields.
*
*
* 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);
bitField0_ |= 0x00000010;
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. Cannot be set with AssetSet fields.
*
*
* 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);
bitField0_ |= 0x00000010;
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. Cannot be set with AssetSet fields.
*
*
* 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_);
bitField0_ |= 0x00000010;
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. Cannot be set with AssetSet fields.
*
*
* repeated string feed_item_sets = 8;
* @return This builder for chaining.
*/
public Builder clearFeedItemSets() {
feedItemSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);;
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. Cannot be set with AssetSet fields.
*
*
* 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);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private boolean enableCustomerLevelLocationAssetSet_ ;
/**
*
* 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;
* @return Whether the enableCustomerLevelLocationAssetSet field is set.
*/
@java.lang.Override
public boolean hasEnableCustomerLevelLocationAssetSet() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* 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;
* @return The enableCustomerLevelLocationAssetSet.
*/
@java.lang.Override
public boolean getEnableCustomerLevelLocationAssetSet() {
return enableCustomerLevelLocationAssetSet_;
}
/**
*
* 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;
* @param value The enableCustomerLevelLocationAssetSet to set.
* @return This builder for chaining.
*/
public Builder setEnableCustomerLevelLocationAssetSet(boolean value) {
enableCustomerLevelLocationAssetSet_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearEnableCustomerLevelLocationAssetSet() {
bitField0_ = (bitField0_ & ~0x00000020);
enableCustomerLevelLocationAssetSet_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList locationGroupAssetSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureLocationGroupAssetSetsIsMutable() {
if (!locationGroupAssetSets_.isModifiable()) {
locationGroupAssetSets_ = new com.google.protobuf.LazyStringArrayList(locationGroupAssetSets_);
}
bitField0_ |= 0x00000040;
}
/**
*
* 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;
* @return A list containing the locationGroupAssetSets.
*/
public com.google.protobuf.ProtocolStringList
getLocationGroupAssetSetsList() {
locationGroupAssetSets_.makeImmutable();
return locationGroupAssetSets_;
}
/**
*
* 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;
* @return The count of locationGroupAssetSets.
*/
public int getLocationGroupAssetSetsCount() {
return locationGroupAssetSets_.size();
}
/**
*
* 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;
* @param index The index of the element to return.
* @return The locationGroupAssetSets at the given index.
*/
public java.lang.String getLocationGroupAssetSets(int index) {
return locationGroupAssetSets_.get(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;
* @param index The index of the value to return.
* @return The bytes of the locationGroupAssetSets at the given index.
*/
public com.google.protobuf.ByteString
getLocationGroupAssetSetsBytes(int index) {
return locationGroupAssetSets_.getByteString(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;
* @param index The index to set the value at.
* @param value The locationGroupAssetSets to set.
* @return This builder for chaining.
*/
public Builder setLocationGroupAssetSets(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureLocationGroupAssetSetsIsMutable();
locationGroupAssetSets_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* 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;
* @param value The locationGroupAssetSets to add.
* @return This builder for chaining.
*/
public Builder addLocationGroupAssetSets(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureLocationGroupAssetSetsIsMutable();
locationGroupAssetSets_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* 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;
* @param values The locationGroupAssetSets to add.
* @return This builder for chaining.
*/
public Builder addAllLocationGroupAssetSets(
java.lang.Iterable values) {
ensureLocationGroupAssetSetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, locationGroupAssetSets_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearLocationGroupAssetSets() {
locationGroupAssetSets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);;
onChanged();
return this;
}
/**
*
* 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;
* @param value The bytes of the locationGroupAssetSets to add.
* @return This builder for chaining.
*/
public Builder addLocationGroupAssetSetsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureLocationGroupAssetSetsIsMutable();
locationGroupAssetSets_.add(value);
bitField0_ |= 0x00000040;
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.v17.common.LocationGroupInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.LocationGroupInfo)
private static final com.google.ads.googleads.v17.common.LocationGroupInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.LocationGroupInfo();
}
public static com.google.ads.googleads.v17.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.v17.common.LocationGroupInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy