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

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

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

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

/**
 * 
 * A location asset.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.LocationAsset} */ public final class LocationAsset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.LocationAsset) LocationAssetOrBuilder { private static final long serialVersionUID = 0L; // Use LocationAsset.newBuilder() to construct. private LocationAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocationAsset() { placeId_ = ""; businessProfileLocations_ = java.util.Collections.emptyList(); locationOwnershipType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LocationAsset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_LocationAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_LocationAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.LocationAsset.class, com.google.ads.googleads.v17.common.LocationAsset.Builder.class); } public static final int PLACE_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object placeId_ = ""; /** *
   * Place IDs uniquely identify a place in the Google Places database and on
   * Google Maps.
   * This field is unique for a given customer ID and asset type. See
   * https://developers.google.com/places/web-service/place-id to learn more
   * about Place ID.
   * 
* * string place_id = 1; * @return The placeId. */ @java.lang.Override public java.lang.String getPlaceId() { java.lang.Object ref = placeId_; 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(); placeId_ = s; return s; } } /** *
   * Place IDs uniquely identify a place in the Google Places database and on
   * Google Maps.
   * This field is unique for a given customer ID and asset type. See
   * https://developers.google.com/places/web-service/place-id to learn more
   * about Place ID.
   * 
* * string place_id = 1; * @return The bytes for placeId. */ @java.lang.Override public com.google.protobuf.ByteString getPlaceIdBytes() { java.lang.Object ref = placeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); placeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUSINESS_PROFILE_LOCATIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List businessProfileLocations_; /** *
   * The list of business locations for the customer.
   * This will only be returned if the Location Asset is syncing from the
   * Business Profile account. It is possible to have multiple Business Profile
   * listings under the same account that point to the same Place ID.
   * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ @java.lang.Override public java.util.List getBusinessProfileLocationsList() { return businessProfileLocations_; } /** *
   * The list of business locations for the customer.
   * This will only be returned if the Location Asset is syncing from the
   * Business Profile account. It is possible to have multiple Business Profile
   * listings under the same account that point to the same Place ID.
   * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ @java.lang.Override public java.util.List getBusinessProfileLocationsOrBuilderList() { return businessProfileLocations_; } /** *
   * The list of business locations for the customer.
   * This will only be returned if the Location Asset is syncing from the
   * Business Profile account. It is possible to have multiple Business Profile
   * listings under the same account that point to the same Place ID.
   * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ @java.lang.Override public int getBusinessProfileLocationsCount() { return businessProfileLocations_.size(); } /** *
   * The list of business locations for the customer.
   * This will only be returned if the Location Asset is syncing from the
   * Business Profile account. It is possible to have multiple Business Profile
   * listings under the same account that point to the same Place ID.
   * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.BusinessProfileLocation getBusinessProfileLocations(int index) { return businessProfileLocations_.get(index); } /** *
   * The list of business locations for the customer.
   * This will only be returned if the Location Asset is syncing from the
   * Business Profile account. It is possible to have multiple Business Profile
   * listings under the same account that point to the same Place ID.
   * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.BusinessProfileLocationOrBuilder getBusinessProfileLocationsOrBuilder( int index) { return businessProfileLocations_.get(index); } public static final int LOCATION_OWNERSHIP_TYPE_FIELD_NUMBER = 3; private int locationOwnershipType_ = 0; /** *
   * The type of location ownership.
   * If the type is BUSINESS_OWNER, it will be served as a location extension.
   * If the type is AFFILIATE, it will be served as an affiliate location.
   * 
* * .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3; * @return The enum numeric value on the wire for locationOwnershipType. */ @java.lang.Override public int getLocationOwnershipTypeValue() { return locationOwnershipType_; } /** *
   * The type of location ownership.
   * If the type is BUSINESS_OWNER, it will be served as a location extension.
   * If the type is AFFILIATE, it will be served as an affiliate location.
   * 
* * .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3; * @return The locationOwnershipType. */ @java.lang.Override public com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType getLocationOwnershipType() { com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType result = com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.forNumber(locationOwnershipType_); return result == null ? com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.UNRECOGNIZED : result; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, placeId_); } for (int i = 0; i < businessProfileLocations_.size(); i++) { output.writeMessage(2, businessProfileLocations_.get(i)); } if (locationOwnershipType_ != com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.UNSPECIFIED.getNumber()) { output.writeEnum(3, locationOwnershipType_); } 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(placeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, placeId_); } for (int i = 0; i < businessProfileLocations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, businessProfileLocations_.get(i)); } if (locationOwnershipType_ != com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, locationOwnershipType_); } 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.LocationAsset)) { return super.equals(obj); } com.google.ads.googleads.v17.common.LocationAsset other = (com.google.ads.googleads.v17.common.LocationAsset) obj; if (!getPlaceId() .equals(other.getPlaceId())) return false; if (!getBusinessProfileLocationsList() .equals(other.getBusinessProfileLocationsList())) return false; if (locationOwnershipType_ != other.locationOwnershipType_) 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) + PLACE_ID_FIELD_NUMBER; hash = (53 * hash) + getPlaceId().hashCode(); if (getBusinessProfileLocationsCount() > 0) { hash = (37 * hash) + BUSINESS_PROFILE_LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getBusinessProfileLocationsList().hashCode(); } hash = (37 * hash) + LOCATION_OWNERSHIP_TYPE_FIELD_NUMBER; hash = (53 * hash) + locationOwnershipType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.LocationAsset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.LocationAsset 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.LocationAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.LocationAsset 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.LocationAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.LocationAsset 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.LocationAsset 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.LocationAsset 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.LocationAsset 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.LocationAsset 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.LocationAsset 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.LocationAsset 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.LocationAsset 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; } /** *
   * A location asset.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.LocationAsset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.LocationAsset) com.google.ads.googleads.v17.common.LocationAssetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_LocationAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_LocationAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.LocationAsset.class, com.google.ads.googleads.v17.common.LocationAsset.Builder.class); } // Construct using com.google.ads.googleads.v17.common.LocationAsset.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; placeId_ = ""; if (businessProfileLocationsBuilder_ == null) { businessProfileLocations_ = java.util.Collections.emptyList(); } else { businessProfileLocations_ = null; businessProfileLocationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); locationOwnershipType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_LocationAsset_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.LocationAsset getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.LocationAsset build() { com.google.ads.googleads.v17.common.LocationAsset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.LocationAsset buildPartial() { com.google.ads.googleads.v17.common.LocationAsset result = new com.google.ads.googleads.v17.common.LocationAsset(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.LocationAsset result) { if (businessProfileLocationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { businessProfileLocations_ = java.util.Collections.unmodifiableList(businessProfileLocations_); bitField0_ = (bitField0_ & ~0x00000002); } result.businessProfileLocations_ = businessProfileLocations_; } else { result.businessProfileLocations_ = businessProfileLocationsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.common.LocationAsset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.placeId_ = placeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.locationOwnershipType_ = locationOwnershipType_; } } @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.LocationAsset) { return mergeFrom((com.google.ads.googleads.v17.common.LocationAsset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.LocationAsset other) { if (other == com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance()) return this; if (!other.getPlaceId().isEmpty()) { placeId_ = other.placeId_; bitField0_ |= 0x00000001; onChanged(); } if (businessProfileLocationsBuilder_ == null) { if (!other.businessProfileLocations_.isEmpty()) { if (businessProfileLocations_.isEmpty()) { businessProfileLocations_ = other.businessProfileLocations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.addAll(other.businessProfileLocations_); } onChanged(); } } else { if (!other.businessProfileLocations_.isEmpty()) { if (businessProfileLocationsBuilder_.isEmpty()) { businessProfileLocationsBuilder_.dispose(); businessProfileLocationsBuilder_ = null; businessProfileLocations_ = other.businessProfileLocations_; bitField0_ = (bitField0_ & ~0x00000002); businessProfileLocationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBusinessProfileLocationsFieldBuilder() : null; } else { businessProfileLocationsBuilder_.addAllMessages(other.businessProfileLocations_); } } } if (other.locationOwnershipType_ != 0) { setLocationOwnershipTypeValue(other.getLocationOwnershipTypeValue()); } 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: { placeId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.ads.googleads.v17.common.BusinessProfileLocation m = input.readMessage( com.google.ads.googleads.v17.common.BusinessProfileLocation.parser(), extensionRegistry); if (businessProfileLocationsBuilder_ == null) { ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.add(m); } else { businessProfileLocationsBuilder_.addMessage(m); } break; } // case 18 case 24: { locationOwnershipType_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 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 placeId_ = ""; /** *
     * Place IDs uniquely identify a place in the Google Places database and on
     * Google Maps.
     * This field is unique for a given customer ID and asset type. See
     * https://developers.google.com/places/web-service/place-id to learn more
     * about Place ID.
     * 
* * string place_id = 1; * @return The placeId. */ public java.lang.String getPlaceId() { java.lang.Object ref = placeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); placeId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Place IDs uniquely identify a place in the Google Places database and on
     * Google Maps.
     * This field is unique for a given customer ID and asset type. See
     * https://developers.google.com/places/web-service/place-id to learn more
     * about Place ID.
     * 
