Interface CatalogItem.CategoryHierarchyOrBuilder (0.43.0)

public static interface CatalogItem.CategoryHierarchyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>

A list containing the categories.