All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.common.BusinessProfileLocationSet Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/common/asset_set_types.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;

/**
 * 
 * Data used to configure a location set populated from Google Business Profile
 * locations.
 * Different types of filters are AND'ed together, if they are specified.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.BusinessProfileLocationSet} */ public final class BusinessProfileLocationSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.BusinessProfileLocationSet) BusinessProfileLocationSetOrBuilder { private static final long serialVersionUID = 0L; // Use BusinessProfileLocationSet.newBuilder() to construct. private BusinessProfileLocationSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BusinessProfileLocationSet() { httpAuthorizationToken_ = ""; emailAddress_ = ""; businessNameFilter_ = ""; labelFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); listingIdFilters_ = emptyLongList(); businessAccountId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BusinessProfileLocationSet(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_BusinessProfileLocationSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_BusinessProfileLocationSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.BusinessProfileLocationSet.class, com.google.ads.googleads.v17.common.BusinessProfileLocationSet.Builder.class); } public static final int HTTP_AUTHORIZATION_TOKEN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object httpAuthorizationToken_ = ""; /** *
   * Required. Immutable. The HTTP authorization token used to obtain
   * authorization.
   * 
* * string http_authorization_token = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return The httpAuthorizationToken. */ @java.lang.Override public java.lang.String getHttpAuthorizationToken() { java.lang.Object ref = httpAuthorizationToken_; 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(); httpAuthorizationToken_ = s; return s; } } /** *
   * Required. Immutable. The HTTP authorization token used to obtain
   * authorization.
   * 
* * string http_authorization_token = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for httpAuthorizationToken. */ @java.lang.Override public com.google.protobuf.ByteString getHttpAuthorizationTokenBytes() { java.lang.Object ref = httpAuthorizationToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpAuthorizationToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMAIL_ADDRESS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object emailAddress_ = ""; /** *
   * Required. Immutable. Email address of a Google Business Profile account or
   * email address of a manager of the Google Business Profile account.
   * 
* * string email_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The emailAddress. */ @java.lang.Override public java.lang.String getEmailAddress() { java.lang.Object ref = emailAddress_; 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(); emailAddress_ = s; return s; } } /** *
   * Required. Immutable. Email address of a Google Business Profile account or
   * email address of a manager of the Google Business Profile account.
   * 
* * string email_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for emailAddress. */ @java.lang.Override public com.google.protobuf.ByteString getEmailAddressBytes() { java.lang.Object ref = emailAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); emailAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUSINESS_NAME_FILTER_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object businessNameFilter_ = ""; /** *
   * Used to filter Google Business Profile listings by business name. If
   * businessNameFilter is set, only listings with a matching business name are
   * candidates to be sync'd into Assets.
   * 
* * string business_name_filter = 3; * @return The businessNameFilter. */ @java.lang.Override public java.lang.String getBusinessNameFilter() { java.lang.Object ref = businessNameFilter_; 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(); businessNameFilter_ = s; return s; } } /** *
   * Used to filter Google Business Profile listings by business name. If
   * businessNameFilter is set, only listings with a matching business name are
   * candidates to be sync'd into Assets.
   * 
* * string business_name_filter = 3; * @return The bytes for businessNameFilter. */ @java.lang.Override public com.google.protobuf.ByteString getBusinessNameFilterBytes() { java.lang.Object ref = businessNameFilter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); businessNameFilter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABEL_FILTERS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList labelFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Used to filter Google Business Profile listings by labels. If entries exist
   * in labelFilters, only listings that have any of the labels set are
   * candidates to be synchronized into Assets. If no entries exist in
   * labelFilters, then all listings are candidates for syncing.
   * Label filters are OR'ed together.
   * 
* * repeated string label_filters = 4; * @return A list containing the labelFilters. */ public com.google.protobuf.ProtocolStringList getLabelFiltersList() { return labelFilters_; } /** *
   * Used to filter Google Business Profile listings by labels. If entries exist
   * in labelFilters, only listings that have any of the labels set are
   * candidates to be synchronized into Assets. If no entries exist in
   * labelFilters, then all listings are candidates for syncing.
   * Label filters are OR'ed together.
   * 
* * repeated string label_filters = 4; * @return The count of labelFilters. */ public int getLabelFiltersCount() { return labelFilters_.size(); } /** *
   * Used to filter Google Business Profile listings by labels. If entries exist
   * in labelFilters, only listings that have any of the labels set are
   * candidates to be synchronized into Assets. If no entries exist in
   * labelFilters, then all listings are candidates for syncing.
   * Label filters are OR'ed together.
   * 
* * repeated string label_filters = 4; * @param index The index of the element to return. * @return The labelFilters at the given index. */ public java.lang.String getLabelFilters(int index) { return labelFilters_.get(index); } /** *
   * Used to filter Google Business Profile listings by labels. If entries exist
   * in labelFilters, only listings that have any of the labels set are
   * candidates to be synchronized into Assets. If no entries exist in
   * labelFilters, then all listings are candidates for syncing.
   * Label filters are OR'ed together.
   * 
* * repeated string label_filters = 4; * @param index The index of the value to return. * @return The bytes of the labelFilters at the given index. */ public com.google.protobuf.ByteString getLabelFiltersBytes(int index) { return labelFilters_.getByteString(index); } public static final int LISTING_ID_FILTERS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList listingIdFilters_ = emptyLongList(); /** *
   * Used to filter Google Business Profile listings by listing id. If entries
   * exist in listingIdFilters, only listings specified by the filters are
   * candidates to be synchronized into Assets. If no entries exist in
   * listingIdFilters, then all listings are candidates for syncing.
   * Listing ID filters are OR'ed together.
   * 
* * repeated int64 listing_id_filters = 5; * @return A list containing the listingIdFilters. */ @java.lang.Override public java.util.List getListingIdFiltersList() { return listingIdFilters_; } /** *
   * Used to filter Google Business Profile listings by listing id. If entries
   * exist in listingIdFilters, only listings specified by the filters are
   * candidates to be synchronized into Assets. If no entries exist in
   * listingIdFilters, then all listings are candidates for syncing.
   * Listing ID filters are OR'ed together.
   * 
* * repeated int64 listing_id_filters = 5; * @return The count of listingIdFilters. */ public int getListingIdFiltersCount() { return listingIdFilters_.size(); } /** *
   * Used to filter Google Business Profile listings by listing id. If entries
   * exist in listingIdFilters, only listings specified by the filters are
   * candidates to be synchronized into Assets. If no entries exist in
   * listingIdFilters, then all listings are candidates for syncing.
   * Listing ID filters are OR'ed together.
   * 
* * repeated int64 listing_id_filters = 5; * @param index The index of the element to return. * @return The listingIdFilters at the given index. */ public long getListingIdFilters(int index) { return listingIdFilters_.getLong(index); } private int listingIdFiltersMemoizedSerializedSize = -1; public static final int BUSINESS_ACCOUNT_ID_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object businessAccountId_ = ""; /** *
   * Immutable. The account ID of the managed business whose locations are to be
   * used. If this field is not set, then all businesses accessible by the user
   * (specified by the emailAddress) are used.
   * 
* * string business_account_id = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return The businessAccountId. */ @java.lang.Override public java.lang.String getBusinessAccountId() { java.lang.Object ref = businessAccountId_; 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(); businessAccountId_ = s; return s; } } /** *
   * Immutable. The account ID of the managed business whose locations are to be
   * used. If this field is not set, then all businesses accessible by the user
   * (specified by the emailAddress) are used.
   * 
* * string business_account_id = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for businessAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getBusinessAccountIdBytes() { java.lang.Object ref = businessAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); businessAccountId_ = 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpAuthorizationToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpAuthorizationToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessNameFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, businessNameFilter_); } for (int i = 0; i < labelFilters_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, labelFilters_.getRaw(i)); } if (getListingIdFiltersList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(listingIdFiltersMemoizedSerializedSize); } for (int i = 0; i < listingIdFilters_.size(); i++) { output.writeInt64NoTag(listingIdFilters_.getLong(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, businessAccountId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpAuthorizationToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, httpAuthorizationToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessNameFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, businessNameFilter_); } { int dataSize = 0; for (int i = 0; i < labelFilters_.size(); i++) { dataSize += computeStringSizeNoTag(labelFilters_.getRaw(i)); } size += dataSize; size += 1 * getLabelFiltersList().size(); } { int dataSize = 0; for (int i = 0; i < listingIdFilters_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(listingIdFilters_.getLong(i)); } size += dataSize; if (!getListingIdFiltersList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } listingIdFiltersMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, businessAccountId_); } 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.BusinessProfileLocationSet)) { return super.equals(obj); } com.google.ads.googleads.v17.common.BusinessProfileLocationSet other = (com.google.ads.googleads.v17.common.BusinessProfileLocationSet) obj; if (!getHttpAuthorizationToken() .equals(other.getHttpAuthorizationToken())) return false; if (!getEmailAddress() .equals(other.getEmailAddress())) return false; if (!getBusinessNameFilter() .equals(other.getBusinessNameFilter())) return false; if (!getLabelFiltersList() .equals(other.getLabelFiltersList())) return false; if (!getListingIdFiltersList() .equals(other.getListingIdFiltersList())) return false; if (!getBusinessAccountId() .equals(other.getBusinessAccountId())) 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(); hash = (37 * hash) + HTTP_AUTHORIZATION_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getHttpAuthorizationToken().hashCode(); hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getEmailAddress().hashCode(); hash = (37 * hash) + BUSINESS_NAME_FILTER_FIELD_NUMBER; hash = (53 * hash) + getBusinessNameFilter().hashCode(); if (getLabelFiltersCount() > 0) { hash = (37 * hash) + LABEL_FILTERS_FIELD_NUMBER; hash = (53 * hash) + getLabelFiltersList().hashCode(); } if (getListingIdFiltersCount() > 0) { hash = (37 * hash) + LISTING_ID_FILTERS_FIELD_NUMBER; hash = (53 * hash) + getListingIdFiltersList().hashCode(); } hash = (37 * hash) + BUSINESS_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getBusinessAccountId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.BusinessProfileLocationSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.BusinessProfileLocationSet 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.BusinessProfileLocationSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.BusinessProfileLocationSet 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.BusinessProfileLocationSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.BusinessProfileLocationSet 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.BusinessProfileLocationSet 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.BusinessProfileLocationSet 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.BusinessProfileLocationSet 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.BusinessProfileLocationSet 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.BusinessProfileLocationSet 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.BusinessProfileLocationSet 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.BusinessProfileLocationSet 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; } /** *
   * Data used to configure a location set populated from Google Business Profile
   * locations.
   * Different types of filters are AND'ed together, if they are specified.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.BusinessProfileLocationSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.BusinessProfileLocationSet) com.google.ads.googleads.v17.common.BusinessProfileLocationSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_BusinessProfileLocationSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_BusinessProfileLocationSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.BusinessProfileLocationSet.class, com.google.ads.googleads.v17.common.BusinessProfileLocationSet.Builder.class); } // Construct using com.google.ads.googleads.v17.common.BusinessProfileLocationSet.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; httpAuthorizationToken_ = ""; emailAddress_ = ""; businessNameFilter_ = ""; labelFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); listingIdFilters_ = emptyLongList(); businessAccountId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.AssetSetTypesProto.internal_static_google_ads_googleads_v17_common_BusinessProfileLocationSet_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.BusinessProfileLocationSet getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.BusinessProfileLocationSet build() { com.google.ads.googleads.v17.common.BusinessProfileLocationSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.BusinessProfileLocationSet buildPartial() { com.google.ads.googleads.v17.common.BusinessProfileLocationSet result = new com.google.ads.googleads.v17.common.BusinessProfileLocationSet(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.BusinessProfileLocationSet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.httpAuthorizationToken_ = httpAuthorizationToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.emailAddress_ = emailAddress_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.businessNameFilter_ = businessNameFilter_; } if (((from_bitField0_ & 0x00000008) != 0)) { labelFilters_.makeImmutable(); result.labelFilters_ = labelFilters_; } if (((from_bitField0_ & 0x00000010) != 0)) { listingIdFilters_.makeImmutable(); result.listingIdFilters_ = listingIdFilters_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.businessAccountId_ = businessAccountId_; } } @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.BusinessProfileLocationSet) { return mergeFrom((com.google.ads.googleads.v17.common.BusinessProfileLocationSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.BusinessProfileLocationSet other) { if (other == com.google.ads.googleads.v17.common.BusinessProfileLocationSet.getDefaultInstance()) return this; if (!other.getHttpAuthorizationToken().isEmpty()) { httpAuthorizationToken_ = other.httpAuthorizationToken_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getEmailAddress().isEmpty()) { emailAddress_ = other.emailAddress_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getBusinessNameFilter().isEmpty()) { businessNameFilter_ = other.businessNameFilter_; bitField0_ |= 0x00000004; onChanged(); } if (!other.labelFilters_.isEmpty()) { if (labelFilters_.isEmpty()) { labelFilters_ = other.labelFilters_; bitField0_ |= 0x00000008; } else { ensureLabelFiltersIsMutable(); labelFilters_.addAll(other.labelFilters_); } onChanged(); } if (!other.listingIdFilters_.isEmpty()) { if (listingIdFilters_.isEmpty()) { listingIdFilters_ = other.listingIdFilters_; listingIdFilters_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureListingIdFiltersIsMutable(); listingIdFilters_.addAll(other.listingIdFilters_); } onChanged(); } if (!other.getBusinessAccountId().isEmpty()) { businessAccountId_ = other.businessAccountId_; bitField0_ |= 0x00000020; 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 10: { httpAuthorizationToken_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { emailAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { businessNameFilter_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureLabelFiltersIsMutable(); labelFilters_.add(s); break; } // case 34 case 40: { long v = input.readInt64(); ensureListingIdFiltersIsMutable(); listingIdFilters_.addLong(v); break; } // case 40 case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureListingIdFiltersIsMutable(); while (input.getBytesUntilLimit() > 0) { listingIdFilters_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 42 case 50: { businessAccountId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 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 httpAuthorizationToken_ = ""; /** *
     * Required. Immutable. The HTTP authorization token used to obtain
     * authorization.
     * 
* * string http_authorization_token = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return The httpAuthorizationToken. */ public java.lang.String getHttpAuthorizationToken() { java.lang.Object ref = httpAuthorizationToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpAuthorizationToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Immutable. The HTTP authorization token used to obtain
     * authorization.
     * 
* * string http_authorization_token = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for httpAuthorizationToken. */ public com.google.protobuf.ByteString getHttpAuthorizationTokenBytes() { java.lang.Object ref = httpAuthorizationToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpAuthorizationToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Immutable. The HTTP authorization token used to obtain
     * authorization.
     * 
* * string http_authorization_token = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @param value The httpAuthorizationToken to set. * @return This builder for chaining. */ public Builder setHttpAuthorizationToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } httpAuthorizationToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Required. Immutable. The HTTP authorization token used to obtain
     * authorization.
     * 
* * string http_authorization_token = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearHttpAuthorizationToken() { httpAuthorizationToken_ = getDefaultInstance().getHttpAuthorizationToken(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Required. Immutable. The HTTP authorization token used to obtain
     * authorization.
     * 
* * string http_authorization_token = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @param value The bytes for httpAuthorizationToken to set. * @return This builder for chaining. */ public Builder setHttpAuthorizationTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpAuthorizationToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object emailAddress_ = ""; /** *
     * Required. Immutable. Email address of a Google Business Profile account or
     * email address of a manager of the Google Business Profile account.
     * 
* * string email_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The emailAddress. */ public java.lang.String getEmailAddress() { java.lang.Object ref = emailAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); emailAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Immutable. Email address of a Google Business Profile account or
     * email address of a manager of the Google Business Profile account.
     * 
* * string email_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for emailAddress. */ public com.google.protobuf.ByteString getEmailAddressBytes() { java.lang.Object ref = emailAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); emailAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Immutable. Email address of a Google Business Profile account or
     * email address of a manager of the Google Business Profile account.
     * 
* * string email_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The emailAddress to set. * @return This builder for chaining. */ public Builder setEmailAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } emailAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Required. Immutable. Email address of a Google Business Profile account or
     * email address of a manager of the Google Business Profile account.
     * 
* * string email_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearEmailAddress() { emailAddress_ = getDefaultInstance().getEmailAddress(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Required. Immutable. Email address of a Google Business Profile account or
     * email address of a manager of the Google Business Profile account.
     * 
* * string email_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes for emailAddress to set. * @return This builder for chaining. */ public Builder setEmailAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); emailAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object businessNameFilter_ = ""; /** *
     * Used to filter Google Business Profile listings by business name. If
     * businessNameFilter is set, only listings with a matching business name are
     * candidates to be sync'd into Assets.
     * 
* * string business_name_filter = 3; * @return The businessNameFilter. */ public java.lang.String getBusinessNameFilter() { java.lang.Object ref = businessNameFilter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessNameFilter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Used to filter Google Business Profile listings by business name. If
     * businessNameFilter is set, only listings with a matching business name are
     * candidates to be sync'd into Assets.
     * 
* * string business_name_filter = 3; * @return The bytes for businessNameFilter. */ public com.google.protobuf.ByteString getBusinessNameFilterBytes() { java.lang.Object ref = businessNameFilter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); businessNameFilter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Used to filter Google Business Profile listings by business name. If
     * businessNameFilter is set, only listings with a matching business name are
     * candidates to be sync'd into Assets.
     * 
* * string business_name_filter = 3; * @param value The businessNameFilter to set. * @return This builder for chaining. */ public Builder setBusinessNameFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } businessNameFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by business name. If
     * businessNameFilter is set, only listings with a matching business name are
     * candidates to be sync'd into Assets.
     * 
* * string business_name_filter = 3; * @return This builder for chaining. */ public Builder clearBusinessNameFilter() { businessNameFilter_ = getDefaultInstance().getBusinessNameFilter(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by business name. If
     * businessNameFilter is set, only listings with a matching business name are
     * candidates to be sync'd into Assets.
     * 
* * string business_name_filter = 3; * @param value The bytes for businessNameFilter to set. * @return This builder for chaining. */ public Builder setBusinessNameFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); businessNameFilter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList labelFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureLabelFiltersIsMutable() { if (!labelFilters_.isModifiable()) { labelFilters_ = new com.google.protobuf.LazyStringArrayList(labelFilters_); } bitField0_ |= 0x00000008; } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @return A list containing the labelFilters. */ public com.google.protobuf.ProtocolStringList getLabelFiltersList() { labelFilters_.makeImmutable(); return labelFilters_; } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @return The count of labelFilters. */ public int getLabelFiltersCount() { return labelFilters_.size(); } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @param index The index of the element to return. * @return The labelFilters at the given index. */ public java.lang.String getLabelFilters(int index) { return labelFilters_.get(index); } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @param index The index of the value to return. * @return The bytes of the labelFilters at the given index. */ public com.google.protobuf.ByteString getLabelFiltersBytes(int index) { return labelFilters_.getByteString(index); } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @param index The index to set the value at. * @param value The labelFilters to set. * @return This builder for chaining. */ public Builder setLabelFilters( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLabelFiltersIsMutable(); labelFilters_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @param value The labelFilters to add. * @return This builder for chaining. */ public Builder addLabelFilters( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLabelFiltersIsMutable(); labelFilters_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @param values The labelFilters to add. * @return This builder for chaining. */ public Builder addAllLabelFilters( java.lang.Iterable values) { ensureLabelFiltersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, labelFilters_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @return This builder for chaining. */ public Builder clearLabelFilters() { labelFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by labels. If entries exist
     * in labelFilters, only listings that have any of the labels set are
     * candidates to be synchronized into Assets. If no entries exist in
     * labelFilters, then all listings are candidates for syncing.
     * Label filters are OR'ed together.
     * 
* * repeated string label_filters = 4; * @param value The bytes of the labelFilters to add. * @return This builder for chaining. */ public Builder addLabelFiltersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLabelFiltersIsMutable(); labelFilters_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.Internal.LongList listingIdFilters_ = emptyLongList(); private void ensureListingIdFiltersIsMutable() { if (!listingIdFilters_.isModifiable()) { listingIdFilters_ = makeMutableCopy(listingIdFilters_); } bitField0_ |= 0x00000010; } /** *
     * Used to filter Google Business Profile listings by listing id. If entries
     * exist in listingIdFilters, only listings specified by the filters are
     * candidates to be synchronized into Assets. If no entries exist in
     * listingIdFilters, then all listings are candidates for syncing.
     * Listing ID filters are OR'ed together.
     * 
* * repeated int64 listing_id_filters = 5; * @return A list containing the listingIdFilters. */ public java.util.List getListingIdFiltersList() { listingIdFilters_.makeImmutable(); return listingIdFilters_; } /** *
     * Used to filter Google Business Profile listings by listing id. If entries
     * exist in listingIdFilters, only listings specified by the filters are
     * candidates to be synchronized into Assets. If no entries exist in
     * listingIdFilters, then all listings are candidates for syncing.
     * Listing ID filters are OR'ed together.
     * 
* * repeated int64 listing_id_filters = 5; * @return The count of listingIdFilters. */ public int getListingIdFiltersCount() { return listingIdFilters_.size(); } /** *
     * Used to filter Google Business Profile listings by listing id. If entries
     * exist in listingIdFilters, only listings specified by the filters are
     * candidates to be synchronized into Assets. If no entries exist in
     * listingIdFilters, then all listings are candidates for syncing.
     * Listing ID filters are OR'ed together.
     * 
* * repeated int64 listing_id_filters = 5; * @param index The index of the element to return. * @return The listingIdFilters at the given index. */ public long getListingIdFilters(int index) { return listingIdFilters_.getLong(index); } /** *
     * Used to filter Google Business Profile listings by listing id. If entries
     * exist in listingIdFilters, only listings specified by the filters are
     * candidates to be synchronized into Assets. If no entries exist in
     * listingIdFilters, then all listings are candidates for syncing.
     * Listing ID filters are OR'ed together.
     * 
* * repeated int64 listing_id_filters = 5; * @param index The index to set the value at. * @param value The listingIdFilters to set. * @return This builder for chaining. */ public Builder setListingIdFilters( int index, long value) { ensureListingIdFiltersIsMutable(); listingIdFilters_.setLong(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by listing id. If entries
     * exist in listingIdFilters, only listings specified by the filters are
     * candidates to be synchronized into Assets. If no entries exist in
     * listingIdFilters, then all listings are candidates for syncing.
     * Listing ID filters are OR'ed together.
     * 
* * repeated int64 listing_id_filters = 5; * @param value The listingIdFilters to add. * @return This builder for chaining. */ public Builder addListingIdFilters(long value) { ensureListingIdFiltersIsMutable(); listingIdFilters_.addLong(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by listing id. If entries
     * exist in listingIdFilters, only listings specified by the filters are
     * candidates to be synchronized into Assets. If no entries exist in
     * listingIdFilters, then all listings are candidates for syncing.
     * Listing ID filters are OR'ed together.
     * 
* * repeated int64 listing_id_filters = 5; * @param values The listingIdFilters to add. * @return This builder for chaining. */ public Builder addAllListingIdFilters( java.lang.Iterable values) { ensureListingIdFiltersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, listingIdFilters_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Used to filter Google Business Profile listings by listing id. If entries
     * exist in listingIdFilters, only listings specified by the filters are
     * candidates to be synchronized into Assets. If no entries exist in
     * listingIdFilters, then all listings are candidates for syncing.
     * Listing ID filters are OR'ed together.
     * 
* * repeated int64 listing_id_filters = 5; * @return This builder for chaining. */ public Builder clearListingIdFilters() { listingIdFilters_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.lang.Object businessAccountId_ = ""; /** *
     * Immutable. The account ID of the managed business whose locations are to be
     * used. If this field is not set, then all businesses accessible by the user
     * (specified by the emailAddress) are used.
     * 
* * string business_account_id = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return The businessAccountId. */ public java.lang.String getBusinessAccountId() { java.lang.Object ref = businessAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The account ID of the managed business whose locations are to be
     * used. If this field is not set, then all businesses accessible by the user
     * (specified by the emailAddress) are used.
     * 
* * string business_account_id = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for businessAccountId. */ public com.google.protobuf.ByteString getBusinessAccountIdBytes() { java.lang.Object ref = businessAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); businessAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The account ID of the managed business whose locations are to be
     * used. If this field is not set, then all businesses accessible by the user
     * (specified by the emailAddress) are used.
     * 
* * string business_account_id = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The businessAccountId to set. * @return This builder for chaining. */ public Builder setBusinessAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } businessAccountId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Immutable. The account ID of the managed business whose locations are to be
     * used. If this field is not set, then all businesses accessible by the user
     * (specified by the emailAddress) are used.
     * 
* * string business_account_id = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearBusinessAccountId() { businessAccountId_ = getDefaultInstance().getBusinessAccountId(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Immutable. The account ID of the managed business whose locations are to be
     * used. If this field is not set, then all businesses accessible by the user
     * (specified by the emailAddress) are used.
     * 
* * string business_account_id = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes for businessAccountId to set. * @return This builder for chaining. */ public Builder setBusinessAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); businessAccountId_ = value; bitField0_ |= 0x00000020; 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.BusinessProfileLocationSet) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.BusinessProfileLocationSet) private static final com.google.ads.googleads.v17.common.BusinessProfileLocationSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.BusinessProfileLocationSet(); } public static com.google.ads.googleads.v17.common.BusinessProfileLocationSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BusinessProfileLocationSet 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.BusinessProfileLocationSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy