com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/services/geo_target_constant_service.proto
package com.google.ads.googleads.v10.services;
/**
*
* A geo target constant suggestion.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.GeoTargetConstantSuggestion}
*/
public final class GeoTargetConstantSuggestion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.GeoTargetConstantSuggestion)
GeoTargetConstantSuggestionOrBuilder {
private static final long serialVersionUID = 0L;
// Use GeoTargetConstantSuggestion.newBuilder() to construct.
private GeoTargetConstantSuggestion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GeoTargetConstantSuggestion() {
locale_ = "";
searchTerm_ = "";
geoTargetConstantParents_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GeoTargetConstantSuggestion();
}
@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.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v10_services_GeoTargetConstantSuggestion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v10_services_GeoTargetConstantSuggestion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion.class, com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion.Builder.class);
}
private int bitField0_;
public static final int LOCALE_FIELD_NUMBER = 6;
private volatile java.lang.Object locale_;
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @return Whether the locale field is set.
*/
@java.lang.Override
public boolean hasLocale() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @return The locale.
*/
@java.lang.Override
public java.lang.String getLocale() {
java.lang.Object ref = locale_;
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();
locale_ = s;
return s;
}
}
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @return The bytes for locale.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocaleBytes() {
java.lang.Object ref = locale_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locale_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REACH_FIELD_NUMBER = 7;
private long reach_;
/**
*
* Approximate user population that will be targeted, rounded to the
* nearest 100.
*
*
* optional int64 reach = 7;
* @return Whether the reach field is set.
*/
@java.lang.Override
public boolean hasReach() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Approximate user population that will be targeted, rounded to the
* nearest 100.
*
*
* optional int64 reach = 7;
* @return The reach.
*/
@java.lang.Override
public long getReach() {
return reach_;
}
public static final int SEARCH_TERM_FIELD_NUMBER = 8;
private volatile java.lang.Object searchTerm_;
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @return Whether the searchTerm field is set.
*/
@java.lang.Override
public boolean hasSearchTerm() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @return The searchTerm.
*/
@java.lang.Override
public java.lang.String getSearchTerm() {
java.lang.Object ref = searchTerm_;
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();
searchTerm_ = s;
return s;
}
}
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @return The bytes for searchTerm.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSearchTermBytes() {
java.lang.Object ref = searchTerm_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchTerm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GEO_TARGET_CONSTANT_FIELD_NUMBER = 4;
private com.google.ads.googleads.v10.resources.GeoTargetConstant geoTargetConstant_;
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
* @return Whether the geoTargetConstant field is set.
*/
@java.lang.Override
public boolean hasGeoTargetConstant() {
return geoTargetConstant_ != null;
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
* @return The geoTargetConstant.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.GeoTargetConstant getGeoTargetConstant() {
return geoTargetConstant_ == null ? com.google.ads.googleads.v10.resources.GeoTargetConstant.getDefaultInstance() : geoTargetConstant_;
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder getGeoTargetConstantOrBuilder() {
return getGeoTargetConstant();
}
public static final int GEO_TARGET_CONSTANT_PARENTS_FIELD_NUMBER = 5;
private java.util.List geoTargetConstantParents_;
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
@java.lang.Override
public java.util.List getGeoTargetConstantParentsList() {
return geoTargetConstantParents_;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder>
getGeoTargetConstantParentsOrBuilderList() {
return geoTargetConstantParents_;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
@java.lang.Override
public int getGeoTargetConstantParentsCount() {
return geoTargetConstantParents_.size();
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.GeoTargetConstant getGeoTargetConstantParents(int index) {
return geoTargetConstantParents_.get(index);
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder getGeoTargetConstantParentsOrBuilder(
int index) {
return geoTargetConstantParents_.get(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 (geoTargetConstant_ != null) {
output.writeMessage(4, getGeoTargetConstant());
}
for (int i = 0; i < geoTargetConstantParents_.size(); i++) {
output.writeMessage(5, geoTargetConstantParents_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, locale_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(7, reach_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, searchTerm_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (geoTargetConstant_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getGeoTargetConstant());
}
for (int i = 0; i < geoTargetConstantParents_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, geoTargetConstantParents_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, locale_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, reach_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, searchTerm_);
}
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.services.GeoTargetConstantSuggestion)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion other = (com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion) obj;
if (hasLocale() != other.hasLocale()) return false;
if (hasLocale()) {
if (!getLocale()
.equals(other.getLocale())) return false;
}
if (hasReach() != other.hasReach()) return false;
if (hasReach()) {
if (getReach()
!= other.getReach()) return false;
}
if (hasSearchTerm() != other.hasSearchTerm()) return false;
if (hasSearchTerm()) {
if (!getSearchTerm()
.equals(other.getSearchTerm())) return false;
}
if (hasGeoTargetConstant() != other.hasGeoTargetConstant()) return false;
if (hasGeoTargetConstant()) {
if (!getGeoTargetConstant()
.equals(other.getGeoTargetConstant())) return false;
}
if (!getGeoTargetConstantParentsList()
.equals(other.getGeoTargetConstantParentsList())) 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 (hasLocale()) {
hash = (37 * hash) + LOCALE_FIELD_NUMBER;
hash = (53 * hash) + getLocale().hashCode();
}
if (hasReach()) {
hash = (37 * hash) + REACH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReach());
}
if (hasSearchTerm()) {
hash = (37 * hash) + SEARCH_TERM_FIELD_NUMBER;
hash = (53 * hash) + getSearchTerm().hashCode();
}
if (hasGeoTargetConstant()) {
hash = (37 * hash) + GEO_TARGET_CONSTANT_FIELD_NUMBER;
hash = (53 * hash) + getGeoTargetConstant().hashCode();
}
if (getGeoTargetConstantParentsCount() > 0) {
hash = (37 * hash) + GEO_TARGET_CONSTANT_PARENTS_FIELD_NUMBER;
hash = (53 * hash) + getGeoTargetConstantParentsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion 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.services.GeoTargetConstantSuggestion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion 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.services.GeoTargetConstantSuggestion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion 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.services.GeoTargetConstantSuggestion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion 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.services.GeoTargetConstantSuggestion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion 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.services.GeoTargetConstantSuggestion 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.services.GeoTargetConstantSuggestion 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.services.GeoTargetConstantSuggestion 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 geo target constant suggestion.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.GeoTargetConstantSuggestion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.GeoTargetConstantSuggestion)
com.google.ads.googleads.v10.services.GeoTargetConstantSuggestionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v10_services_GeoTargetConstantSuggestion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v10_services_GeoTargetConstantSuggestion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion.class, com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
locale_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
reach_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
searchTerm_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (geoTargetConstantBuilder_ == null) {
geoTargetConstant_ = null;
} else {
geoTargetConstant_ = null;
geoTargetConstantBuilder_ = null;
}
if (geoTargetConstantParentsBuilder_ == null) {
geoTargetConstantParents_ = java.util.Collections.emptyList();
} else {
geoTargetConstantParents_ = null;
geoTargetConstantParentsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v10_services_GeoTargetConstantSuggestion_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion build() {
com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion buildPartial() {
com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion result = new com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.locale_ = locale_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.reach_ = reach_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.searchTerm_ = searchTerm_;
if (geoTargetConstantBuilder_ == null) {
result.geoTargetConstant_ = geoTargetConstant_;
} else {
result.geoTargetConstant_ = geoTargetConstantBuilder_.build();
}
if (geoTargetConstantParentsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
geoTargetConstantParents_ = java.util.Collections.unmodifiableList(geoTargetConstantParents_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.geoTargetConstantParents_ = geoTargetConstantParents_;
} else {
result.geoTargetConstantParents_ = geoTargetConstantParentsBuilder_.build();
}
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.services.GeoTargetConstantSuggestion) {
return mergeFrom((com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion other) {
if (other == com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion.getDefaultInstance()) return this;
if (other.hasLocale()) {
bitField0_ |= 0x00000001;
locale_ = other.locale_;
onChanged();
}
if (other.hasReach()) {
setReach(other.getReach());
}
if (other.hasSearchTerm()) {
bitField0_ |= 0x00000004;
searchTerm_ = other.searchTerm_;
onChanged();
}
if (other.hasGeoTargetConstant()) {
mergeGeoTargetConstant(other.getGeoTargetConstant());
}
if (geoTargetConstantParentsBuilder_ == null) {
if (!other.geoTargetConstantParents_.isEmpty()) {
if (geoTargetConstantParents_.isEmpty()) {
geoTargetConstantParents_ = other.geoTargetConstantParents_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.addAll(other.geoTargetConstantParents_);
}
onChanged();
}
} else {
if (!other.geoTargetConstantParents_.isEmpty()) {
if (geoTargetConstantParentsBuilder_.isEmpty()) {
geoTargetConstantParentsBuilder_.dispose();
geoTargetConstantParentsBuilder_ = null;
geoTargetConstantParents_ = other.geoTargetConstantParents_;
bitField0_ = (bitField0_ & ~0x00000008);
geoTargetConstantParentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGeoTargetConstantParentsFieldBuilder() : null;
} else {
geoTargetConstantParentsBuilder_.addAllMessages(other.geoTargetConstantParents_);
}
}
}
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 34: {
input.readMessage(
getGeoTargetConstantFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 42: {
com.google.ads.googleads.v10.resources.GeoTargetConstant m =
input.readMessage(
com.google.ads.googleads.v10.resources.GeoTargetConstant.parser(),
extensionRegistry);
if (geoTargetConstantParentsBuilder_ == null) {
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.add(m);
} else {
geoTargetConstantParentsBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
locale_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 50
case 56: {
reach_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 56
case 66: {
searchTerm_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
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 locale_ = "";
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @return Whether the locale field is set.
*/
public boolean hasLocale() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @return The locale.
*/
public java.lang.String getLocale() {
java.lang.Object ref = locale_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locale_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @return The bytes for locale.
*/
public com.google.protobuf.ByteString
getLocaleBytes() {
java.lang.Object ref = locale_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locale_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @param value The locale to set.
* @return This builder for chaining.
*/
public Builder setLocale(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
locale_ = value;
onChanged();
return this;
}
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @return This builder for chaining.
*/
public Builder clearLocale() {
bitField0_ = (bitField0_ & ~0x00000001);
locale_ = getDefaultInstance().getLocale();
onChanged();
return this;
}
/**
*
* The language this GeoTargetConstantSuggestion is currently translated to.
* It affects the name of geo target fields. For example, if locale=en, then
* name=Spain. If locale=es, then name=España. The default locale will be
* returned if no translation exists for the locale in the request.
*
*
* optional string locale = 6;
* @param value The bytes for locale to set.
* @return This builder for chaining.
*/
public Builder setLocaleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
locale_ = value;
onChanged();
return this;
}
private long reach_ ;
/**
*
* Approximate user population that will be targeted, rounded to the
* nearest 100.
*
*
* optional int64 reach = 7;
* @return Whether the reach field is set.
*/
@java.lang.Override
public boolean hasReach() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Approximate user population that will be targeted, rounded to the
* nearest 100.
*
*
* optional int64 reach = 7;
* @return The reach.
*/
@java.lang.Override
public long getReach() {
return reach_;
}
/**
*
* Approximate user population that will be targeted, rounded to the
* nearest 100.
*
*
* optional int64 reach = 7;
* @param value The reach to set.
* @return This builder for chaining.
*/
public Builder setReach(long value) {
bitField0_ |= 0x00000002;
reach_ = value;
onChanged();
return this;
}
/**
*
* Approximate user population that will be targeted, rounded to the
* nearest 100.
*
*
* optional int64 reach = 7;
* @return This builder for chaining.
*/
public Builder clearReach() {
bitField0_ = (bitField0_ & ~0x00000002);
reach_ = 0L;
onChanged();
return this;
}
private java.lang.Object searchTerm_ = "";
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @return Whether the searchTerm field is set.
*/
public boolean hasSearchTerm() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @return The searchTerm.
*/
public java.lang.String getSearchTerm() {
java.lang.Object ref = searchTerm_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
searchTerm_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @return The bytes for searchTerm.
*/
public com.google.protobuf.ByteString
getSearchTermBytes() {
java.lang.Object ref = searchTerm_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchTerm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @param value The searchTerm to set.
* @return This builder for chaining.
*/
public Builder setSearchTerm(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
searchTerm_ = value;
onChanged();
return this;
}
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @return This builder for chaining.
*/
public Builder clearSearchTerm() {
bitField0_ = (bitField0_ & ~0x00000004);
searchTerm_ = getDefaultInstance().getSearchTerm();
onChanged();
return this;
}
/**
*
* If the request searched by location name, this is the location name that
* matched the geo target.
*
*
* optional string search_term = 8;
* @param value The bytes for searchTerm to set.
* @return This builder for chaining.
*/
public Builder setSearchTermBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
searchTerm_ = value;
onChanged();
return this;
}
private com.google.ads.googleads.v10.resources.GeoTargetConstant geoTargetConstant_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.GeoTargetConstant, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder> geoTargetConstantBuilder_;
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
* @return Whether the geoTargetConstant field is set.
*/
public boolean hasGeoTargetConstant() {
return geoTargetConstantBuilder_ != null || geoTargetConstant_ != null;
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
* @return The geoTargetConstant.
*/
public com.google.ads.googleads.v10.resources.GeoTargetConstant getGeoTargetConstant() {
if (geoTargetConstantBuilder_ == null) {
return geoTargetConstant_ == null ? com.google.ads.googleads.v10.resources.GeoTargetConstant.getDefaultInstance() : geoTargetConstant_;
} else {
return geoTargetConstantBuilder_.getMessage();
}
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
*/
public Builder setGeoTargetConstant(com.google.ads.googleads.v10.resources.GeoTargetConstant value) {
if (geoTargetConstantBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
geoTargetConstant_ = value;
onChanged();
} else {
geoTargetConstantBuilder_.setMessage(value);
}
return this;
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
*/
public Builder setGeoTargetConstant(
com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder builderForValue) {
if (geoTargetConstantBuilder_ == null) {
geoTargetConstant_ = builderForValue.build();
onChanged();
} else {
geoTargetConstantBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
*/
public Builder mergeGeoTargetConstant(com.google.ads.googleads.v10.resources.GeoTargetConstant value) {
if (geoTargetConstantBuilder_ == null) {
if (geoTargetConstant_ != null) {
geoTargetConstant_ =
com.google.ads.googleads.v10.resources.GeoTargetConstant.newBuilder(geoTargetConstant_).mergeFrom(value).buildPartial();
} else {
geoTargetConstant_ = value;
}
onChanged();
} else {
geoTargetConstantBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
*/
public Builder clearGeoTargetConstant() {
if (geoTargetConstantBuilder_ == null) {
geoTargetConstant_ = null;
onChanged();
} else {
geoTargetConstant_ = null;
geoTargetConstantBuilder_ = null;
}
return this;
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
*/
public com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder getGeoTargetConstantBuilder() {
onChanged();
return getGeoTargetConstantFieldBuilder().getBuilder();
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
*/
public com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder getGeoTargetConstantOrBuilder() {
if (geoTargetConstantBuilder_ != null) {
return geoTargetConstantBuilder_.getMessageOrBuilder();
} else {
return geoTargetConstant_ == null ?
com.google.ads.googleads.v10.resources.GeoTargetConstant.getDefaultInstance() : geoTargetConstant_;
}
}
/**
*
* The GeoTargetConstant result.
*
*
* .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.GeoTargetConstant, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder>
getGeoTargetConstantFieldBuilder() {
if (geoTargetConstantBuilder_ == null) {
geoTargetConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.GeoTargetConstant, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder>(
getGeoTargetConstant(),
getParentForChildren(),
isClean());
geoTargetConstant_ = null;
}
return geoTargetConstantBuilder_;
}
private java.util.List geoTargetConstantParents_ =
java.util.Collections.emptyList();
private void ensureGeoTargetConstantParentsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
geoTargetConstantParents_ = new java.util.ArrayList(geoTargetConstantParents_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.GeoTargetConstant, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder> geoTargetConstantParentsBuilder_;
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public java.util.List getGeoTargetConstantParentsList() {
if (geoTargetConstantParentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(geoTargetConstantParents_);
} else {
return geoTargetConstantParentsBuilder_.getMessageList();
}
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public int getGeoTargetConstantParentsCount() {
if (geoTargetConstantParentsBuilder_ == null) {
return geoTargetConstantParents_.size();
} else {
return geoTargetConstantParentsBuilder_.getCount();
}
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public com.google.ads.googleads.v10.resources.GeoTargetConstant getGeoTargetConstantParents(int index) {
if (geoTargetConstantParentsBuilder_ == null) {
return geoTargetConstantParents_.get(index);
} else {
return geoTargetConstantParentsBuilder_.getMessage(index);
}
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder setGeoTargetConstantParents(
int index, com.google.ads.googleads.v10.resources.GeoTargetConstant value) {
if (geoTargetConstantParentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.set(index, value);
onChanged();
} else {
geoTargetConstantParentsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder setGeoTargetConstantParents(
int index, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder builderForValue) {
if (geoTargetConstantParentsBuilder_ == null) {
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.set(index, builderForValue.build());
onChanged();
} else {
geoTargetConstantParentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder addGeoTargetConstantParents(com.google.ads.googleads.v10.resources.GeoTargetConstant value) {
if (geoTargetConstantParentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.add(value);
onChanged();
} else {
geoTargetConstantParentsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder addGeoTargetConstantParents(
int index, com.google.ads.googleads.v10.resources.GeoTargetConstant value) {
if (geoTargetConstantParentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.add(index, value);
onChanged();
} else {
geoTargetConstantParentsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder addGeoTargetConstantParents(
com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder builderForValue) {
if (geoTargetConstantParentsBuilder_ == null) {
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.add(builderForValue.build());
onChanged();
} else {
geoTargetConstantParentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder addGeoTargetConstantParents(
int index, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder builderForValue) {
if (geoTargetConstantParentsBuilder_ == null) {
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.add(index, builderForValue.build());
onChanged();
} else {
geoTargetConstantParentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder addAllGeoTargetConstantParents(
java.lang.Iterable extends com.google.ads.googleads.v10.resources.GeoTargetConstant> values) {
if (geoTargetConstantParentsBuilder_ == null) {
ensureGeoTargetConstantParentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, geoTargetConstantParents_);
onChanged();
} else {
geoTargetConstantParentsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder clearGeoTargetConstantParents() {
if (geoTargetConstantParentsBuilder_ == null) {
geoTargetConstantParents_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
geoTargetConstantParentsBuilder_.clear();
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public Builder removeGeoTargetConstantParents(int index) {
if (geoTargetConstantParentsBuilder_ == null) {
ensureGeoTargetConstantParentsIsMutable();
geoTargetConstantParents_.remove(index);
onChanged();
} else {
geoTargetConstantParentsBuilder_.remove(index);
}
return this;
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder getGeoTargetConstantParentsBuilder(
int index) {
return getGeoTargetConstantParentsFieldBuilder().getBuilder(index);
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder getGeoTargetConstantParentsOrBuilder(
int index) {
if (geoTargetConstantParentsBuilder_ == null) {
return geoTargetConstantParents_.get(index); } else {
return geoTargetConstantParentsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public java.util.List extends com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder>
getGeoTargetConstantParentsOrBuilderList() {
if (geoTargetConstantParentsBuilder_ != null) {
return geoTargetConstantParentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(geoTargetConstantParents_);
}
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder addGeoTargetConstantParentsBuilder() {
return getGeoTargetConstantParentsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.resources.GeoTargetConstant.getDefaultInstance());
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder addGeoTargetConstantParentsBuilder(
int index) {
return getGeoTargetConstantParentsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.resources.GeoTargetConstant.getDefaultInstance());
}
/**
*
* The list of parents of the geo target constant.
*
*
* repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
*/
public java.util.List
getGeoTargetConstantParentsBuilderList() {
return getGeoTargetConstantParentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.GeoTargetConstant, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder>
getGeoTargetConstantParentsFieldBuilder() {
if (geoTargetConstantParentsBuilder_ == null) {
geoTargetConstantParentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.GeoTargetConstant, com.google.ads.googleads.v10.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v10.resources.GeoTargetConstantOrBuilder>(
geoTargetConstantParents_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
geoTargetConstantParents_ = null;
}
return geoTargetConstantParentsBuilder_;
}
@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.services.GeoTargetConstantSuggestion)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.GeoTargetConstantSuggestion)
private static final com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion();
}
public static com.google.ads.googleads.v10.services.GeoTargetConstantSuggestion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GeoTargetConstantSuggestion 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.services.GeoTargetConstantSuggestion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy