Interface CatalogItem.CategoryHierarchyOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getCategories​(int index)
      Required.
      com.google.protobuf.ByteString getCategoriesBytes​(int index)
      Required.
      int getCategoriesCount()
      Required.
      List<String> getCategoriesList()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getCategoriesList

        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:
        A list containing the categories.
      • getCategoriesCount

        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:
        The count of categories.
      • getCategories

        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];
        Parameters:
        index - The index of the element to return.
        Returns:
        The categories at the given index.
      • getCategoriesBytes

        com.google.protobuf.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];
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the categories at the given index.