Class LocationAsset.Builder

  • All Implemented Interfaces:
    LocationAssetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    LocationAsset

    public static final class LocationAsset.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
    implements LocationAssetOrBuilder
     A location asset.
     
    Protobuf type google.ads.googleads.v14.common.LocationAsset
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • clear

        public LocationAsset.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • getDefaultInstanceForType

        public LocationAsset getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public LocationAsset build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public LocationAsset buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public LocationAsset.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • setField

        public LocationAsset.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • clearField

        public LocationAsset.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • clearOneof

        public LocationAsset.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • setRepeatedField

        public LocationAsset.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • addRepeatedField

        public LocationAsset.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • mergeFrom

        public LocationAsset.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocationAsset.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • mergeFrom

        public LocationAsset.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocationAsset.Builder>
        Throws:
        java.io.IOException
      • getPlaceId

        public java.lang.String getPlaceId()
         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;
        Specified by:
        getPlaceId in interface LocationAssetOrBuilder
        Returns:
        The placeId.
      • getPlaceIdBytes

        public com.google.protobuf.ByteString getPlaceIdBytes()
         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;
        Specified by:
        getPlaceIdBytes in interface LocationAssetOrBuilder
        Returns:
        The bytes for placeId.
      • setPlaceId

        public LocationAsset.Builder setPlaceId​(java.lang.String value)
         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;
        Parameters:
        value - The placeId to set.
        Returns:
        This builder for chaining.
      • clearPlaceId

        public LocationAsset.Builder clearPlaceId()
         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;
        Returns:
        This builder for chaining.
      • setPlaceIdBytes

        public LocationAsset.Builder setPlaceIdBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for placeId to set.
        Returns:
        This builder for chaining.
      • getBusinessProfileLocationsList

        public java.util.List<BusinessProfileLocation> getBusinessProfileLocationsList()
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
        Specified by:
        getBusinessProfileLocationsList in interface LocationAssetOrBuilder
      • getBusinessProfileLocationsCount

        public int getBusinessProfileLocationsCount()
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
        Specified by:
        getBusinessProfileLocationsCount in interface LocationAssetOrBuilder
      • getBusinessProfileLocations

        public BusinessProfileLocation getBusinessProfileLocations​(int 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.v14.common.BusinessProfileLocation business_profile_locations = 2;
        Specified by:
        getBusinessProfileLocations in interface LocationAssetOrBuilder
      • setBusinessProfileLocations

        public LocationAsset.Builder setBusinessProfileLocations​(int index,
                                                                 BusinessProfileLocation value)
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • setBusinessProfileLocations

        public LocationAsset.Builder setBusinessProfileLocations​(int index,
                                                                 BusinessProfileLocation.Builder builderForValue)
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • addBusinessProfileLocations

        public LocationAsset.Builder addBusinessProfileLocations​(BusinessProfileLocation value)
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • addBusinessProfileLocations

        public LocationAsset.Builder addBusinessProfileLocations​(int index,
                                                                 BusinessProfileLocation value)
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • addBusinessProfileLocations

        public LocationAsset.Builder addBusinessProfileLocations​(BusinessProfileLocation.Builder builderForValue)
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • addBusinessProfileLocations

        public LocationAsset.Builder addBusinessProfileLocations​(int index,
                                                                 BusinessProfileLocation.Builder builderForValue)
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • addAllBusinessProfileLocations

        public LocationAsset.Builder addAllBusinessProfileLocations​(java.lang.Iterable<? extends BusinessProfileLocation> values)
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • clearBusinessProfileLocations

        public LocationAsset.Builder clearBusinessProfileLocations()
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • removeBusinessProfileLocations

        public LocationAsset.Builder removeBusinessProfileLocations​(int 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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • getBusinessProfileLocationsBuilder

        public BusinessProfileLocation.Builder getBusinessProfileLocationsBuilder​(int 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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • getBusinessProfileLocationsOrBuilder

        public BusinessProfileLocationOrBuilder getBusinessProfileLocationsOrBuilder​(int 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.v14.common.BusinessProfileLocation business_profile_locations = 2;
        Specified by:
        getBusinessProfileLocationsOrBuilder in interface LocationAssetOrBuilder
      • getBusinessProfileLocationsOrBuilderList

        public java.util.List<? extends BusinessProfileLocationOrBuilder> getBusinessProfileLocationsOrBuilderList()
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
        Specified by:
        getBusinessProfileLocationsOrBuilderList in interface LocationAssetOrBuilder
      • addBusinessProfileLocationsBuilder

        public BusinessProfileLocation.Builder addBusinessProfileLocationsBuilder()
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • addBusinessProfileLocationsBuilder

        public BusinessProfileLocation.Builder addBusinessProfileLocationsBuilder​(int 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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • getBusinessProfileLocationsBuilderList

        public java.util.List<BusinessProfileLocation.Builder> getBusinessProfileLocationsBuilderList()
         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.v14.common.BusinessProfileLocation business_profile_locations = 2;
      • getLocationOwnershipTypeValue

        public int getLocationOwnershipTypeValue()
         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.v14.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;
        Specified by:
        getLocationOwnershipTypeValue in interface LocationAssetOrBuilder
        Returns:
        The enum numeric value on the wire for locationOwnershipType.
      • setLocationOwnershipTypeValue

        public LocationAsset.Builder setLocationOwnershipTypeValue​(int value)
         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.v14.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;
        Parameters:
        value - The enum numeric value on the wire for locationOwnershipType to set.
        Returns:
        This builder for chaining.
      • getLocationOwnershipType

        public LocationOwnershipTypeEnum.LocationOwnershipType getLocationOwnershipType()
         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.v14.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;
        Specified by:
        getLocationOwnershipType in interface LocationAssetOrBuilder
        Returns:
        The locationOwnershipType.
      • setLocationOwnershipType

        public LocationAsset.Builder setLocationOwnershipType​(LocationOwnershipTypeEnum.LocationOwnershipType value)
         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.v14.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;
        Parameters:
        value - The locationOwnershipType to set.
        Returns:
        This builder for chaining.
      • clearLocationOwnershipType

        public LocationAsset.Builder clearLocationOwnershipType()
         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.v14.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final LocationAsset.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
      • mergeUnknownFields

        public final LocationAsset.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>