com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest 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/services/geo_target_constant_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;
/**
*
* Request message for
* [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v17.services.GeoTargetConstantService.SuggestGeoTargetConstants].
*
*
* Protobuf type {@code google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest}
*/
public final class SuggestGeoTargetConstantsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest)
SuggestGeoTargetConstantsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SuggestGeoTargetConstantsRequest.newBuilder() to construct.
private SuggestGeoTargetConstantsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SuggestGeoTargetConstantsRequest() {
locale_ = "";
countryCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SuggestGeoTargetConstantsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.class, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.Builder.class);
}
public interface LocationNamesOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames)
com.google.protobuf.MessageOrBuilder {
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @return A list containing the names.
*/
java.util.List
getNamesList();
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @return The count of names.
*/
int getNamesCount();
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param index The index of the element to return.
* @return The names at the given index.
*/
java.lang.String getNames(int index);
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
com.google.protobuf.ByteString
getNamesBytes(int index);
}
/**
*
* A list of location names.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames}
*/
public static final class LocationNames extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames)
LocationNamesOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationNames.newBuilder() to construct.
private LocationNames(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationNames() {
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationNames();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_LocationNames_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_LocationNames_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.class, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.Builder.class);
}
public static final int NAMES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @return A list containing the names.
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
return names_;
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @return The count of names.
*/
public int getNamesCount() {
return names_.size();
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param index The index of the element to return.
* @return The names at the given index.
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.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 {
for (int i = 0; i < names_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < names_.size(); i++) {
dataSize += computeStringSizeNoTag(names_.getRaw(i));
}
size += dataSize;
size += 1 * getNamesList().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.services.SuggestGeoTargetConstantsRequest.LocationNames)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames other = (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) obj;
if (!getNamesList()
.equals(other.getNamesList())) 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 (getNamesCount() > 0) {
hash = (37 * hash) + NAMES_FIELD_NUMBER;
hash = (53 * hash) + getNamesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames 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.services.SuggestGeoTargetConstantsRequest.LocationNames parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames 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.services.SuggestGeoTargetConstantsRequest.LocationNames parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames 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.services.SuggestGeoTargetConstantsRequest.LocationNames parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames 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.services.SuggestGeoTargetConstantsRequest.LocationNames parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames 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.services.SuggestGeoTargetConstantsRequest.LocationNames 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.services.SuggestGeoTargetConstantsRequest.LocationNames 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.services.SuggestGeoTargetConstantsRequest.LocationNames 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 list of location names.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames)
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNamesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_LocationNames_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_LocationNames_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.class, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_LocationNames_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames build() {
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames buildPartial() {
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames result = new com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
names_.makeImmutable();
result.names_ = names_;
}
}
@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.services.SuggestGeoTargetConstantsRequest.LocationNames) {
return mergeFrom((com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames other) {
if (other == com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance()) return this;
if (!other.names_.isEmpty()) {
if (names_.isEmpty()) {
names_ = other.names_;
bitField0_ |= 0x00000001;
} else {
ensureNamesIsMutable();
names_.addAll(other.names_);
}
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 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureNamesIsMutable();
names_.add(s);
break;
} // case 18
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 com.google.protobuf.LazyStringArrayList names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNamesIsMutable() {
if (!names_.isModifiable()) {
names_ = new com.google.protobuf.LazyStringArrayList(names_);
}
bitField0_ |= 0x00000001;
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @return A list containing the names.
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
names_.makeImmutable();
return names_;
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @return The count of names.
*/
public int getNamesCount() {
return names_.size();
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param index The index of the element to return.
* @return The names at the given index.
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param index The index to set the value at.
* @param value The names to set.
* @return This builder for chaining.
*/
public Builder setNames(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNamesIsMutable();
names_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param value The names to add.
* @return This builder for chaining.
*/
public Builder addNames(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNamesIsMutable();
names_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param values The names to add.
* @return This builder for chaining.
*/
public Builder addAllNames(
java.lang.Iterable values) {
ensureNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, names_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @return This builder for chaining.
*/
public Builder clearNames() {
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* A list of location names.
*
*
* repeated string names = 2;
* @param value The bytes of the names to add.
* @return This builder for chaining.
*/
public Builder addNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureNamesIsMutable();
names_.add(value);
bitField0_ |= 0x00000001;
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.services.SuggestGeoTargetConstantsRequest.LocationNames)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames)
private static final com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames();
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationNames 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.services.SuggestGeoTargetConstantsRequest.LocationNames getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GeoTargetsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets)
com.google.protobuf.MessageOrBuilder {
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @return A list containing the geoTargetConstants.
*/
java.util.List
getGeoTargetConstantsList();
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @return The count of geoTargetConstants.
*/
int getGeoTargetConstantsCount();
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @param index The index of the element to return.
* @return The geoTargetConstants at the given index.
*/
java.lang.String getGeoTargetConstants(int index);
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @param index The index of the value to return.
* @return The bytes of the geoTargetConstants at the given index.
*/
com.google.protobuf.ByteString
getGeoTargetConstantsBytes(int index);
}
/**
*
* A list of geo target constant resource names.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets}
*/
public static final class GeoTargets extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets)
GeoTargetsOrBuilder {
private static final long serialVersionUID = 0L;
// Use GeoTargets.newBuilder() to construct.
private GeoTargets(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GeoTargets() {
geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GeoTargets();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_GeoTargets_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_GeoTargets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.class, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.Builder.class);
}
public static final int GEO_TARGET_CONSTANTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @return A list containing the geoTargetConstants.
*/
public com.google.protobuf.ProtocolStringList
getGeoTargetConstantsList() {
return geoTargetConstants_;
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @return The count of geoTargetConstants.
*/
public int getGeoTargetConstantsCount() {
return geoTargetConstants_.size();
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @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);
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @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);
}
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 {
for (int i = 0; i < geoTargetConstants_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, geoTargetConstants_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < geoTargetConstants_.size(); i++) {
dataSize += computeStringSizeNoTag(geoTargetConstants_.getRaw(i));
}
size += dataSize;
size += 1 * getGeoTargetConstantsList().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.services.SuggestGeoTargetConstantsRequest.GeoTargets)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets other = (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) obj;
if (!getGeoTargetConstantsList()
.equals(other.getGeoTargetConstantsList())) 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 (getGeoTargetConstantsCount() > 0) {
hash = (37 * hash) + GEO_TARGET_CONSTANTS_FIELD_NUMBER;
hash = (53 * hash) + getGeoTargetConstantsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets 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.services.SuggestGeoTargetConstantsRequest.GeoTargets parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets 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.services.SuggestGeoTargetConstantsRequest.GeoTargets parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets 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.services.SuggestGeoTargetConstantsRequest.GeoTargets parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets 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.services.SuggestGeoTargetConstantsRequest.GeoTargets parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets 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.services.SuggestGeoTargetConstantsRequest.GeoTargets 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.services.SuggestGeoTargetConstantsRequest.GeoTargets 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.services.SuggestGeoTargetConstantsRequest.GeoTargets 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 list of geo target constant resource names.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets)
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargetsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_GeoTargets_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_GeoTargets_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.class, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_GeoTargets_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets build() {
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets buildPartial() {
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets result = new com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
geoTargetConstants_.makeImmutable();
result.geoTargetConstants_ = geoTargetConstants_;
}
}
@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.services.SuggestGeoTargetConstantsRequest.GeoTargets) {
return mergeFrom((com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets other) {
if (other == com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance()) return this;
if (!other.geoTargetConstants_.isEmpty()) {
if (geoTargetConstants_.isEmpty()) {
geoTargetConstants_ = other.geoTargetConstants_;
bitField0_ |= 0x00000001;
} else {
ensureGeoTargetConstantsIsMutable();
geoTargetConstants_.addAll(other.geoTargetConstants_);
}
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 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureGeoTargetConstantsIsMutable();
geoTargetConstants_.add(s);
break;
} // case 18
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 com.google.protobuf.LazyStringArrayList geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGeoTargetConstantsIsMutable() {
if (!geoTargetConstants_.isModifiable()) {
geoTargetConstants_ = new com.google.protobuf.LazyStringArrayList(geoTargetConstants_);
}
bitField0_ |= 0x00000001;
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @return A list containing the geoTargetConstants.
*/
public com.google.protobuf.ProtocolStringList
getGeoTargetConstantsList() {
geoTargetConstants_.makeImmutable();
return geoTargetConstants_;
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @return The count of geoTargetConstants.
*/
public int getGeoTargetConstantsCount() {
return geoTargetConstants_.size();
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @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);
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @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);
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @return This builder for chaining.
*/
public Builder clearGeoTargetConstants() {
geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* A list of geo target constant resource names.
*
*
* repeated string geo_target_constants = 2;
* @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_ |= 0x00000001;
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.services.SuggestGeoTargetConstantsRequest.GeoTargets)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets)
private static final com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets();
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GeoTargets 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.services.SuggestGeoTargetConstantsRequest.GeoTargets getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int queryCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object query_;
public enum QueryCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LOCATION_NAMES(1),
GEO_TARGETS(2),
QUERY_NOT_SET(0);
private final int value;
private QueryCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QueryCase valueOf(int value) {
return forNumber(value);
}
public static QueryCase forNumber(int value) {
switch (value) {
case 1: return LOCATION_NAMES;
case 2: return GEO_TARGETS;
case 0: return QUERY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public QueryCase
getQueryCase() {
return QueryCase.forNumber(
queryCase_);
}
public static final int LOCALE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object locale_ = "";
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* optional string locale = 6;
* @return Whether the locale field is set.
*/
@java.lang.Override
public boolean hasLocale() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* 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;
}
}
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* 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 COUNTRY_CODE_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object countryCode_ = "";
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @return Whether the countryCode field is set.
*/
@java.lang.Override
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @return The countryCode.
*/
@java.lang.Override
public java.lang.String getCountryCode() {
java.lang.Object ref = countryCode_;
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();
countryCode_ = s;
return s;
}
}
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @return The bytes for countryCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryCodeBytes() {
java.lang.Object ref = countryCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCATION_NAMES_FIELD_NUMBER = 1;
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
* @return Whether the locationNames field is set.
*/
@java.lang.Override
public boolean hasLocationNames() {
return queryCase_ == 1;
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
* @return The locationNames.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames getLocationNames() {
if (queryCase_ == 1) {
return (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) query_;
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance();
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNamesOrBuilder getLocationNamesOrBuilder() {
if (queryCase_ == 1) {
return (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) query_;
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance();
}
public static final int GEO_TARGETS_FIELD_NUMBER = 2;
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
* @return Whether the geoTargets field is set.
*/
@java.lang.Override
public boolean hasGeoTargets() {
return queryCase_ == 2;
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
* @return The geoTargets.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets getGeoTargets() {
if (queryCase_ == 2) {
return (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) query_;
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance();
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargetsOrBuilder getGeoTargetsOrBuilder() {
if (queryCase_ == 2) {
return (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) query_;
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance();
}
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 (queryCase_ == 1) {
output.writeMessage(1, (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) query_);
}
if (queryCase_ == 2) {
output.writeMessage(2, (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) query_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, locale_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, countryCode_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (queryCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) query_);
}
if (queryCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) query_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, locale_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, countryCode_);
}
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.services.SuggestGeoTargetConstantsRequest)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest other = (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest) obj;
if (hasLocale() != other.hasLocale()) return false;
if (hasLocale()) {
if (!getLocale()
.equals(other.getLocale())) return false;
}
if (hasCountryCode() != other.hasCountryCode()) return false;
if (hasCountryCode()) {
if (!getCountryCode()
.equals(other.getCountryCode())) return false;
}
if (!getQueryCase().equals(other.getQueryCase())) return false;
switch (queryCase_) {
case 1:
if (!getLocationNames()
.equals(other.getLocationNames())) return false;
break;
case 2:
if (!getGeoTargets()
.equals(other.getGeoTargets())) return false;
break;
case 0:
default:
}
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 (hasCountryCode()) {
hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCountryCode().hashCode();
}
switch (queryCase_) {
case 1:
hash = (37 * hash) + LOCATION_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getLocationNames().hashCode();
break;
case 2:
hash = (37 * hash) + GEO_TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getGeoTargets().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest 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.services.SuggestGeoTargetConstantsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest 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.services.SuggestGeoTargetConstantsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest 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.services.SuggestGeoTargetConstantsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest 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.services.SuggestGeoTargetConstantsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest 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.services.SuggestGeoTargetConstantsRequest 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.services.SuggestGeoTargetConstantsRequest 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.services.SuggestGeoTargetConstantsRequest 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;
}
/**
*
* Request message for
* [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v17.services.GeoTargetConstantService.SuggestGeoTargetConstants].
*
*
* Protobuf type {@code google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest)
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.class, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
locale_ = "";
countryCode_ = "";
if (locationNamesBuilder_ != null) {
locationNamesBuilder_.clear();
}
if (geoTargetsBuilder_ != null) {
geoTargetsBuilder_.clear();
}
queryCase_ = 0;
query_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.GeoTargetConstantServiceProto.internal_static_google_ads_googleads_v17_services_SuggestGeoTargetConstantsRequest_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest build() {
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest buildPartial() {
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest result = new com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.locale_ = locale_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.countryCode_ = countryCode_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest result) {
result.queryCase_ = queryCase_;
result.query_ = this.query_;
if (queryCase_ == 1 &&
locationNamesBuilder_ != null) {
result.query_ = locationNamesBuilder_.build();
}
if (queryCase_ == 2 &&
geoTargetsBuilder_ != null) {
result.query_ = geoTargetsBuilder_.build();
}
}
@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.services.SuggestGeoTargetConstantsRequest) {
return mergeFrom((com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest other) {
if (other == com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.getDefaultInstance()) return this;
if (other.hasLocale()) {
locale_ = other.locale_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCountryCode()) {
countryCode_ = other.countryCode_;
bitField0_ |= 0x00000002;
onChanged();
}
switch (other.getQueryCase()) {
case LOCATION_NAMES: {
mergeLocationNames(other.getLocationNames());
break;
}
case GEO_TARGETS: {
mergeGeoTargets(other.getGeoTargets());
break;
}
case QUERY_NOT_SET: {
break;
}
}
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 10: {
input.readMessage(
getLocationNamesFieldBuilder().getBuilder(),
extensionRegistry);
queryCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getGeoTargetsFieldBuilder().getBuilder(),
extensionRegistry);
queryCase_ = 2;
break;
} // case 18
case 50: {
locale_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 50
case 58: {
countryCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 58
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 queryCase_ = 0;
private java.lang.Object query_;
public QueryCase
getQueryCase() {
return QueryCase.forNumber(
queryCase_);
}
public Builder clearQuery() {
queryCase_ = 0;
query_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object locale_ = "";
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* optional string locale = 6;
* @return Whether the locale field is set.
*/
public boolean hasLocale() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* 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;
}
}
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* 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;
}
}
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* 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(); }
locale_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* optional string locale = 6;
* @return This builder for chaining.
*/
public Builder clearLocale() {
locale_ = getDefaultInstance().getLocale();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* If possible, returned geo targets are translated using this locale. If not,
* en is used by default. This is also used as a hint for returned geo
* targets.
*
*
* 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);
locale_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object countryCode_ = "";
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @return Whether the countryCode field is set.
*/
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @return The countryCode.
*/
public java.lang.String getCountryCode() {
java.lang.Object ref = countryCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @return The bytes for countryCode.
*/
public com.google.protobuf.ByteString
getCountryCodeBytes() {
java.lang.Object ref = countryCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @param value The countryCode to set.
* @return This builder for chaining.
*/
public Builder setCountryCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
countryCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @return This builder for chaining.
*/
public Builder clearCountryCode() {
countryCode_ = getDefaultInstance().getCountryCode();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Returned geo targets are restricted to this country code.
*
*
* optional string country_code = 7;
* @param value The bytes for countryCode to set.
* @return This builder for chaining.
*/
public Builder setCountryCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
countryCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.Builder, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNamesOrBuilder> locationNamesBuilder_;
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
* @return Whether the locationNames field is set.
*/
@java.lang.Override
public boolean hasLocationNames() {
return queryCase_ == 1;
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
* @return The locationNames.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames getLocationNames() {
if (locationNamesBuilder_ == null) {
if (queryCase_ == 1) {
return (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) query_;
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance();
} else {
if (queryCase_ == 1) {
return locationNamesBuilder_.getMessage();
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance();
}
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
*/
public Builder setLocationNames(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames value) {
if (locationNamesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
locationNamesBuilder_.setMessage(value);
}
queryCase_ = 1;
return this;
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
*/
public Builder setLocationNames(
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.Builder builderForValue) {
if (locationNamesBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
locationNamesBuilder_.setMessage(builderForValue.build());
}
queryCase_ = 1;
return this;
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
*/
public Builder mergeLocationNames(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames value) {
if (locationNamesBuilder_ == null) {
if (queryCase_ == 1 &&
query_ != com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance()) {
query_ = com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.newBuilder((com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) query_)
.mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
if (queryCase_ == 1) {
locationNamesBuilder_.mergeFrom(value);
} else {
locationNamesBuilder_.setMessage(value);
}
}
queryCase_ = 1;
return this;
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
*/
public Builder clearLocationNames() {
if (locationNamesBuilder_ == null) {
if (queryCase_ == 1) {
queryCase_ = 0;
query_ = null;
onChanged();
}
} else {
if (queryCase_ == 1) {
queryCase_ = 0;
query_ = null;
}
locationNamesBuilder_.clear();
}
return this;
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
*/
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.Builder getLocationNamesBuilder() {
return getLocationNamesFieldBuilder().getBuilder();
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNamesOrBuilder getLocationNamesOrBuilder() {
if ((queryCase_ == 1) && (locationNamesBuilder_ != null)) {
return locationNamesBuilder_.getMessageOrBuilder();
} else {
if (queryCase_ == 1) {
return (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) query_;
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance();
}
}
/**
*
* The location names to search by. At most 25 names can be set.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.Builder, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNamesOrBuilder>
getLocationNamesFieldBuilder() {
if (locationNamesBuilder_ == null) {
if (!(queryCase_ == 1)) {
query_ = com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.getDefaultInstance();
}
locationNamesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames.Builder, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNamesOrBuilder>(
(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.LocationNames) query_,
getParentForChildren(),
isClean());
query_ = null;
}
queryCase_ = 1;
onChanged();
return locationNamesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.Builder, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargetsOrBuilder> geoTargetsBuilder_;
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
* @return Whether the geoTargets field is set.
*/
@java.lang.Override
public boolean hasGeoTargets() {
return queryCase_ == 2;
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
* @return The geoTargets.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets getGeoTargets() {
if (geoTargetsBuilder_ == null) {
if (queryCase_ == 2) {
return (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) query_;
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance();
} else {
if (queryCase_ == 2) {
return geoTargetsBuilder_.getMessage();
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance();
}
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
*/
public Builder setGeoTargets(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets value) {
if (geoTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
geoTargetsBuilder_.setMessage(value);
}
queryCase_ = 2;
return this;
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
*/
public Builder setGeoTargets(
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.Builder builderForValue) {
if (geoTargetsBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
geoTargetsBuilder_.setMessage(builderForValue.build());
}
queryCase_ = 2;
return this;
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
*/
public Builder mergeGeoTargets(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets value) {
if (geoTargetsBuilder_ == null) {
if (queryCase_ == 2 &&
query_ != com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance()) {
query_ = com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.newBuilder((com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) query_)
.mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
if (queryCase_ == 2) {
geoTargetsBuilder_.mergeFrom(value);
} else {
geoTargetsBuilder_.setMessage(value);
}
}
queryCase_ = 2;
return this;
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
*/
public Builder clearGeoTargets() {
if (geoTargetsBuilder_ == null) {
if (queryCase_ == 2) {
queryCase_ = 0;
query_ = null;
onChanged();
}
} else {
if (queryCase_ == 2) {
queryCase_ = 0;
query_ = null;
}
geoTargetsBuilder_.clear();
}
return this;
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
*/
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.Builder getGeoTargetsBuilder() {
return getGeoTargetsFieldBuilder().getBuilder();
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargetsOrBuilder getGeoTargetsOrBuilder() {
if ((queryCase_ == 2) && (geoTargetsBuilder_ != null)) {
return geoTargetsBuilder_.getMessageOrBuilder();
} else {
if (queryCase_ == 2) {
return (com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) query_;
}
return com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance();
}
}
/**
*
* The geo target constant resource names to filter by.
*
*
* .google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.Builder, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargetsOrBuilder>
getGeoTargetsFieldBuilder() {
if (geoTargetsBuilder_ == null) {
if (!(queryCase_ == 2)) {
query_ = com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.getDefaultInstance();
}
geoTargetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets.Builder, com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargetsOrBuilder>(
(com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest.GeoTargets) query_,
getParentForChildren(),
isClean());
query_ = null;
}
queryCase_ = 2;
onChanged();
return geoTargetsBuilder_;
}
@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.services.SuggestGeoTargetConstantsRequest)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest)
private static final com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest();
}
public static com.google.ads.googleads.v17.services.SuggestGeoTargetConstantsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SuggestGeoTargetConstantsRequest 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.services.SuggestGeoTargetConstantsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy