Interface SearchHypernymOrBuilder (0.11.0)

public interface SearchHypernymOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHypernym()

public abstract String getHypernym()

Optional. The hypernym.

string hypernym = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The hypernym.

getHypernymBytes()

public abstract ByteString getHypernymBytes()

Optional. The hypernym.

string hypernym = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for hypernym.

getHyponyms(int index)

public abstract String getHyponyms(int index)

Optional. Hyponyms that the hypernym is mapped to.

repeated string hyponyms = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The hyponyms at the given index.

getHyponymsBytes(int index)

public abstract ByteString getHyponymsBytes(int index)

Optional. Hyponyms that the hypernym is mapped to.

repeated string hyponyms = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the hyponyms at the given index.

getHyponymsCount()

public abstract int getHyponymsCount()

Optional. Hyponyms that the hypernym is mapped to.

repeated string hyponyms = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of hyponyms.

getHyponymsList()

public abstract List<String> getHyponymsList()

Optional. Hyponyms that the hypernym is mapped to.

repeated string hyponyms = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the hyponyms.

getName()

public abstract String getName()

Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.