Interface ReferenceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Reference,Reference.Builder
public interface ReferenceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintOptional: Starting point of the atom's text within the resource's text.Optional: ID of the related resouce.com.google.protobuf.ByteStringOptional: ID of the related resouce.getText()Original text of the related resource used for the atom.com.google.protobuf.ByteStringOriginal text of the related resource used for the atom.booleanOptional: Starting point of the atom's text within the resource's text.booleanOptional: ID of the related resouce.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
-
hasResource
boolean hasResource()Optional: ID of the related resouce.
optional string resource = 1 [json_name = "resource"];- Returns:
- Whether the resource field is set.
-
getResource
String getResource()Optional: ID of the related resouce.
optional string resource = 1 [json_name = "resource"];- Returns:
- The resource.
-
getResourceBytes
com.google.protobuf.ByteString getResourceBytes()Optional: ID of the related resouce.
optional string resource = 1 [json_name = "resource"];- Returns:
- The bytes for resource.
-
hasOffset
boolean hasOffset()Optional: Starting point of the atom's text within the resource's text.
optional uint32 offset = 2 [json_name = "offset"];- Returns:
- Whether the offset field is set.
-
getOffset
int getOffset()Optional: Starting point of the atom's text within the resource's text.
optional uint32 offset = 2 [json_name = "offset"];- Returns:
- The offset.
-
getText
String getText()Original text of the related resource used for the atom.
string text = 3 [json_name = "text"];- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()Original text of the related resource used for the atom.
string text = 3 [json_name = "text"];- Returns:
- The bytes for text.
-