Class CatalogItem.CategoryHierarchy (0.29.0)

public static final class CatalogItem.CategoryHierarchy extends GeneratedMessageV3 implements CatalogItem.CategoryHierarchyOrBuilder

Category represents catalog item category hierarchy.

Protobuf type google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy

Static Fields

CATEGORIES_FIELD_NUMBER

public static final int CATEGORIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CatalogItem.CategoryHierarchy getDefaultInstance()
Returns
TypeDescription
CatalogItem.CategoryHierarchy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CatalogItem.CategoryHierarchy.Builder newBuilder()
Returns
TypeDescription
CatalogItem.CategoryHierarchy.Builder

newBuilder(CatalogItem.CategoryHierarchy prototype)

public static CatalogItem.CategoryHierarchy.Builder newBuilder(CatalogItem.CategoryHierarchy prototype)
Parameter
NameDescription
prototypeCatalogItem.CategoryHierarchy
Returns
TypeDescription
CatalogItem.CategoryHierarchy.Builder

parseDelimitedFrom(InputStream input)

public static CatalogItem.CategoryHierarchy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CatalogItem.CategoryHierarchy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CatalogItem.CategoryHierarchy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CatalogItem.CategoryHierarchy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CatalogItem.CategoryHierarchy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CatalogItem.CategoryHierarchy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CatalogItem.CategoryHierarchy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CatalogItem.CategoryHierarchy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CatalogItem.CategoryHierarchy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CatalogItem.CategoryHierarchy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CatalogItem.CategoryHierarchy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CatalogItem.CategoryHierarchy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CatalogItem.CategoryHierarchy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CatalogItem.CategoryHierarchy> parser()
Returns
TypeDescription
Parser<CategoryHierarchy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCategories(int index)

public 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 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 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 ProtocolStringList 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
ProtocolStringList

A list containing the categories.

getDefaultInstanceForType()

public CatalogItem.CategoryHierarchy getDefaultInstanceForType()
Returns
TypeDescription
CatalogItem.CategoryHierarchy

getParserForType()

public Parser<CatalogItem.CategoryHierarchy> getParserForType()
Returns
TypeDescription
Parser<CategoryHierarchy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CatalogItem.CategoryHierarchy.Builder newBuilderForType()
Returns
TypeDescription
CatalogItem.CategoryHierarchy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CatalogItem.CategoryHierarchy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CatalogItem.CategoryHierarchy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CatalogItem.CategoryHierarchy.Builder toBuilder()
Returns
TypeDescription
CatalogItem.CategoryHierarchy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException