Interface EntityOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Entity
,Entity.Builder
public interface EntityOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDescription()
Textual description, e.g.com.google.protobuf.ByteString
getDescriptionBytes()
Textual description, e.g.String
getEntityId()
Opaque entity ID.com.google.protobuf.ByteString
getEntityIdBytes()
Opaque entity ID.String
getLanguageCode()
Language code for `description` in BCP-47 format.com.google.protobuf.ByteString
getLanguageCodeBytes()
Language code for `description` in BCP-47 format.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getEntityId
String getEntityId()
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string entity_id = 1;
- Returns:
- The entityId.
-
getEntityIdBytes
com.google.protobuf.ByteString getEntityIdBytes()
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string entity_id = 1;
- Returns:
- The bytes for entityId.
-
getDescription
String getDescription()
Textual description, e.g. `Fixed-gear bicycle`.
string description = 2;
- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
Textual description, e.g. `Fixed-gear bicycle`.
string description = 2;
- Returns:
- The bytes for description.
-
getLanguageCode
String getLanguageCode()
Language code for `description` in BCP-47 format.
string language_code = 3;
- Returns:
- The languageCode.
-
getLanguageCodeBytes
com.google.protobuf.ByteString getLanguageCodeBytes()
Language code for `description` in BCP-47 format.
string language_code = 3;
- Returns:
- The bytes for languageCode.
-
-