Class BusinessProfileLocation.Builder

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

    public static final class BusinessProfileLocation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BusinessProfileLocation.Builder>
    implements BusinessProfileLocationOrBuilder
     Business Profile location data synced from the linked Business Profile
     account.
     
    Protobuf type google.ads.googleads.v15.common.BusinessProfileLocation
    • 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<BusinessProfileLocation.Builder>
      • clear

        public BusinessProfileLocation.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<BusinessProfileLocation.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<BusinessProfileLocation.Builder>
      • getDefaultInstanceForType

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

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

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

        public BusinessProfileLocation.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<BusinessProfileLocation.Builder>
      • setField

        public BusinessProfileLocation.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<BusinessProfileLocation.Builder>
      • clearField

        public BusinessProfileLocation.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<BusinessProfileLocation.Builder>
      • clearOneof

        public BusinessProfileLocation.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<BusinessProfileLocation.Builder>
      • setRepeatedField

        public BusinessProfileLocation.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<BusinessProfileLocation.Builder>
      • addRepeatedField

        public BusinessProfileLocation.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<BusinessProfileLocation.Builder>
      • isInitialized

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

        public BusinessProfileLocation.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<BusinessProfileLocation.Builder>
        Throws:
        java.io.IOException
      • getLabelsList

        public com.google.protobuf.ProtocolStringList getLabelsList()
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Specified by:
        getLabelsList in interface BusinessProfileLocationOrBuilder
        Returns:
        A list containing the labels.
      • getLabelsCount

        public int getLabelsCount()
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Specified by:
        getLabelsCount in interface BusinessProfileLocationOrBuilder
        Returns:
        The count of labels.
      • getLabels

        public java.lang.String getLabels​(int index)
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Specified by:
        getLabels in interface BusinessProfileLocationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The labels at the given index.
      • getLabelsBytes

        public com.google.protobuf.ByteString getLabelsBytes​(int index)
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Specified by:
        getLabelsBytes in interface BusinessProfileLocationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the labels at the given index.
      • setLabels

        public BusinessProfileLocation.Builder setLabels​(int index,
                                                         java.lang.String value)
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Parameters:
        index - The index to set the value at.
        value - The labels to set.
        Returns:
        This builder for chaining.
      • addLabels

        public BusinessProfileLocation.Builder addLabels​(java.lang.String value)
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Parameters:
        value - The labels to add.
        Returns:
        This builder for chaining.
      • addAllLabels

        public BusinessProfileLocation.Builder addAllLabels​(java.lang.Iterable<java.lang.String> values)
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Parameters:
        values - The labels to add.
        Returns:
        This builder for chaining.
      • clearLabels

        public BusinessProfileLocation.Builder clearLabels()
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Returns:
        This builder for chaining.
      • addLabelsBytes

        public BusinessProfileLocation.Builder addLabelsBytes​(com.google.protobuf.ByteString value)
         Advertiser specified label for the location on the Business Profile
         account. This is synced from the Business Profile account.
         
        repeated string labels = 1;
        Parameters:
        value - The bytes of the labels to add.
        Returns:
        This builder for chaining.
      • getStoreCode

        public java.lang.String getStoreCode()
         Business Profile store code of this location. This is synced from the
         Business Profile account.
         
        string store_code = 2;
        Specified by:
        getStoreCode in interface BusinessProfileLocationOrBuilder
        Returns:
        The storeCode.
      • getStoreCodeBytes

        public com.google.protobuf.ByteString getStoreCodeBytes()
         Business Profile store code of this location. This is synced from the
         Business Profile account.
         
        string store_code = 2;
        Specified by:
        getStoreCodeBytes in interface BusinessProfileLocationOrBuilder
        Returns:
        The bytes for storeCode.
      • setStoreCode

        public BusinessProfileLocation.Builder setStoreCode​(java.lang.String value)
         Business Profile store code of this location. This is synced from the
         Business Profile account.
         
        string store_code = 2;
        Parameters:
        value - The storeCode to set.
        Returns:
        This builder for chaining.
      • clearStoreCode

        public BusinessProfileLocation.Builder clearStoreCode()
         Business Profile store code of this location. This is synced from the
         Business Profile account.
         
        string store_code = 2;
        Returns:
        This builder for chaining.
      • setStoreCodeBytes

        public BusinessProfileLocation.Builder setStoreCodeBytes​(com.google.protobuf.ByteString value)
         Business Profile store code of this location. This is synced from the
         Business Profile account.
         
        string store_code = 2;
        Parameters:
        value - The bytes for storeCode to set.
        Returns:
        This builder for chaining.
      • getListingId

        public long getListingId()
         Listing ID of this Business Profile location. This is synced from the
         linked Business Profile account.
         
        int64 listing_id = 3;
        Specified by:
        getListingId in interface BusinessProfileLocationOrBuilder
        Returns:
        The listingId.
      • setListingId

        public BusinessProfileLocation.Builder setListingId​(long value)
         Listing ID of this Business Profile location. This is synced from the
         linked Business Profile account.
         
        int64 listing_id = 3;
        Parameters:
        value - The listingId to set.
        Returns:
        This builder for chaining.
      • clearListingId

        public BusinessProfileLocation.Builder clearListingId()
         Listing ID of this Business Profile location. This is synced from the
         linked Business Profile account.
         
        int64 listing_id = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final BusinessProfileLocation.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<BusinessProfileLocation.Builder>
      • mergeUnknownFields

        public final BusinessProfileLocation.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<BusinessProfileLocation.Builder>