Class ProductCategoryConstant.Builder

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

        public 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

        public ProductCategoryConstant.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,
                                                        java.lang.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,
                                                                java.lang.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,
                                                                java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProductCategoryConstant.Builder>
      • 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 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<ProductCategoryConstant.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.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​(java.lang.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 java.lang.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​(java.lang.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.v15.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.v15.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.
      • clearLevel

        public ProductCategoryConstant.Builder clearLevel()
         Output only. Level of the product category.
         
        .google.ads.googleads.v15.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.v15.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.v15.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.
      • clearState

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

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

        public ProductCategoryConstant.Builder addAllLocalizations​(java.lang.Iterable<? extends ProductCategoryConstant.ProductCategoryLocalization> values)
         Output only. List of all available localizations of the product category.
         
        repeated .google.ads.googleads.v15.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.v15.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.v15.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.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addLocalizationsBuilder

        public ProductCategoryConstant.ProductCategoryLocalization.Builder addLocalizationsBuilder()
         Output only. List of all available localizations of the product category.
         
        repeated .google.ads.googleads.v15.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.v15.resources.ProductCategoryConstant.ProductCategoryLocalization localizations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getLocalizationsBuilderList

        public java.util.List<ProductCategoryConstant.ProductCategoryLocalization.Builder> getLocalizationsBuilderList()
         Output only. List of all available localizations of the product category.
         
        repeated .google.ads.googleads.v15.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>