com.google.ads.googleads.v17.common.ClickLocation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/click_location.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* Location criteria associated with a click.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.ClickLocation}
*/
public final class ClickLocation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.ClickLocation)
ClickLocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClickLocation.newBuilder() to construct.
private ClickLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClickLocation() {
city_ = "";
country_ = "";
metro_ = "";
mostSpecific_ = "";
region_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClickLocation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ClickLocationProto.internal_static_google_ads_googleads_v17_common_ClickLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.ClickLocationProto.internal_static_google_ads_googleads_v17_common_ClickLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.ClickLocation.class, com.google.ads.googleads.v17.common.ClickLocation.Builder.class);
}
private int bitField0_;
public static final int CITY_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object city_ = "";
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @return Whether the city field is set.
*/
@java.lang.Override
public boolean hasCity() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @return The city.
*/
@java.lang.Override
public java.lang.String getCity() {
java.lang.Object ref = city_;
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();
city_ = s;
return s;
}
}
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @return The bytes for city.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCityBytes() {
java.lang.Object ref = city_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
city_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRY_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object country_ = "";
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @return Whether the country field is set.
*/
@java.lang.Override
public boolean hasCountry() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @return The country.
*/
@java.lang.Override
public java.lang.String getCountry() {
java.lang.Object ref = country_;
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();
country_ = s;
return s;
}
}
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @return The bytes for country.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryBytes() {
java.lang.Object ref = country_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
country_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METRO_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object metro_ = "";
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @return Whether the metro field is set.
*/
@java.lang.Override
public boolean hasMetro() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @return The metro.
*/
@java.lang.Override
public java.lang.String getMetro() {
java.lang.Object ref = metro_;
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();
metro_ = s;
return s;
}
}
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @return The bytes for metro.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMetroBytes() {
java.lang.Object ref = metro_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metro_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MOST_SPECIFIC_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object mostSpecific_ = "";
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @return Whether the mostSpecific field is set.
*/
@java.lang.Override
public boolean hasMostSpecific() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @return The mostSpecific.
*/
@java.lang.Override
public java.lang.String getMostSpecific() {
java.lang.Object ref = mostSpecific_;
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();
mostSpecific_ = s;
return s;
}
}
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @return The bytes for mostSpecific.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMostSpecificBytes() {
java.lang.Object ref = mostSpecific_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mostSpecific_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGION_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object region_ = "";
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @return Whether the region field is set.
*/
@java.lang.Override
public boolean hasRegion() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @return The region.
*/
@java.lang.Override
public java.lang.String getRegion() {
java.lang.Object ref = region_;
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();
region_ = s;
return s;
}
}
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @return The bytes for region.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, city_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, country_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, metro_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, mostSpecific_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, region_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, city_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, country_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, metro_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, mostSpecific_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, region_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.common.ClickLocation)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.ClickLocation other = (com.google.ads.googleads.v17.common.ClickLocation) obj;
if (hasCity() != other.hasCity()) return false;
if (hasCity()) {
if (!getCity()
.equals(other.getCity())) return false;
}
if (hasCountry() != other.hasCountry()) return false;
if (hasCountry()) {
if (!getCountry()
.equals(other.getCountry())) return false;
}
if (hasMetro() != other.hasMetro()) return false;
if (hasMetro()) {
if (!getMetro()
.equals(other.getMetro())) return false;
}
if (hasMostSpecific() != other.hasMostSpecific()) return false;
if (hasMostSpecific()) {
if (!getMostSpecific()
.equals(other.getMostSpecific())) return false;
}
if (hasRegion() != other.hasRegion()) return false;
if (hasRegion()) {
if (!getRegion()
.equals(other.getRegion())) 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 (hasCity()) {
hash = (37 * hash) + CITY_FIELD_NUMBER;
hash = (53 * hash) + getCity().hashCode();
}
if (hasCountry()) {
hash = (37 * hash) + COUNTRY_FIELD_NUMBER;
hash = (53 * hash) + getCountry().hashCode();
}
if (hasMetro()) {
hash = (37 * hash) + METRO_FIELD_NUMBER;
hash = (53 * hash) + getMetro().hashCode();
}
if (hasMostSpecific()) {
hash = (37 * hash) + MOST_SPECIFIC_FIELD_NUMBER;
hash = (53 * hash) + getMostSpecific().hashCode();
}
if (hasRegion()) {
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.ClickLocation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.common.ClickLocation 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;
}
/**
*
* Location criteria associated with a click.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.ClickLocation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.ClickLocation)
com.google.ads.googleads.v17.common.ClickLocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ClickLocationProto.internal_static_google_ads_googleads_v17_common_ClickLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.ClickLocationProto.internal_static_google_ads_googleads_v17_common_ClickLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.ClickLocation.class, com.google.ads.googleads.v17.common.ClickLocation.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.ClickLocation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
city_ = "";
country_ = "";
metro_ = "";
mostSpecific_ = "";
region_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.ClickLocationProto.internal_static_google_ads_googleads_v17_common_ClickLocation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.ClickLocation getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.ClickLocation build() {
com.google.ads.googleads.v17.common.ClickLocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.ClickLocation buildPartial() {
com.google.ads.googleads.v17.common.ClickLocation result = new com.google.ads.googleads.v17.common.ClickLocation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.ClickLocation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.city_ = city_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.country_ = country_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.metro_ = metro_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.mostSpecific_ = mostSpecific_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.region_ = region_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.common.ClickLocation) {
return mergeFrom((com.google.ads.googleads.v17.common.ClickLocation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.ClickLocation other) {
if (other == com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance()) return this;
if (other.hasCity()) {
city_ = other.city_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCountry()) {
country_ = other.country_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasMetro()) {
metro_ = other.metro_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasMostSpecific()) {
mostSpecific_ = other.mostSpecific_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasRegion()) {
region_ = other.region_;
bitField0_ |= 0x00000010;
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 50: {
city_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 50
case 58: {
country_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 58
case 66: {
metro_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 66
case 74: {
mostSpecific_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 74
case 82: {
region_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object city_ = "";
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @return Whether the city field is set.
*/
public boolean hasCity() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @return The city.
*/
public java.lang.String getCity() {
java.lang.Object ref = city_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
city_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @return The bytes for city.
*/
public com.google.protobuf.ByteString
getCityBytes() {
java.lang.Object ref = city_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
city_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @param value The city to set.
* @return This builder for chaining.
*/
public Builder setCity(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
city_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @return This builder for chaining.
*/
public Builder clearCity() {
city_ = getDefaultInstance().getCity();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The city location criterion associated with the impression.
*
*
* optional string city = 6;
* @param value The bytes for city to set.
* @return This builder for chaining.
*/
public Builder setCityBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
city_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object country_ = "";
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @return Whether the country field is set.
*/
public boolean hasCountry() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @return The country.
*/
public java.lang.String getCountry() {
java.lang.Object ref = country_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
country_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @return The bytes for country.
*/
public com.google.protobuf.ByteString
getCountryBytes() {
java.lang.Object ref = country_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
country_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @param value The country to set.
* @return This builder for chaining.
*/
public Builder setCountry(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
country_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @return This builder for chaining.
*/
public Builder clearCountry() {
country_ = getDefaultInstance().getCountry();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The country location criterion associated with the impression.
*
*
* optional string country = 7;
* @param value The bytes for country to set.
* @return This builder for chaining.
*/
public Builder setCountryBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
country_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object metro_ = "";
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @return Whether the metro field is set.
*/
public boolean hasMetro() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @return The metro.
*/
public java.lang.String getMetro() {
java.lang.Object ref = metro_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
metro_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @return The bytes for metro.
*/
public com.google.protobuf.ByteString
getMetroBytes() {
java.lang.Object ref = metro_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metro_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @param value The metro to set.
* @return This builder for chaining.
*/
public Builder setMetro(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
metro_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @return This builder for chaining.
*/
public Builder clearMetro() {
metro_ = getDefaultInstance().getMetro();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* The metro location criterion associated with the impression.
*
*
* optional string metro = 8;
* @param value The bytes for metro to set.
* @return This builder for chaining.
*/
public Builder setMetroBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
metro_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object mostSpecific_ = "";
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @return Whether the mostSpecific field is set.
*/
public boolean hasMostSpecific() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @return The mostSpecific.
*/
public java.lang.String getMostSpecific() {
java.lang.Object ref = mostSpecific_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mostSpecific_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @return The bytes for mostSpecific.
*/
public com.google.protobuf.ByteString
getMostSpecificBytes() {
java.lang.Object ref = mostSpecific_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mostSpecific_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @param value The mostSpecific to set.
* @return This builder for chaining.
*/
public Builder setMostSpecific(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
mostSpecific_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @return This builder for chaining.
*/
public Builder clearMostSpecific() {
mostSpecific_ = getDefaultInstance().getMostSpecific();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The most specific location criterion associated with the impression.
*
*
* optional string most_specific = 9;
* @param value The bytes for mostSpecific to set.
* @return This builder for chaining.
*/
public Builder setMostSpecificBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
mostSpecific_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object region_ = "";
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @return Whether the region field is set.
*/
public boolean hasRegion() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @return The region.
*/
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
region_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @return The bytes for region.
*/
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @param value The region to set.
* @return This builder for chaining.
*/
public Builder setRegion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
region_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @return This builder for chaining.
*/
public Builder clearRegion() {
region_ = getDefaultInstance().getRegion();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* The region location criterion associated with the impression.
*
*
* optional string region = 10;
* @param value The bytes for region to set.
* @return This builder for chaining.
*/
public Builder setRegionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
region_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.ClickLocation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.ClickLocation)
private static final com.google.ads.googleads.v17.common.ClickLocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.ClickLocation();
}
public static com.google.ads.googleads.v17.common.ClickLocation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClickLocation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.ClickLocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy