Class BusinessProfileLocationSet.Builder

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

    public static final class BusinessProfileLocationSet.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BusinessProfileLocationSet.Builder>
    implements BusinessProfileLocationSetOrBuilder
     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 google.ads.googleads.v14.common.BusinessProfileLocationSet
    • 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<BusinessProfileLocationSet.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<BusinessProfileLocationSet.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        public java.lang.String getHttpAuthorizationToken()
         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];
        Specified by:
        getHttpAuthorizationToken in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The httpAuthorizationToken.
      • getHttpAuthorizationTokenBytes

        public com.google.protobuf.ByteString getHttpAuthorizationTokenBytes()
         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];
        Specified by:
        getHttpAuthorizationTokenBytes in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The bytes for httpAuthorizationToken.
      • setHttpAuthorizationToken

        public BusinessProfileLocationSet.Builder setHttpAuthorizationToken​(java.lang.String value)
         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];
        Parameters:
        value - The httpAuthorizationToken to set.
        Returns:
        This builder for chaining.
      • clearHttpAuthorizationToken

        public BusinessProfileLocationSet.Builder clearHttpAuthorizationToken()
         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];
        Returns:
        This builder for chaining.
      • setHttpAuthorizationTokenBytes

        public BusinessProfileLocationSet.Builder setHttpAuthorizationTokenBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for httpAuthorizationToken to set.
        Returns:
        This builder for chaining.
      • getEmailAddress

        public java.lang.String getEmailAddress()
         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];
        Specified by:
        getEmailAddress in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The emailAddress.
      • getEmailAddressBytes

        public com.google.protobuf.ByteString getEmailAddressBytes()
         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];
        Specified by:
        getEmailAddressBytes in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The bytes for emailAddress.
      • setEmailAddress

        public BusinessProfileLocationSet.Builder setEmailAddress​(java.lang.String value)
         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];
        Parameters:
        value - The emailAddress to set.
        Returns:
        This builder for chaining.
      • clearEmailAddress

        public BusinessProfileLocationSet.Builder clearEmailAddress()
         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];
        Returns:
        This builder for chaining.
      • setEmailAddressBytes

        public BusinessProfileLocationSet.Builder setEmailAddressBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for emailAddress to set.
        Returns:
        This builder for chaining.
      • getBusinessNameFilter

        public java.lang.String getBusinessNameFilter()
         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;
        Specified by:
        getBusinessNameFilter in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The businessNameFilter.
      • getBusinessNameFilterBytes

        public com.google.protobuf.ByteString getBusinessNameFilterBytes()
         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;
        Specified by:
        getBusinessNameFilterBytes in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The bytes for businessNameFilter.
      • setBusinessNameFilter

        public BusinessProfileLocationSet.Builder setBusinessNameFilter​(java.lang.String value)
         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;
        Parameters:
        value - The businessNameFilter to set.
        Returns:
        This builder for chaining.
      • clearBusinessNameFilter

        public BusinessProfileLocationSet.Builder clearBusinessNameFilter()
         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;
        Returns:
        This builder for chaining.
      • setBusinessNameFilterBytes

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

        public com.google.protobuf.ProtocolStringList getLabelFiltersList()
         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;
        Specified by:
        getLabelFiltersList in interface BusinessProfileLocationSetOrBuilder
        Returns:
        A list containing the labelFilters.
      • getLabelFiltersCount

        public int getLabelFiltersCount()
         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;
        Specified by:
        getLabelFiltersCount in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The count of labelFilters.
      • getLabelFilters

        public java.lang.String getLabelFilters​(int 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;
        Specified by:
        getLabelFilters in interface BusinessProfileLocationSetOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The labelFilters at the given index.
      • getLabelFiltersBytes

        public com.google.protobuf.ByteString getLabelFiltersBytes​(int 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;
        Specified by:
        getLabelFiltersBytes in interface BusinessProfileLocationSetOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the labelFilters at the given index.
      • setLabelFilters

        public BusinessProfileLocationSet.Builder setLabelFilters​(int index,
                                                                  java.lang.String value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The labelFilters to set.
        Returns:
        This builder for chaining.
      • addLabelFilters

        public BusinessProfileLocationSet.Builder addLabelFilters​(java.lang.String value)
         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;
        Parameters:
        value - The labelFilters to add.
        Returns:
        This builder for chaining.
      • addAllLabelFilters

        public BusinessProfileLocationSet.Builder addAllLabelFilters​(java.lang.Iterable<java.lang.String> values)
         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;
        Parameters:
        values - The labelFilters to add.
        Returns:
        This builder for chaining.
      • clearLabelFilters

        public BusinessProfileLocationSet.Builder clearLabelFilters()
         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;
        Returns:
        This builder for chaining.
      • addLabelFiltersBytes

        public BusinessProfileLocationSet.Builder addLabelFiltersBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the labelFilters to add.
        Returns:
        This builder for chaining.
      • getListingIdFiltersList

        public java.util.List<java.lang.Long> getListingIdFiltersList()
         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;
        Specified by:
        getListingIdFiltersList in interface BusinessProfileLocationSetOrBuilder
        Returns:
        A list containing the listingIdFilters.
      • getListingIdFiltersCount

        public int getListingIdFiltersCount()
         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;
        Specified by:
        getListingIdFiltersCount in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The count of listingIdFilters.
      • getListingIdFilters

        public long getListingIdFilters​(int 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;
        Specified by:
        getListingIdFilters in interface BusinessProfileLocationSetOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The listingIdFilters at the given index.
      • setListingIdFilters

        public BusinessProfileLocationSet.Builder setListingIdFilters​(int index,
                                                                      long value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The listingIdFilters to set.
        Returns:
        This builder for chaining.
      • addListingIdFilters

        public BusinessProfileLocationSet.Builder addListingIdFilters​(long value)
         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;
        Parameters:
        value - The listingIdFilters to add.
        Returns:
        This builder for chaining.
      • addAllListingIdFilters

        public BusinessProfileLocationSet.Builder addAllListingIdFilters​(java.lang.Iterable<? extends java.lang.Long> values)
         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;
        Parameters:
        values - The listingIdFilters to add.
        Returns:
        This builder for chaining.
      • clearListingIdFilters

        public BusinessProfileLocationSet.Builder clearListingIdFilters()
         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;
        Returns:
        This builder for chaining.
      • getBusinessAccountId

        public java.lang.String getBusinessAccountId()
         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];
        Specified by:
        getBusinessAccountId in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The businessAccountId.
      • getBusinessAccountIdBytes

        public com.google.protobuf.ByteString getBusinessAccountIdBytes()
         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];
        Specified by:
        getBusinessAccountIdBytes in interface BusinessProfileLocationSetOrBuilder
        Returns:
        The bytes for businessAccountId.
      • setBusinessAccountId

        public BusinessProfileLocationSet.Builder setBusinessAccountId​(java.lang.String value)
         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];
        Parameters:
        value - The businessAccountId to set.
        Returns:
        This builder for chaining.
      • clearBusinessAccountId

        public BusinessProfileLocationSet.Builder clearBusinessAccountId()
         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];
        Returns:
        This builder for chaining.
      • setBusinessAccountIdBytes

        public BusinessProfileLocationSet.Builder setBusinessAccountIdBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for businessAccountId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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