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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getOffset()
      Optional: Starting point of the atom's text within the resource's text.
      java.lang.String getResource()
      Optional: ID of the related resouce.
      com.google.protobuf.ByteString getResourceBytes()
      Optional: ID of the related resouce.
      java.lang.String getText()
      Original text of the related resource used for the atom.
      com.google.protobuf.ByteString getTextBytes()
      Original text of the related resource used for the atom.
      boolean hasOffset()
      Optional: Starting point of the atom's text within the resource's text.
      boolean hasResource()
      Optional: ID of the related resouce.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasResource

        boolean hasResource()
         Optional: ID of the related resouce.
         
        optional string resource = 1 [json_name = "resource"];
        Returns:
        Whether the resource field is set.
      • getResource

        java.lang.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

        java.lang.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.