public static interface CatalogItem.CategoryHierarchyOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCategories(int index)
public abstract String getCategories(int index)
Required. Catalog item categories. Each category should be a UTF-8 encoded string with a length limit of 2 KiB.
Note that the order in the list denotes the specificity (from least to most specific).
repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The categories at the given index. |
getCategoriesBytes(int index)
public abstract ByteString getCategoriesBytes(int index)
Required. Catalog item categories. Each category should be a UTF-8 encoded string with a length limit of 2 KiB.
Note that the order in the list denotes the specificity (from least to most specific).
repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the categories at the given index. |
getCategoriesCount()
public abstract int getCategoriesCount()
Required. Catalog item categories. Each category should be a UTF-8 encoded string with a length limit of 2 KiB.
Note that the order in the list denotes the specificity (from least to most specific).
repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int | The count of categories. |
getCategoriesList()
public abstract List<String> getCategoriesList()
Required. Catalog item categories. Each category should be a UTF-8 encoded string with a length limit of 2 KiB.
Note that the order in the list denotes the specificity (from least to most specific).
repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<String> | A list containing the categories. |