Class BusinessProfileLocationSet.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BusinessProfileLocationSet.Builder>
com.google.ads.googleads.v18.common.BusinessProfileLocationSet.Builder
All Implemented Interfaces:
BusinessProfileLocationSetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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.v18.common.BusinessProfileLocationSet
  • Method Details

    • 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>
    • 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<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

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

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

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

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

      public BusinessProfileLocationSet.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, 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, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BusinessProfileLocationSet.Builder>
    • mergeFrom

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

    • 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 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:
      IOException
    • getHttpAuthorizationToken

      public 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(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 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(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 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(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 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, 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(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(Iterable<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 List<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(Iterable<? extends 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 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(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>