Class SuggestBrandsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SuggestBrandsRequest.Builder>
com.google.ads.googleads.v18.services.SuggestBrandsRequest.Builder
All Implemented Interfaces:
SuggestBrandsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SuggestBrandsRequest

public static final class SuggestBrandsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SuggestBrandsRequest.Builder> implements SuggestBrandsRequestOrBuilder
 Request message for
 [BrandSuggestionService.SuggestBrands][google.ads.googleads.v18.services.BrandSuggestionService.SuggestBrands].
 
Protobuf type google.ads.googleads.v18.services.SuggestBrandsRequest
  • 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<SuggestBrandsRequest.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<SuggestBrandsRequest.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<SuggestBrandsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public SuggestBrandsRequest.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<SuggestBrandsRequest.Builder>
      Throws:
      IOException
    • getCustomerId

      public String getCustomerId()
       Required. The ID of the customer onto which to apply the brand suggestion
       operation.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerId in interface SuggestBrandsRequestOrBuilder
      Returns:
      The customerId.
    • getCustomerIdBytes

      public com.google.protobuf.ByteString getCustomerIdBytes()
       Required. The ID of the customer onto which to apply the brand suggestion
       operation.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerIdBytes in interface SuggestBrandsRequestOrBuilder
      Returns:
      The bytes for customerId.
    • setCustomerId

      public SuggestBrandsRequest.Builder setCustomerId(String value)
       Required. The ID of the customer onto which to apply the brand suggestion
       operation.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The customerId to set.
      Returns:
      This builder for chaining.
    • clearCustomerId

      public SuggestBrandsRequest.Builder clearCustomerId()
       Required. The ID of the customer onto which to apply the brand suggestion
       operation.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCustomerIdBytes

      public SuggestBrandsRequest.Builder setCustomerIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the customer onto which to apply the brand suggestion
       operation.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for customerId to set.
      Returns:
      This builder for chaining.
    • hasBrandPrefix

      public boolean hasBrandPrefix()
       Required. The prefix of a brand name.
       
      optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasBrandPrefix in interface SuggestBrandsRequestOrBuilder
      Returns:
      Whether the brandPrefix field is set.
    • getBrandPrefix

      public String getBrandPrefix()
       Required. The prefix of a brand name.
       
      optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBrandPrefix in interface SuggestBrandsRequestOrBuilder
      Returns:
      The brandPrefix.
    • getBrandPrefixBytes

      public com.google.protobuf.ByteString getBrandPrefixBytes()
       Required. The prefix of a brand name.
       
      optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBrandPrefixBytes in interface SuggestBrandsRequestOrBuilder
      Returns:
      The bytes for brandPrefix.
    • setBrandPrefix

      public SuggestBrandsRequest.Builder setBrandPrefix(String value)
       Required. The prefix of a brand name.
       
      optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The brandPrefix to set.
      Returns:
      This builder for chaining.
    • clearBrandPrefix

      public SuggestBrandsRequest.Builder clearBrandPrefix()
       Required. The prefix of a brand name.
       
      optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setBrandPrefixBytes

      public SuggestBrandsRequest.Builder setBrandPrefixBytes(com.google.protobuf.ByteString value)
       Required. The prefix of a brand name.
       
      optional string brand_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for brandPrefix to set.
      Returns:
      This builder for chaining.
    • getSelectedBrandsList

      public com.google.protobuf.ProtocolStringList getSelectedBrandsList()
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedBrandsList in interface SuggestBrandsRequestOrBuilder
      Returns:
      A list containing the selectedBrands.
    • getSelectedBrandsCount

      public int getSelectedBrandsCount()
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedBrandsCount in interface SuggestBrandsRequestOrBuilder
      Returns:
      The count of selectedBrands.
    • getSelectedBrands

      public String getSelectedBrands(int index)
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedBrands in interface SuggestBrandsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The selectedBrands at the given index.
    • getSelectedBrandsBytes

      public com.google.protobuf.ByteString getSelectedBrandsBytes(int index)
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedBrandsBytes in interface SuggestBrandsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the selectedBrands at the given index.
    • setSelectedBrands

      public SuggestBrandsRequest.Builder setSelectedBrands(int index, String value)
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The selectedBrands to set.
      Returns:
      This builder for chaining.
    • addSelectedBrands

      public SuggestBrandsRequest.Builder addSelectedBrands(String value)
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The selectedBrands to add.
      Returns:
      This builder for chaining.
    • addAllSelectedBrands

      public SuggestBrandsRequest.Builder addAllSelectedBrands(Iterable<String> values)
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The selectedBrands to add.
      Returns:
      This builder for chaining.
    • clearSelectedBrands

      public SuggestBrandsRequest.Builder clearSelectedBrands()
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addSelectedBrandsBytes

      public SuggestBrandsRequest.Builder addSelectedBrandsBytes(com.google.protobuf.ByteString value)
       Optional. Ids of the brands already selected by advertisers. They will be
       excluded in response. These are expected to be brand ids not brand names.
       
      repeated string selected_brands = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the selectedBrands to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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