com.google.ads.googleads.v17.common.AddressInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/criteria.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* Address for proximity criterion.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.AddressInfo}
*/
public final class AddressInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.AddressInfo)
AddressInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddressInfo.newBuilder() to construct.
private AddressInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddressInfo() {
postalCode_ = "";
provinceCode_ = "";
countryCode_ = "";
provinceName_ = "";
streetAddress_ = "";
streetAddress2_ = "";
cityName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddressInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_AddressInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_AddressInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.AddressInfo.class, com.google.ads.googleads.v17.common.AddressInfo.Builder.class);
}
private int bitField0_;
public static final int POSTAL_CODE_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object postalCode_ = "";
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @return Whether the postalCode field is set.
*/
@java.lang.Override
public boolean hasPostalCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @return The postalCode.
*/
@java.lang.Override
public java.lang.String getPostalCode() {
java.lang.Object ref = postalCode_;
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();
postalCode_ = s;
return s;
}
}
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @return The bytes for postalCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPostalCodeBytes() {
java.lang.Object ref = postalCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
postalCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROVINCE_CODE_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object provinceCode_ = "";
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @return Whether the provinceCode field is set.
*/
@java.lang.Override
public boolean hasProvinceCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @return The provinceCode.
*/
@java.lang.Override
public java.lang.String getProvinceCode() {
java.lang.Object ref = provinceCode_;
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();
provinceCode_ = s;
return s;
}
}
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @return The bytes for provinceCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProvinceCodeBytes() {
java.lang.Object ref = provinceCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
provinceCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRY_CODE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object countryCode_ = "";
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @return Whether the countryCode field is set.
*/
@java.lang.Override
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @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;
}
}
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @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 PROVINCE_NAME_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object provinceName_ = "";
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @return Whether the provinceName field is set.
*/
@java.lang.Override
public boolean hasProvinceName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @return The provinceName.
*/
@java.lang.Override
public java.lang.String getProvinceName() {
java.lang.Object ref = provinceName_;
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();
provinceName_ = s;
return s;
}
}
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @return The bytes for provinceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProvinceNameBytes() {
java.lang.Object ref = provinceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
provinceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STREET_ADDRESS_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object streetAddress_ = "";
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @return Whether the streetAddress field is set.
*/
@java.lang.Override
public boolean hasStreetAddress() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @return The streetAddress.
*/
@java.lang.Override
public java.lang.String getStreetAddress() {
java.lang.Object ref = streetAddress_;
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();
streetAddress_ = s;
return s;
}
}
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @return The bytes for streetAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStreetAddressBytes() {
java.lang.Object ref = streetAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
streetAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STREET_ADDRESS2_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object streetAddress2_ = "";
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @return Whether the streetAddress2 field is set.
*/
@java.lang.Override
public boolean hasStreetAddress2() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @return The streetAddress2.
*/
@java.lang.Override
public java.lang.String getStreetAddress2() {
java.lang.Object ref = streetAddress2_;
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();
streetAddress2_ = s;
return s;
}
}
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @return The bytes for streetAddress2.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStreetAddress2Bytes() {
java.lang.Object ref = streetAddress2_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
streetAddress2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CITY_NAME_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object cityName_ = "";
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @return Whether the cityName field is set.
*/
@java.lang.Override
public boolean hasCityName() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @return The cityName.
*/
@java.lang.Override
public java.lang.String getCityName() {
java.lang.Object ref = cityName_;
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();
cityName_ = s;
return s;
}
}
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @return The bytes for cityName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCityNameBytes() {
java.lang.Object ref = cityName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cityName_ = 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, 8, postalCode_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, provinceCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, countryCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, provinceName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, streetAddress_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, streetAddress2_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, cityName_);
}
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(8, postalCode_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, provinceCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, countryCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, provinceName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, streetAddress_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, streetAddress2_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, cityName_);
}
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.AddressInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.AddressInfo other = (com.google.ads.googleads.v17.common.AddressInfo) obj;
if (hasPostalCode() != other.hasPostalCode()) return false;
if (hasPostalCode()) {
if (!getPostalCode()
.equals(other.getPostalCode())) return false;
}
if (hasProvinceCode() != other.hasProvinceCode()) return false;
if (hasProvinceCode()) {
if (!getProvinceCode()
.equals(other.getProvinceCode())) return false;
}
if (hasCountryCode() != other.hasCountryCode()) return false;
if (hasCountryCode()) {
if (!getCountryCode()
.equals(other.getCountryCode())) return false;
}
if (hasProvinceName() != other.hasProvinceName()) return false;
if (hasProvinceName()) {
if (!getProvinceName()
.equals(other.getProvinceName())) return false;
}
if (hasStreetAddress() != other.hasStreetAddress()) return false;
if (hasStreetAddress()) {
if (!getStreetAddress()
.equals(other.getStreetAddress())) return false;
}
if (hasStreetAddress2() != other.hasStreetAddress2()) return false;
if (hasStreetAddress2()) {
if (!getStreetAddress2()
.equals(other.getStreetAddress2())) return false;
}
if (hasCityName() != other.hasCityName()) return false;
if (hasCityName()) {
if (!getCityName()
.equals(other.getCityName())) 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 (hasPostalCode()) {
hash = (37 * hash) + POSTAL_CODE_FIELD_NUMBER;
hash = (53 * hash) + getPostalCode().hashCode();
}
if (hasProvinceCode()) {
hash = (37 * hash) + PROVINCE_CODE_FIELD_NUMBER;
hash = (53 * hash) + getProvinceCode().hashCode();
}
if (hasCountryCode()) {
hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCountryCode().hashCode();
}
if (hasProvinceName()) {
hash = (37 * hash) + PROVINCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getProvinceName().hashCode();
}
if (hasStreetAddress()) {
hash = (37 * hash) + STREET_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getStreetAddress().hashCode();
}
if (hasStreetAddress2()) {
hash = (37 * hash) + STREET_ADDRESS2_FIELD_NUMBER;
hash = (53 * hash) + getStreetAddress2().hashCode();
}
if (hasCityName()) {
hash = (37 * hash) + CITY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCityName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.AddressInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.AddressInfo 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.AddressInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.AddressInfo 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.AddressInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.AddressInfo 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.AddressInfo 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.AddressInfo 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.AddressInfo 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.AddressInfo 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.AddressInfo 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.AddressInfo 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.AddressInfo 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;
}
/**
*
* Address for proximity criterion.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.AddressInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.AddressInfo)
com.google.ads.googleads.v17.common.AddressInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_AddressInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_AddressInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.AddressInfo.class, com.google.ads.googleads.v17.common.AddressInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.AddressInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
postalCode_ = "";
provinceCode_ = "";
countryCode_ = "";
provinceName_ = "";
streetAddress_ = "";
streetAddress2_ = "";
cityName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_AddressInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.AddressInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.AddressInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.AddressInfo build() {
com.google.ads.googleads.v17.common.AddressInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.AddressInfo buildPartial() {
com.google.ads.googleads.v17.common.AddressInfo result = new com.google.ads.googleads.v17.common.AddressInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.AddressInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.postalCode_ = postalCode_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.provinceCode_ = provinceCode_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.countryCode_ = countryCode_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.provinceName_ = provinceName_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.streetAddress_ = streetAddress_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.streetAddress2_ = streetAddress2_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.cityName_ = cityName_;
to_bitField0_ |= 0x00000040;
}
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.AddressInfo) {
return mergeFrom((com.google.ads.googleads.v17.common.AddressInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.AddressInfo other) {
if (other == com.google.ads.googleads.v17.common.AddressInfo.getDefaultInstance()) return this;
if (other.hasPostalCode()) {
postalCode_ = other.postalCode_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasProvinceCode()) {
provinceCode_ = other.provinceCode_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCountryCode()) {
countryCode_ = other.countryCode_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasProvinceName()) {
provinceName_ = other.provinceName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasStreetAddress()) {
streetAddress_ = other.streetAddress_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasStreetAddress2()) {
streetAddress2_ = other.streetAddress2_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasCityName()) {
cityName_ = other.cityName_;
bitField0_ |= 0x00000040;
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 66: {
postalCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 66
case 74: {
provinceCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 74
case 82: {
countryCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 82
case 90: {
provinceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 90
case 98: {
streetAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 98
case 106: {
streetAddress2_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 106
case 114: {
cityName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 114
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 postalCode_ = "";
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @return Whether the postalCode field is set.
*/
public boolean hasPostalCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @return The postalCode.
*/
public java.lang.String getPostalCode() {
java.lang.Object ref = postalCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
postalCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @return The bytes for postalCode.
*/
public com.google.protobuf.ByteString
getPostalCodeBytes() {
java.lang.Object ref = postalCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
postalCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @param value The postalCode to set.
* @return This builder for chaining.
*/
public Builder setPostalCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
postalCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @return This builder for chaining.
*/
public Builder clearPostalCode() {
postalCode_ = getDefaultInstance().getPostalCode();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Postal code.
*
*
* optional string postal_code = 8;
* @param value The bytes for postalCode to set.
* @return This builder for chaining.
*/
public Builder setPostalCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
postalCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object provinceCode_ = "";
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @return Whether the provinceCode field is set.
*/
public boolean hasProvinceCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @return The provinceCode.
*/
public java.lang.String getProvinceCode() {
java.lang.Object ref = provinceCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
provinceCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @return The bytes for provinceCode.
*/
public com.google.protobuf.ByteString
getProvinceCodeBytes() {
java.lang.Object ref = provinceCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
provinceCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @param value The provinceCode to set.
* @return This builder for chaining.
*/
public Builder setProvinceCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
provinceCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @return This builder for chaining.
*/
public Builder clearProvinceCode() {
provinceCode_ = getDefaultInstance().getProvinceCode();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Province or state code.
*
*
* optional string province_code = 9;
* @param value The bytes for provinceCode to set.
* @return This builder for chaining.
*/
public Builder setProvinceCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
provinceCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object countryCode_ = "";
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @return Whether the countryCode field is set.
*/
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @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;
}
}
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @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;
}
}
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @return This builder for chaining.
*/
public Builder clearCountryCode() {
countryCode_ = getDefaultInstance().getCountryCode();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Country code.
*
*
* optional string country_code = 10;
* @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_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object provinceName_ = "";
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @return Whether the provinceName field is set.
*/
public boolean hasProvinceName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @return The provinceName.
*/
public java.lang.String getProvinceName() {
java.lang.Object ref = provinceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
provinceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @return The bytes for provinceName.
*/
public com.google.protobuf.ByteString
getProvinceNameBytes() {
java.lang.Object ref = provinceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
provinceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @param value The provinceName to set.
* @return This builder for chaining.
*/
public Builder setProvinceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
provinceName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @return This builder for chaining.
*/
public Builder clearProvinceName() {
provinceName_ = getDefaultInstance().getProvinceName();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Province or state name.
*
*
* optional string province_name = 11;
* @param value The bytes for provinceName to set.
* @return This builder for chaining.
*/
public Builder setProvinceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
provinceName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object streetAddress_ = "";
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @return Whether the streetAddress field is set.
*/
public boolean hasStreetAddress() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @return The streetAddress.
*/
public java.lang.String getStreetAddress() {
java.lang.Object ref = streetAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
streetAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @return The bytes for streetAddress.
*/
public com.google.protobuf.ByteString
getStreetAddressBytes() {
java.lang.Object ref = streetAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
streetAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @param value The streetAddress to set.
* @return This builder for chaining.
*/
public Builder setStreetAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
streetAddress_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @return This builder for chaining.
*/
public Builder clearStreetAddress() {
streetAddress_ = getDefaultInstance().getStreetAddress();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Street address line 1.
*
*
* optional string street_address = 12;
* @param value The bytes for streetAddress to set.
* @return This builder for chaining.
*/
public Builder setStreetAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
streetAddress_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object streetAddress2_ = "";
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @return Whether the streetAddress2 field is set.
*/
public boolean hasStreetAddress2() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @return The streetAddress2.
*/
public java.lang.String getStreetAddress2() {
java.lang.Object ref = streetAddress2_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
streetAddress2_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @return The bytes for streetAddress2.
*/
public com.google.protobuf.ByteString
getStreetAddress2Bytes() {
java.lang.Object ref = streetAddress2_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
streetAddress2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @param value The streetAddress2 to set.
* @return This builder for chaining.
*/
public Builder setStreetAddress2(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
streetAddress2_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @return This builder for chaining.
*/
public Builder clearStreetAddress2() {
streetAddress2_ = getDefaultInstance().getStreetAddress2();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Street address line 2. This field is write-only. It is only used for
* calculating the longitude and latitude of an address when geo_point is
* empty.
*
*
* optional string street_address2 = 13;
* @param value The bytes for streetAddress2 to set.
* @return This builder for chaining.
*/
public Builder setStreetAddress2Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
streetAddress2_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object cityName_ = "";
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @return Whether the cityName field is set.
*/
public boolean hasCityName() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @return The cityName.
*/
public java.lang.String getCityName() {
java.lang.Object ref = cityName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cityName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @return The bytes for cityName.
*/
public com.google.protobuf.ByteString
getCityNameBytes() {
java.lang.Object ref = cityName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cityName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @param value The cityName to set.
* @return This builder for chaining.
*/
public Builder setCityName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
cityName_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @return This builder for chaining.
*/
public Builder clearCityName() {
cityName_ = getDefaultInstance().getCityName();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Name of the city.
*
*
* optional string city_name = 14;
* @param value The bytes for cityName to set.
* @return This builder for chaining.
*/
public Builder setCityNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
cityName_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.AddressInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.AddressInfo)
private static final com.google.ads.googleads.v17.common.AddressInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.AddressInfo();
}
public static com.google.ads.googleads.v17.common.AddressInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddressInfo 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.AddressInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy