Class ProductCategoryConstant.Builder

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

public static final class ProductCategoryConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder> implements ProductCategoryConstantOrBuilder
 A Product Category.
 
Protobuf type google.ads.googleads.v18.resources.ProductCategoryConstant
  • 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<ProductCategoryConstant.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<ProductCategoryConstant.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<ProductCategoryConstant.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public ProductCategoryConstant.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<ProductCategoryConstant.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Output only. The resource name of the product category.
       Product category resource names have the form:
      
       `productCategoryConstants/{level}~{category_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface ProductCategoryConstantOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the product category.
       Product category resource names have the form:
      
       `productCategoryConstants/{level}~{category_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface ProductCategoryConstantOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public ProductCategoryConstant.Builder setResourceName(String value)
       Output only. The resource name of the product category.
       Product category resource names have the form:
      
       `productCategoryConstants/{level}~{category_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public ProductCategoryConstant.Builder clearResourceName()
       Output only. The resource name of the product category.
       Product category resource names have the form:
      
       `productCategoryConstants/{level}~{category_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public ProductCategoryConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the product category.
       Product category resource names have the form:
      
       `productCategoryConstants/{level}~{category_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getCategoryId

      public long getCategoryId()
       Output only. The ID of the product category.
      
       This ID is equivalent to the google_product_category ID as described in
       this article: https://support.google.com/merchants/answer/6324436.
       
      int64 category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCategoryId in interface ProductCategoryConstantOrBuilder
      Returns:
      The categoryId.
    • setCategoryId

      public ProductCategoryConstant.Builder setCategoryId(long value)
       Output only. The ID of the product category.
      
       This ID is equivalent to the google_product_category ID as described in
       this article: https://support.google.com/merchants/answer/6324436.
       
      int64 category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The categoryId to set.
      Returns:
      This builder for chaining.
    • clearCategoryId

      public ProductCategoryConstant.Builder clearCategoryId()
       Output only. The ID of the product category.
      
       This ID is equivalent to the google_product_category ID as described in
       this article: https://support.google.com/merchants/answer/6324436.
       
      int64 category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasProductCategoryConstantParent

      public boolean hasProductCategoryConstantParent()
       Output only. Resource name of the parent product category.
       
      optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      hasProductCategoryConstantParent in interface ProductCategoryConstantOrBuilder
      Returns:
      Whether the productCategoryConstantParent field is set.
    • getProductCategoryConstantParent

      public String getProductCategoryConstantParent()
       Output only. Resource name of the parent product category.
       
      optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getProductCategoryConstantParent in interface ProductCategoryConstantOrBuilder
      Returns:
      The productCategoryConstantParent.
    • getProductCategoryConstantParentBytes

      public com.google.protobuf.ByteString getProductCategoryConstantParentBytes()
       Output only. Resource name of the parent product category.
       
      optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getProductCategoryConstantParentBytes in interface ProductCategoryConstantOrBuilder
      Returns:
      The bytes for productCategoryConstantParent.
    • setProductCategoryConstantParent

      public ProductCategoryConstant.Builder setProductCategoryConstantParent(String value)
       Output only. Resource name of the parent product category.
       
      optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The productCategoryConstantParent to set.
      Returns:
      This builder for chaining.
    • clearProductCategoryConstantParent

      public ProductCategoryConstant.Builder clearProductCategoryConstantParent()
       Output only. Resource name of the parent product category.
       
      optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setProductCategoryConstantParentBytes

      public ProductCategoryConstant.Builder setProductCategoryConstantParentBytes(com.google.protobuf.ByteString value)
       Output only. Resource name of the parent product category.
       
      optional string product_category_constant_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for productCategoryConstantParent to set.
      Returns:
      This builder for chaining.
    • getLevelValue

      public int getLevelValue()
       Output only. Level of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLevelValue in interface ProductCategoryConstantOrBuilder
      Returns:
      The enum numeric value on the wire for level.
    • setLevelValue

      public ProductCategoryConstant.Builder setLevelValue(int value)
       Output only. Level of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for level to set.
      Returns:
      This builder for chaining.
    • getLevel

       Output only. Level of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLevel in interface ProductCategoryConstantOrBuilder
      Returns:
      The level.
    • setLevel

       Output only. Level of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The level to set.
      Returns:
      This builder for chaining.
    • clearLevel

      public ProductCategoryConstant.Builder clearLevel()
       Output only. Level of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ProductCategoryConstantOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ProductCategoryConstant.Builder setStateValue(int value)
       Output only. State of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       Output only. State of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ProductCategoryConstantOrBuilder
      Returns:
      The state.
    • setState

       Output only. State of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ProductCategoryConstant.Builder clearState()
       Output only. State of the product category.
       
      .google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getLocalizationsList

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocalizationsList in interface ProductCategoryConstantOrBuilder
    • getLocalizationsCount

      public int getLocalizationsCount()
       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocalizationsCount in interface ProductCategoryConstantOrBuilder
    • getLocalizations

      public ProductCategoryConstant.ProductCategoryLocalization getLocalizations(int index)
       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocalizations in interface ProductCategoryConstantOrBuilder
    • setLocalizations

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLocalizations

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLocalizations

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLocalizations

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLocalizations

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLocalizations

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllLocalizations

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLocalizations

      public ProductCategoryConstant.Builder clearLocalizations()
       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeLocalizations

      public ProductCategoryConstant.Builder removeLocalizations(int index)
       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLocalizationsBuilder

      public ProductCategoryConstant.ProductCategoryLocalization.Builder getLocalizationsBuilder(int index)
       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLocalizationsOrBuilder

      public ProductCategoryConstant.ProductCategoryLocalizationOrBuilder getLocalizationsOrBuilder(int index)
       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocalizationsOrBuilder in interface ProductCategoryConstantOrBuilder
    • getLocalizationsOrBuilderList

      public List<? extends ProductCategoryConstant.ProductCategoryLocalizationOrBuilder> getLocalizationsOrBuilderList()
       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocalizationsOrBuilderList in interface ProductCategoryConstantOrBuilder
    • addLocalizationsBuilder

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLocalizationsBuilder

      public ProductCategoryConstant.ProductCategoryLocalization.Builder addLocalizationsBuilder(int index)
       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLocalizationsBuilderList

       Output only. List of all available localizations of the product category.
       
      repeated .google.ads.googleads.v18.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUnknownFields

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

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