Package io.spine.net

Interface UriOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Uri, Uri.Builder

    public interface UriOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasProtocol

        boolean hasProtocol()
         Application layer protocol.
         
        .spine.net.Uri.Protocol protocol = 1;
        Returns:
        Whether the protocol field is set.
      • getProtocol

        Uri.Protocol getProtocol()
         Application layer protocol.
         
        .spine.net.Uri.Protocol protocol = 1;
        Returns:
        The protocol.
      • getProtocolOrBuilder

        Uri.ProtocolOrBuilder getProtocolOrBuilder()
         Application layer protocol.
         
        .spine.net.Uri.Protocol protocol = 1;
      • hasAuth

        boolean hasAuth()
         User's email and password (both optional).
         
        .spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
        Returns:
        Whether the auth field is set.
      • getAuth

        Uri.Authorization getAuth()
         User's email and password (both optional).
         
        .spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
        Returns:
        The auth.
      • getAuthOrBuilder

        Uri.AuthorizationOrBuilder getAuthOrBuilder()
         User's email and password (both optional).
         
        .spine.net.Uri.Authorization auth = 2 [(.required) = false, (.validate) = true];
      • getHost

        String getHost()
         Domain name.
         
        string host = 3;
        Returns:
        The host.
      • getHostBytes

        com.google.protobuf.ByteString getHostBytes()
         Domain name.
         
        string host = 3;
        Returns:
        The bytes for host.
      • getPort

        String getPort()
         Server's port (e.g. :8080).
         We leave port as string, because port 0 is hypothetically possible to use.
         
        string port = 4;
        Returns:
        The port.
      • getPortBytes

        com.google.protobuf.ByteString getPortBytes()
         Server's port (e.g. :8080).
         We leave port as string, because port 0 is hypothetically possible to use.
         
        string port = 4;
        Returns:
        The bytes for port.
      • getPath

        String getPath()
         Relative path to desired resource (e.g. "/index" or "/js/app.js").
         
        string path = 5;
        Returns:
        The path.
      • getPathBytes

        com.google.protobuf.ByteString getPathBytes()
         Relative path to desired resource (e.g. "/index" or "/js/app.js").
         
        string path = 5;
        Returns:
        The bytes for path.
      • getQueryList

        List<Uri.QueryParameter> getQueryList()
         A list of key-value pairs (?key1=value1&key2=value2).
         
        repeated .spine.net.Uri.QueryParameter query = 6;
      • getQuery

        Uri.QueryParameter getQuery​(int index)
         A list of key-value pairs (?key1=value1&key2=value2).
         
        repeated .spine.net.Uri.QueryParameter query = 6;
      • getQueryCount

        int getQueryCount()
         A list of key-value pairs (?key1=value1&key2=value2).
         
        repeated .spine.net.Uri.QueryParameter query = 6;
      • getQueryOrBuilderList

        List<? extends Uri.QueryParameterOrBuilder> getQueryOrBuilderList()
         A list of key-value pairs (?key1=value1&key2=value2).
         
        repeated .spine.net.Uri.QueryParameter query = 6;
      • getQueryOrBuilder

        Uri.QueryParameterOrBuilder getQueryOrBuilder​(int index)
         A list of key-value pairs (?key1=value1&key2=value2).
         
        repeated .spine.net.Uri.QueryParameter query = 6;
      • getFragment

        String getFragment()
         Sub-resource (e.g. "#article").
         
        string fragment = 7;
        Returns:
        The fragment.
      • getFragmentBytes

        com.google.protobuf.ByteString getFragmentBytes()
         Sub-resource (e.g. "#article").
         
        string fragment = 7;
        Returns:
        The bytes for fragment.