Interface ProductCategoryConstantOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProductCategoryConstant,ProductCategoryConstant.Builder
public interface ProductCategoryConstantOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongOutput only.getLevel()Output only.intOutput only.getLocalizations(int index) Output only.intOutput only.Output only.getLocalizationsOrBuilder(int index) Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getState()Output only.intOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getResourceName
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) = { ... }- Returns:
- The resourceName.
-
getResourceNameBytes
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) = { ... }- Returns:
- The bytes for resourceName.
-
getCategoryId
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];- Returns:
- The categoryId.
-
hasProductCategoryConstantParent
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) = { ... }- Returns:
- Whether the productCategoryConstantParent field is set.
-
getProductCategoryConstantParent
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) = { ... }- Returns:
- The productCategoryConstantParent.
-
getProductCategoryConstantParentBytes
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) = { ... }- Returns:
- The bytes for productCategoryConstantParent.
-
getLevelValue
int getLevelValue()Output only. Level of the product category.
.google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for level.
-
getLevel
Output only. Level of the product category.
.google.ads.googleads.v18.enums.ProductCategoryLevelEnum.ProductCategoryLevel level = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The level.
-
getStateValue
int getStateValue()Output only. State of the product category.
.google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. State of the product category.
.google.ads.googleads.v18.enums.ProductCategoryStateEnum.ProductCategoryState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
getLocalizationsList
List<ProductCategoryConstant.ProductCategoryLocalization> 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]; -
getLocalizations
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]; -
getLocalizationsCount
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]; -
getLocalizationsOrBuilderList
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]; -
getLocalizationsOrBuilder
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];
-