com.google.ads.googleads.v17.common.LocationFeedItem 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/extensions.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* Represents a location extension.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LocationFeedItem}
*/
public final class LocationFeedItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.LocationFeedItem)
LocationFeedItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationFeedItem.newBuilder() to construct.
private LocationFeedItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationFeedItem() {
businessName_ = "";
addressLine1_ = "";
addressLine2_ = "";
city_ = "";
province_ = "";
postalCode_ = "";
countryCode_ = "";
phoneNumber_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationFeedItem();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_LocationFeedItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_LocationFeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LocationFeedItem.class, com.google.ads.googleads.v17.common.LocationFeedItem.Builder.class);
}
private int bitField0_;
public static final int BUSINESS_NAME_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object businessName_ = "";
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @return Whether the businessName field is set.
*/
@java.lang.Override
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @return The businessName.
*/
@java.lang.Override
public java.lang.String getBusinessName() {
java.lang.Object ref = businessName_;
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();
businessName_ = s;
return s;
}
}
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @return The bytes for businessName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBusinessNameBytes() {
java.lang.Object ref = businessName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_LINE_1_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object addressLine1_ = "";
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @return Whether the addressLine1 field is set.
*/
@java.lang.Override
public boolean hasAddressLine1() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @return The addressLine1.
*/
@java.lang.Override
public java.lang.String getAddressLine1() {
java.lang.Object ref = addressLine1_;
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();
addressLine1_ = s;
return s;
}
}
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @return The bytes for addressLine1.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressLine1Bytes() {
java.lang.Object ref = addressLine1_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_LINE_2_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object addressLine2_ = "";
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @return Whether the addressLine2 field is set.
*/
@java.lang.Override
public boolean hasAddressLine2() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @return The addressLine2.
*/
@java.lang.Override
public java.lang.String getAddressLine2() {
java.lang.Object ref = addressLine2_;
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();
addressLine2_ = s;
return s;
}
}
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @return The bytes for addressLine2.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressLine2Bytes() {
java.lang.Object ref = addressLine2_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CITY_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object city_ = "";
/**
*
* City of the business address.
*
*
* optional string city = 12;
* @return Whether the city field is set.
*/
@java.lang.Override
public boolean hasCity() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* City of the business address.
*
*
* optional string city = 12;
* @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 business address.
*
*
* optional string city = 12;
* @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 PROVINCE_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object province_ = "";
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @return Whether the province field is set.
*/
@java.lang.Override
public boolean hasProvince() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @return The province.
*/
@java.lang.Override
public java.lang.String getProvince() {
java.lang.Object ref = province_;
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();
province_ = s;
return s;
}
}
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @return The bytes for province.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProvinceBytes() {
java.lang.Object ref = province_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
province_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POSTAL_CODE_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object postalCode_ = "";
/**
*
* Postal code of the business address.
*
*
* optional string postal_code = 14;
* @return Whether the postalCode field is set.
*/
@java.lang.Override
public boolean hasPostalCode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Postal code of the business address.
*
*
* optional string postal_code = 14;
* @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 business address.
*
*
* optional string postal_code = 14;
* @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 COUNTRY_CODE_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private volatile java.lang.Object countryCode_ = "";
/**
*
* Country code of the business address.
*
*
* optional string country_code = 15;
* @return Whether the countryCode field is set.
*/
@java.lang.Override
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Country code of the business address.
*
*
* optional string country_code = 15;
* @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 of the business address.
*
*
* optional string country_code = 15;
* @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 PHONE_NUMBER_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object phoneNumber_ = "";
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @return Whether the phoneNumber field is set.
*/
@java.lang.Override
public boolean hasPhoneNumber() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @return The phoneNumber.
*/
@java.lang.Override
public java.lang.String getPhoneNumber() {
java.lang.Object ref = phoneNumber_;
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();
phoneNumber_ = s;
return s;
}
}
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @return The bytes for phoneNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPhoneNumberBytes() {
java.lang.Object ref = phoneNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
phoneNumber_ = 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, 9, businessName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, addressLine1_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, addressLine2_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, city_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, province_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, postalCode_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, countryCode_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, phoneNumber_);
}
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(9, businessName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, addressLine1_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, addressLine2_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, city_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, province_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, postalCode_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, countryCode_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, phoneNumber_);
}
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.LocationFeedItem)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.LocationFeedItem other = (com.google.ads.googleads.v17.common.LocationFeedItem) obj;
if (hasBusinessName() != other.hasBusinessName()) return false;
if (hasBusinessName()) {
if (!getBusinessName()
.equals(other.getBusinessName())) return false;
}
if (hasAddressLine1() != other.hasAddressLine1()) return false;
if (hasAddressLine1()) {
if (!getAddressLine1()
.equals(other.getAddressLine1())) return false;
}
if (hasAddressLine2() != other.hasAddressLine2()) return false;
if (hasAddressLine2()) {
if (!getAddressLine2()
.equals(other.getAddressLine2())) return false;
}
if (hasCity() != other.hasCity()) return false;
if (hasCity()) {
if (!getCity()
.equals(other.getCity())) return false;
}
if (hasProvince() != other.hasProvince()) return false;
if (hasProvince()) {
if (!getProvince()
.equals(other.getProvince())) return false;
}
if (hasPostalCode() != other.hasPostalCode()) return false;
if (hasPostalCode()) {
if (!getPostalCode()
.equals(other.getPostalCode())) return false;
}
if (hasCountryCode() != other.hasCountryCode()) return false;
if (hasCountryCode()) {
if (!getCountryCode()
.equals(other.getCountryCode())) return false;
}
if (hasPhoneNumber() != other.hasPhoneNumber()) return false;
if (hasPhoneNumber()) {
if (!getPhoneNumber()
.equals(other.getPhoneNumber())) 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 (hasBusinessName()) {
hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBusinessName().hashCode();
}
if (hasAddressLine1()) {
hash = (37 * hash) + ADDRESS_LINE_1_FIELD_NUMBER;
hash = (53 * hash) + getAddressLine1().hashCode();
}
if (hasAddressLine2()) {
hash = (37 * hash) + ADDRESS_LINE_2_FIELD_NUMBER;
hash = (53 * hash) + getAddressLine2().hashCode();
}
if (hasCity()) {
hash = (37 * hash) + CITY_FIELD_NUMBER;
hash = (53 * hash) + getCity().hashCode();
}
if (hasProvince()) {
hash = (37 * hash) + PROVINCE_FIELD_NUMBER;
hash = (53 * hash) + getProvince().hashCode();
}
if (hasPostalCode()) {
hash = (37 * hash) + POSTAL_CODE_FIELD_NUMBER;
hash = (53 * hash) + getPostalCode().hashCode();
}
if (hasCountryCode()) {
hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCountryCode().hashCode();
}
if (hasPhoneNumber()) {
hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getPhoneNumber().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.LocationFeedItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocationFeedItem 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.LocationFeedItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocationFeedItem 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.LocationFeedItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.LocationFeedItem 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.LocationFeedItem 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.LocationFeedItem 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.LocationFeedItem 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.LocationFeedItem 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.LocationFeedItem 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.LocationFeedItem 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.LocationFeedItem 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;
}
/**
*
* Represents a location extension.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.LocationFeedItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.LocationFeedItem)
com.google.ads.googleads.v17.common.LocationFeedItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_LocationFeedItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_LocationFeedItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.LocationFeedItem.class, com.google.ads.googleads.v17.common.LocationFeedItem.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.LocationFeedItem.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
businessName_ = "";
addressLine1_ = "";
addressLine2_ = "";
city_ = "";
province_ = "";
postalCode_ = "";
countryCode_ = "";
phoneNumber_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_LocationFeedItem_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationFeedItem getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.LocationFeedItem.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationFeedItem build() {
com.google.ads.googleads.v17.common.LocationFeedItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationFeedItem buildPartial() {
com.google.ads.googleads.v17.common.LocationFeedItem result = new com.google.ads.googleads.v17.common.LocationFeedItem(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.LocationFeedItem result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.businessName_ = businessName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.addressLine1_ = addressLine1_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.addressLine2_ = addressLine2_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.city_ = city_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.province_ = province_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.postalCode_ = postalCode_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.countryCode_ = countryCode_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.phoneNumber_ = phoneNumber_;
to_bitField0_ |= 0x00000080;
}
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.LocationFeedItem) {
return mergeFrom((com.google.ads.googleads.v17.common.LocationFeedItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.LocationFeedItem other) {
if (other == com.google.ads.googleads.v17.common.LocationFeedItem.getDefaultInstance()) return this;
if (other.hasBusinessName()) {
businessName_ = other.businessName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasAddressLine1()) {
addressLine1_ = other.addressLine1_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasAddressLine2()) {
addressLine2_ = other.addressLine2_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCity()) {
city_ = other.city_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasProvince()) {
province_ = other.province_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasPostalCode()) {
postalCode_ = other.postalCode_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasCountryCode()) {
countryCode_ = other.countryCode_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasPhoneNumber()) {
phoneNumber_ = other.phoneNumber_;
bitField0_ |= 0x00000080;
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 74: {
businessName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 74
case 82: {
addressLine1_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 82
case 90: {
addressLine2_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 90
case 98: {
city_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 98
case 106: {
province_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 106
case 114: {
postalCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 114
case 122: {
countryCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 122
case 130: {
phoneNumber_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 130
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 businessName_ = "";
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @return Whether the businessName field is set.
*/
public boolean hasBusinessName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @return The businessName.
*/
public java.lang.String getBusinessName() {
java.lang.Object ref = businessName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
businessName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @return The bytes for businessName.
*/
public com.google.protobuf.ByteString
getBusinessNameBytes() {
java.lang.Object ref = businessName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @param value The businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
businessName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @return This builder for chaining.
*/
public Builder clearBusinessName() {
businessName_ = getDefaultInstance().getBusinessName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The name of the business.
*
*
* optional string business_name = 9;
* @param value The bytes for businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
businessName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object addressLine1_ = "";
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @return Whether the addressLine1 field is set.
*/
public boolean hasAddressLine1() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @return The addressLine1.
*/
public java.lang.String getAddressLine1() {
java.lang.Object ref = addressLine1_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
addressLine1_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @return The bytes for addressLine1.
*/
public com.google.protobuf.ByteString
getAddressLine1Bytes() {
java.lang.Object ref = addressLine1_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @param value The addressLine1 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine1(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
addressLine1_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @return This builder for chaining.
*/
public Builder clearAddressLine1() {
addressLine1_ = getDefaultInstance().getAddressLine1();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Line 1 of the business address.
*
*
* optional string address_line_1 = 10;
* @param value The bytes for addressLine1 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine1Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
addressLine1_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object addressLine2_ = "";
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @return Whether the addressLine2 field is set.
*/
public boolean hasAddressLine2() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @return The addressLine2.
*/
public java.lang.String getAddressLine2() {
java.lang.Object ref = addressLine2_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
addressLine2_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @return The bytes for addressLine2.
*/
public com.google.protobuf.ByteString
getAddressLine2Bytes() {
java.lang.Object ref = addressLine2_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addressLine2_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @param value The addressLine2 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine2(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
addressLine2_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @return This builder for chaining.
*/
public Builder clearAddressLine2() {
addressLine2_ = getDefaultInstance().getAddressLine2();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Line 2 of the business address.
*
*
* optional string address_line_2 = 11;
* @param value The bytes for addressLine2 to set.
* @return This builder for chaining.
*/
public Builder setAddressLine2Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
addressLine2_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object city_ = "";
/**
*
* City of the business address.
*
*
* optional string city = 12;
* @return Whether the city field is set.
*/
public boolean hasCity() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* City of the business address.
*
*
* optional string city = 12;
* @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 business address.
*
*
* optional string city = 12;
* @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 business address.
*
*
* optional string city = 12;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* City of the business address.
*
*
* optional string city = 12;
* @return This builder for chaining.
*/
public Builder clearCity() {
city_ = getDefaultInstance().getCity();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* City of the business address.
*
*
* optional string city = 12;
* @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_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object province_ = "";
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @return Whether the province field is set.
*/
public boolean hasProvince() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @return The province.
*/
public java.lang.String getProvince() {
java.lang.Object ref = province_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
province_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @return The bytes for province.
*/
public com.google.protobuf.ByteString
getProvinceBytes() {
java.lang.Object ref = province_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
province_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @param value The province to set.
* @return This builder for chaining.
*/
public Builder setProvince(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
province_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @return This builder for chaining.
*/
public Builder clearProvince() {
province_ = getDefaultInstance().getProvince();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Province of the business address.
*
*
* optional string province = 13;
* @param value The bytes for province to set.
* @return This builder for chaining.
*/
public Builder setProvinceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
province_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object postalCode_ = "";
/**
*
* Postal code of the business address.
*
*
* optional string postal_code = 14;
* @return Whether the postalCode field is set.
*/
public boolean hasPostalCode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Postal code of the business address.
*
*
* optional string postal_code = 14;
* @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 business address.
*
*
* optional string postal_code = 14;
* @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 business address.
*
*
* optional string postal_code = 14;
* @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 business address.
*
*
* optional string postal_code = 14;
* @return This builder for chaining.
*/
public Builder clearPostalCode() {
postalCode_ = getDefaultInstance().getPostalCode();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Postal code of the business address.
*
*
* optional string postal_code = 14;
* @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 countryCode_ = "";
/**
*
* Country code of the business address.
*
*
* optional string country_code = 15;
* @return Whether the countryCode field is set.
*/
public boolean hasCountryCode() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Country code of the business address.
*
*
* optional string country_code = 15;
* @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 of the business address.
*
*
* optional string country_code = 15;
* @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 of the business address.
*
*
* optional string country_code = 15;
* @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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Country code of the business address.
*
*
* optional string country_code = 15;
* @return This builder for chaining.
*/
public Builder clearCountryCode() {
countryCode_ = getDefaultInstance().getCountryCode();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Country code of the business address.
*
*
* optional string country_code = 15;
* @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_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object phoneNumber_ = "";
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @return Whether the phoneNumber field is set.
*/
public boolean hasPhoneNumber() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @return The phoneNumber.
*/
public java.lang.String getPhoneNumber() {
java.lang.Object ref = phoneNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
phoneNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @return The bytes for phoneNumber.
*/
public com.google.protobuf.ByteString
getPhoneNumberBytes() {
java.lang.Object ref = phoneNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
phoneNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @param value The phoneNumber to set.
* @return This builder for chaining.
*/
public Builder setPhoneNumber(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
phoneNumber_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @return This builder for chaining.
*/
public Builder clearPhoneNumber() {
phoneNumber_ = getDefaultInstance().getPhoneNumber();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Phone number of the business.
*
*
* optional string phone_number = 16;
* @param value The bytes for phoneNumber to set.
* @return This builder for chaining.
*/
public Builder setPhoneNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
phoneNumber_ = value;
bitField0_ |= 0x00000080;
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.LocationFeedItem)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.LocationFeedItem)
private static final com.google.ads.googleads.v17.common.LocationFeedItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.LocationFeedItem();
}
public static com.google.ads.googleads.v17.common.LocationFeedItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationFeedItem 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.LocationFeedItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy