-
Notifications
You must be signed in to change notification settings - Fork 0
/
uri.proto
70 lines (59 loc) · 2.71 KB
/
uri.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright 2020-2024 SIX AFTER, INC (SIX AFTER)
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: SIX AFTER, INC (SIX AFTER)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax="proto3";
package sixafter.types;
option go_package="github.com/sixafter/types;types";
option cc_enable_arenas = true;
option java_package = "com.sixafter.types";
option java_multiple_files = true;
option java_outer_classname = "UriProto";
option objc_class_prefix = "TPB";
option csharp_namespace = "SixAfter.Types.WellKnownTypes";
// The `Uri` message represents a Uniform Resource Identifier (URI) as defined by
// [RFC 2396: Uniform Resource Identifiers (URI): Generic Syntax](http://www.ietf.org/rfc/rfc2396.txt),
// amended by [RFC 2732: Format for Literal IPv6 Addresses in URLs](http://www.ietf.org/rfc/rfc2732.txt).
// A URI is a compact string used to identify a resource in a generic syntax.
message Uri {
// The scheme component of the URI.
// Example: "https", "ftp", or "mailto".
string scheme = 1;
// The fragment component of the URI.
// This is the optional part of the URI that follows a "#" and provides an identifier
// to a secondary resource.
// Example: "section1" in "https://example.com/page#section1".
string fragment = 2;
// The host component of the URI.
// This identifies the domain name or IP address of the resource.
// Example: "example.com" or "192.168.1.1".
string host = 3;
// The port number of the URI.
// This is the optional number that specifies the communication port.
// Example: 443 for HTTPS.
int32 port = 4;
// The query component of the URI.
// This contains optional parameters appended to the URI, following a "?".
// Example: "id=123&name=test" in "https://example.com/page?id=123&name=test".
string query = 5;
// The authority component of the URI.
// This typically includes the host and port, and optionally the user-information.
// Example: "user@example.com:8080" in "https://user@example.com:8080/resource".
string authority = 6;
// The user-information component of the URI.
// This is the optional part before the host that provides user credentials.
// Example: "user:password" in "https://user:password@example.com".
string user_info = 7;
}