com.google.ads.googleads.v17.common.OfflineUserAddressInfo 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/offline_user_data.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* Address identifier of offline data.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.OfflineUserAddressInfo}
*/
public final class OfflineUserAddressInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.OfflineUserAddressInfo)
OfflineUserAddressInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use OfflineUserAddressInfo.newBuilder() to construct.
private OfflineUserAddressInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OfflineUserAddressInfo() {
hashedFirstName_ = "";
hashedLastName_ = "";
city_ = "";
state_ = "";
countryCode_ = "";
postalCode_ = "";
hashedStreetAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OfflineUserAddressInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_OfflineUserAddressInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_OfflineUserAddressInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.OfflineUserAddressInfo.class, com.google.ads.googleads.v17.common.OfflineUserAddressInfo.Builder.class);
}
private int bitField0_;
public static final int HASHED_FIRST_NAME_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object hashedFirstName_ = "";
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @return Whether the hashedFirstName field is set.
*/
@java.lang.Override
public boolean hasHashedFirstName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @return The hashedFirstName.
*/
@java.lang.Override
public java.lang.String getHashedFirstName() {
java.lang.Object ref = hashedFirstName_;
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();
hashedFirstName_ = s;
return s;
}
}
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @return The bytes for hashedFirstName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashedFirstNameBytes() {
java.lang.Object ref = hashedFirstName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashedFirstName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASHED_LAST_NAME_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object hashedLastName_ = "";
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @return Whether the hashedLastName field is set.
*/
@java.lang.Override
public boolean hasHashedLastName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @return The hashedLastName.
*/
@java.lang.Override
public java.lang.String getHashedLastName() {
java.lang.Object ref = hashedLastName_;
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();
hashedLastName_ = s;
return s;
}
}
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @return The bytes for hashedLastName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashedLastNameBytes() {
java.lang.Object ref = hashedLastName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashedLastName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CITY_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object city_ = "";
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @return Whether the city field is set.
*/
@java.lang.Override
public boolean hasCity() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @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;
}
}
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @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 STATE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object state_ = "";
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @return Whether the state field is set.
*/
@java.lang.Override
public boolean hasState() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @return The state.
*/
@java.lang.Override
public java.lang.String getState() {
java.lang.Object ref = state_;
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();
state_ = s;
return s;
}
}
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @return The bytes for state.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRY_CODE_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object countryCode_ = "";
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @return Whether the countryCode field is set.
*/
@java.lang.Override
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @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;
}
}
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @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 POSTAL_CODE_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object postalCode_ = "";
/**
*
* Postal code of the user's address.
*
*
* optional string postal_code = 12;
* @return Whether the postalCode field is set.
*/
@java.lang.Override
public boolean hasPostalCode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Postal code of the user's address.
*
*
* optional string postal_code = 12;
* @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 of the user's address.
*
*
* optional string postal_code = 12;
* @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 HASHED_STREET_ADDRESS_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object hashedStreetAddress_ = "";
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @return Whether the hashedStreetAddress field is set.
*/
@java.lang.Override
public boolean hasHashedStreetAddress() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @return The hashedStreetAddress.
*/
@java.lang.Override
public java.lang.String getHashedStreetAddress() {
java.lang.Object ref = hashedStreetAddress_;
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();
hashedStreetAddress_ = s;
return s;
}
}
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @return The bytes for hashedStreetAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashedStreetAddressBytes() {
java.lang.Object ref = hashedStreetAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashedStreetAddress_ = 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, 7, hashedFirstName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hashedLastName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, city_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, state_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, countryCode_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, postalCode_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, hashedStreetAddress_);
}
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(7, hashedFirstName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hashedLastName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, city_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, state_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, countryCode_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, postalCode_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, hashedStreetAddress_);
}
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.OfflineUserAddressInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.OfflineUserAddressInfo other = (com.google.ads.googleads.v17.common.OfflineUserAddressInfo) obj;
if (hasHashedFirstName() != other.hasHashedFirstName()) return false;
if (hasHashedFirstName()) {
if (!getHashedFirstName()
.equals(other.getHashedFirstName())) return false;
}
if (hasHashedLastName() != other.hasHashedLastName()) return false;
if (hasHashedLastName()) {
if (!getHashedLastName()
.equals(other.getHashedLastName())) return false;
}
if (hasCity() != other.hasCity()) return false;
if (hasCity()) {
if (!getCity()
.equals(other.getCity())) return false;
}
if (hasState() != other.hasState()) return false;
if (hasState()) {
if (!getState()
.equals(other.getState())) return false;
}
if (hasCountryCode() != other.hasCountryCode()) return false;
if (hasCountryCode()) {
if (!getCountryCode()
.equals(other.getCountryCode())) return false;
}
if (hasPostalCode() != other.hasPostalCode()) return false;
if (hasPostalCode()) {
if (!getPostalCode()
.equals(other.getPostalCode())) return false;
}
if (hasHashedStreetAddress() != other.hasHashedStreetAddress()) return false;
if (hasHashedStreetAddress()) {
if (!getHashedStreetAddress()
.equals(other.getHashedStreetAddress())) 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 (hasHashedFirstName()) {
hash = (37 * hash) + HASHED_FIRST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getHashedFirstName().hashCode();
}
if (hasHashedLastName()) {
hash = (37 * hash) + HASHED_LAST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getHashedLastName().hashCode();
}
if (hasCity()) {
hash = (37 * hash) + CITY_FIELD_NUMBER;
hash = (53 * hash) + getCity().hashCode();
}
if (hasState()) {
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
}
if (hasCountryCode()) {
hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCountryCode().hashCode();
}
if (hasPostalCode()) {
hash = (37 * hash) + POSTAL_CODE_FIELD_NUMBER;
hash = (53 * hash) + getPostalCode().hashCode();
}
if (hasHashedStreetAddress()) {
hash = (37 * hash) + HASHED_STREET_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getHashedStreetAddress().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.OfflineUserAddressInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.OfflineUserAddressInfo 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.OfflineUserAddressInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.OfflineUserAddressInfo 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.OfflineUserAddressInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.OfflineUserAddressInfo 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.OfflineUserAddressInfo 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.OfflineUserAddressInfo 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.OfflineUserAddressInfo 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.OfflineUserAddressInfo 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.OfflineUserAddressInfo 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.OfflineUserAddressInfo 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.OfflineUserAddressInfo 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 identifier of offline data.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.OfflineUserAddressInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.OfflineUserAddressInfo)
com.google.ads.googleads.v17.common.OfflineUserAddressInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_OfflineUserAddressInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_OfflineUserAddressInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.OfflineUserAddressInfo.class, com.google.ads.googleads.v17.common.OfflineUserAddressInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.OfflineUserAddressInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hashedFirstName_ = "";
hashedLastName_ = "";
city_ = "";
state_ = "";
countryCode_ = "";
postalCode_ = "";
hashedStreetAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.OfflineUserDataProto.internal_static_google_ads_googleads_v17_common_OfflineUserAddressInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.OfflineUserAddressInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.OfflineUserAddressInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.OfflineUserAddressInfo build() {
com.google.ads.googleads.v17.common.OfflineUserAddressInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.OfflineUserAddressInfo buildPartial() {
com.google.ads.googleads.v17.common.OfflineUserAddressInfo result = new com.google.ads.googleads.v17.common.OfflineUserAddressInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.OfflineUserAddressInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hashedFirstName_ = hashedFirstName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hashedLastName_ = hashedLastName_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.city_ = city_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.state_ = state_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.countryCode_ = countryCode_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.postalCode_ = postalCode_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.hashedStreetAddress_ = hashedStreetAddress_;
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.OfflineUserAddressInfo) {
return mergeFrom((com.google.ads.googleads.v17.common.OfflineUserAddressInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.OfflineUserAddressInfo other) {
if (other == com.google.ads.googleads.v17.common.OfflineUserAddressInfo.getDefaultInstance()) return this;
if (other.hasHashedFirstName()) {
hashedFirstName_ = other.hashedFirstName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasHashedLastName()) {
hashedLastName_ = other.hashedLastName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCity()) {
city_ = other.city_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasState()) {
state_ = other.state_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasCountryCode()) {
countryCode_ = other.countryCode_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasPostalCode()) {
postalCode_ = other.postalCode_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasHashedStreetAddress()) {
hashedStreetAddress_ = other.hashedStreetAddress_;
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 58: {
hashedFirstName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 58
case 66: {
hashedLastName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 66
case 74: {
city_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 74
case 82: {
state_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 82
case 90: {
countryCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 90
case 98: {
postalCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 98
case 106: {
hashedStreetAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 106
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 hashedFirstName_ = "";
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @return Whether the hashedFirstName field is set.
*/
public boolean hasHashedFirstName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @return The hashedFirstName.
*/
public java.lang.String getHashedFirstName() {
java.lang.Object ref = hashedFirstName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hashedFirstName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @return The bytes for hashedFirstName.
*/
public com.google.protobuf.ByteString
getHashedFirstNameBytes() {
java.lang.Object ref = hashedFirstName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashedFirstName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @param value The hashedFirstName to set.
* @return This builder for chaining.
*/
public Builder setHashedFirstName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hashedFirstName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @return This builder for chaining.
*/
public Builder clearHashedFirstName() {
hashedFirstName_ = getDefaultInstance().getHashedFirstName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* First name of the user, which is hashed as SHA-256 after normalized
* (Lowercase all characters; Remove any extra spaces before, after, and in
* between).
*
*
* optional string hashed_first_name = 7;
* @param value The bytes for hashedFirstName to set.
* @return This builder for chaining.
*/
public Builder setHashedFirstNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hashedFirstName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object hashedLastName_ = "";
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @return Whether the hashedLastName field is set.
*/
public boolean hasHashedLastName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @return The hashedLastName.
*/
public java.lang.String getHashedLastName() {
java.lang.Object ref = hashedLastName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hashedLastName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @return The bytes for hashedLastName.
*/
public com.google.protobuf.ByteString
getHashedLastNameBytes() {
java.lang.Object ref = hashedLastName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashedLastName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @param value The hashedLastName to set.
* @return This builder for chaining.
*/
public Builder setHashedLastName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hashedLastName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @return This builder for chaining.
*/
public Builder clearHashedLastName() {
hashedLastName_ = getDefaultInstance().getHashedLastName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Last name of the user, which is hashed as SHA-256 after normalized (lower
* case only and no punctuation).
*
*
* optional string hashed_last_name = 8;
* @param value The bytes for hashedLastName to set.
* @return This builder for chaining.
*/
public Builder setHashedLastNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hashedLastName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object city_ = "";
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @return Whether the city field is set.
*/
public boolean hasCity() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @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;
}
}
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @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;
}
}
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @return This builder for chaining.
*/
public Builder clearCity() {
city_ = getDefaultInstance().getCity();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* City of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string city = 9;
* @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_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object state_ = "";
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @return Whether the state field is set.
*/
public boolean hasState() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @return The state.
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
state_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @return The bytes for state.
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
state_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = getDefaultInstance().getState();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* State code of the address. Only accepted for Store Sales and
* ConversionAdjustmentUploadService.
*
*
* optional string state = 10;
* @param value The bytes for state to set.
* @return This builder for chaining.
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
state_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object countryCode_ = "";
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @return Whether the countryCode field is set.
*/
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @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;
}
}
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @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;
}
}
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @return This builder for chaining.
*/
public Builder clearCountryCode() {
countryCode_ = getDefaultInstance().getCountryCode();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
*
*
* optional string country_code = 11;
* @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_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object postalCode_ = "";
/**
*
* Postal code of the user's address.
*
*
* optional string postal_code = 12;
* @return Whether the postalCode field is set.
*/
public boolean hasPostalCode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Postal code of the user's address.
*
*
* optional string postal_code = 12;
* @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 of the user's address.
*
*
* optional string postal_code = 12;
* @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 of the user's address.
*
*
* optional string postal_code = 12;
* @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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Postal code of the user's address.
*
*
* optional string postal_code = 12;
* @return This builder for chaining.
*/
public Builder clearPostalCode() {
postalCode_ = getDefaultInstance().getPostalCode();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Postal code of the user's address.
*
*
* optional string postal_code = 12;
* @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_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object hashedStreetAddress_ = "";
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @return Whether the hashedStreetAddress field is set.
*/
public boolean hasHashedStreetAddress() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @return The hashedStreetAddress.
*/
public java.lang.String getHashedStreetAddress() {
java.lang.Object ref = hashedStreetAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hashedStreetAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @return The bytes for hashedStreetAddress.
*/
public com.google.protobuf.ByteString
getHashedStreetAddressBytes() {
java.lang.Object ref = hashedStreetAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashedStreetAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @param value The hashedStreetAddress to set.
* @return This builder for chaining.
*/
public Builder setHashedStreetAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hashedStreetAddress_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @return This builder for chaining.
*/
public Builder clearHashedStreetAddress() {
hashedStreetAddress_ = getDefaultInstance().getHashedStreetAddress();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* The street address of the user hashed using SHA-256 hash function after
* normalization (lower case only). Only accepted for
* ConversionAdjustmentUploadService.
*
*
* optional string hashed_street_address = 13;
* @param value The bytes for hashedStreetAddress to set.
* @return This builder for chaining.
*/
public Builder setHashedStreetAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hashedStreetAddress_ = 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.OfflineUserAddressInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.OfflineUserAddressInfo)
private static final com.google.ads.googleads.v17.common.OfflineUserAddressInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.OfflineUserAddressInfo();
}
public static com.google.ads.googleads.v17.common.OfflineUserAddressInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OfflineUserAddressInfo 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.OfflineUserAddressInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy