Package com.google.cloud.visionai.v1
Interface SearchHypernymOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchHypernym,SearchHypernym.Builder
@Generated
public interface SearchHypernymOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.com.google.protobuf.ByteStringOptional.getHyponyms(int index) Optional.com.google.protobuf.ByteStringgetHyponymsBytes(int index) Optional.intOptional.Optional.getName()Resource name of the SearchHypernym.com.google.protobuf.ByteStringResource name of the SearchHypernym.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Resource name of the SearchHypernym. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Resource name of the SearchHypernym. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`string name = 1;- Returns:
- The bytes for name.
-
getHypernym
String getHypernym()Optional. The hypernym.
string hypernym = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The hypernym.
-
getHypernymBytes
com.google.protobuf.ByteString getHypernymBytes()Optional. The hypernym.
string hypernym = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for hypernym.
-
getHyponymsList
Optional. Hyponyms that the hypernym is mapped to.
repeated string hyponyms = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the hyponyms.
-
getHyponymsCount
int getHyponymsCount()Optional. Hyponyms that the hypernym is mapped to.
repeated string hyponyms = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of hyponyms.
-
getHyponyms
Optional. Hyponyms that the hypernym is mapped to.
repeated string hyponyms = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The hyponyms at the given index.
-
getHyponymsBytes
com.google.protobuf.ByteString getHyponymsBytes(int index) Optional. Hyponyms that the hypernym is mapped to.
repeated string hyponyms = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the hyponyms at the given index.
-