* * string place_id = 1; * @return The bytes for placeId. */ public com.google.protobuf.ByteString getPlaceIdBytes() { java.lang.Object ref = placeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); placeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Place IDs uniquely identify a place in the Google Places database and on
     * Google Maps.
     * This field is unique for a given customer ID and asset type. See
     * https://developers.google.com/places/web-service/place-id to learn more
     * about Place ID.
     * 
* * string place_id = 1; * @param value The placeId to set. * @return This builder for chaining. */ public Builder setPlaceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } placeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Place IDs uniquely identify a place in the Google Places database and on
     * Google Maps.
     * This field is unique for a given customer ID and asset type. See
     * https://developers.google.com/places/web-service/place-id to learn more
     * about Place ID.
     * 
* * string place_id = 1; * @return This builder for chaining. */ public Builder clearPlaceId() { placeId_ = getDefaultInstance().getPlaceId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Place IDs uniquely identify a place in the Google Places database and on
     * Google Maps.
     * This field is unique for a given customer ID and asset type. See
     * https://developers.google.com/places/web-service/place-id to learn more
     * about Place ID.
     * 
* * string place_id = 1; * @param value The bytes for placeId to set. * @return This builder for chaining. */ public Builder setPlaceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); placeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List businessProfileLocations_ = java.util.Collections.emptyList(); private void ensureBusinessProfileLocationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { businessProfileLocations_ = new java.util.ArrayList(businessProfileLocations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.BusinessProfileLocation, com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder, com.google.ads.googleads.v17.common.BusinessProfileLocationOrBuilder> businessProfileLocationsBuilder_; /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public java.util.List getBusinessProfileLocationsList() { if (businessProfileLocationsBuilder_ == null) { return java.util.Collections.unmodifiableList(businessProfileLocations_); } else { return businessProfileLocationsBuilder_.getMessageList(); } } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public int getBusinessProfileLocationsCount() { if (businessProfileLocationsBuilder_ == null) { return businessProfileLocations_.size(); } else { return businessProfileLocationsBuilder_.getCount(); } } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public com.google.ads.googleads.v17.common.BusinessProfileLocation getBusinessProfileLocations(int index) { if (businessProfileLocationsBuilder_ == null) { return businessProfileLocations_.get(index); } else { return businessProfileLocationsBuilder_.getMessage(index); } } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder setBusinessProfileLocations( int index, com.google.ads.googleads.v17.common.BusinessProfileLocation value) { if (businessProfileLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.set(index, value); onChanged(); } else { businessProfileLocationsBuilder_.setMessage(index, value); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder setBusinessProfileLocations( int index, com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder builderForValue) { if (businessProfileLocationsBuilder_ == null) { ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.set(index, builderForValue.build()); onChanged(); } else { businessProfileLocationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder addBusinessProfileLocations(com.google.ads.googleads.v17.common.BusinessProfileLocation value) { if (businessProfileLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.add(value); onChanged(); } else { businessProfileLocationsBuilder_.addMessage(value); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder addBusinessProfileLocations( int index, com.google.ads.googleads.v17.common.BusinessProfileLocation value) { if (businessProfileLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.add(index, value); onChanged(); } else { businessProfileLocationsBuilder_.addMessage(index, value); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder addBusinessProfileLocations( com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder builderForValue) { if (businessProfileLocationsBuilder_ == null) { ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.add(builderForValue.build()); onChanged(); } else { businessProfileLocationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder addBusinessProfileLocations( int index, com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder builderForValue) { if (businessProfileLocationsBuilder_ == null) { ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.add(index, builderForValue.build()); onChanged(); } else { businessProfileLocationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder addAllBusinessProfileLocations( java.lang.Iterable values) { if (businessProfileLocationsBuilder_ == null) { ensureBusinessProfileLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, businessProfileLocations_); onChanged(); } else { businessProfileLocationsBuilder_.addAllMessages(values); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder clearBusinessProfileLocations() { if (businessProfileLocationsBuilder_ == null) { businessProfileLocations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { businessProfileLocationsBuilder_.clear(); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public Builder removeBusinessProfileLocations(int index) { if (businessProfileLocationsBuilder_ == null) { ensureBusinessProfileLocationsIsMutable(); businessProfileLocations_.remove(index); onChanged(); } else { businessProfileLocationsBuilder_.remove(index); } return this; } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder getBusinessProfileLocationsBuilder( int index) { return getBusinessProfileLocationsFieldBuilder().getBuilder(index); } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public com.google.ads.googleads.v17.common.BusinessProfileLocationOrBuilder getBusinessProfileLocationsOrBuilder( int index) { if (businessProfileLocationsBuilder_ == null) { return businessProfileLocations_.get(index); } else { return businessProfileLocationsBuilder_.getMessageOrBuilder(index); } } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public java.util.List getBusinessProfileLocationsOrBuilderList() { if (businessProfileLocationsBuilder_ != null) { return businessProfileLocationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(businessProfileLocations_); } } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder addBusinessProfileLocationsBuilder() { return getBusinessProfileLocationsFieldBuilder().addBuilder( com.google.ads.googleads.v17.common.BusinessProfileLocation.getDefaultInstance()); } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder addBusinessProfileLocationsBuilder( int index) { return getBusinessProfileLocationsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.common.BusinessProfileLocation.getDefaultInstance()); } /** *
     * The list of business locations for the customer.
     * This will only be returned if the Location Asset is syncing from the
     * Business Profile account. It is possible to have multiple Business Profile
     * listings under the same account that point to the same Place ID.
     * 
* * repeated .google.ads.googleads.v17.common.BusinessProfileLocation business_profile_locations = 2; */ public java.util.List getBusinessProfileLocationsBuilderList() { return getBusinessProfileLocationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.BusinessProfileLocation, com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder, com.google.ads.googleads.v17.common.BusinessProfileLocationOrBuilder> getBusinessProfileLocationsFieldBuilder() { if (businessProfileLocationsBuilder_ == null) { businessProfileLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.BusinessProfileLocation, com.google.ads.googleads.v17.common.BusinessProfileLocation.Builder, com.google.ads.googleads.v17.common.BusinessProfileLocationOrBuilder>( businessProfileLocations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); businessProfileLocations_ = null; } return businessProfileLocationsBuilder_; } private int locationOwnershipType_ = 0; /** *
     * The type of location ownership.
     * If the type is BUSINESS_OWNER, it will be served as a location extension.
     * If the type is AFFILIATE, it will be served as an affiliate location.
     * 
* * .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3; * @return The enum numeric value on the wire for locationOwnershipType. */ @java.lang.Override public int getLocationOwnershipTypeValue() { return locationOwnershipType_; } /** *
     * The type of location ownership.
     * If the type is BUSINESS_OWNER, it will be served as a location extension.
     * If the type is AFFILIATE, it will be served as an affiliate location.
     * 
* * .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3; * @param value The enum numeric value on the wire for locationOwnershipType to set. * @return This builder for chaining. */ public Builder setLocationOwnershipTypeValue(int value) { locationOwnershipType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The type of location ownership.
     * If the type is BUSINESS_OWNER, it will be served as a location extension.
     * If the type is AFFILIATE, it will be served as an affiliate location.
     * 
* * .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3; * @return The locationOwnershipType. */ @java.lang.Override public com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType getLocationOwnershipType() { com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType result = com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.forNumber(locationOwnershipType_); return result == null ? com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType.UNRECOGNIZED : result; } /** *
     * The type of location ownership.
     * If the type is BUSINESS_OWNER, it will be served as a location extension.
     * If the type is AFFILIATE, it will be served as an affiliate location.
     * 
* * .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3; * @param value The locationOwnershipType to set. * @return This builder for chaining. */ public Builder setLocationOwnershipType(com.google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; locationOwnershipType_ = value.getNumber(); onChanged(); return this; } /** *
     * The type of location ownership.
     * If the type is BUSINESS_OWNER, it will be served as a location extension.
     * If the type is AFFILIATE, it will be served as an affiliate location.
     * 
* * .google.ads.googleads.v17.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3; * @return This builder for chaining. */ public Builder clearLocationOwnershipType() { bitField0_ = (bitField0_ & ~0x00000004); locationOwnershipType_ = 0; 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.LocationAsset) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.LocationAsset) private static final com.google.ads.googleads.v17.common.LocationAsset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.LocationAsset(); } public static com.google.ads.googleads.v17.common.LocationAsset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LocationAsset 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.LocationAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy