diff options
Diffstat (limited to 'vendor/github.com/golang/protobuf/ptypes/any/any.proto')
-rw-r--r-- | vendor/github.com/golang/protobuf/ptypes/any/any.proto | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/vendor/github.com/golang/protobuf/ptypes/any/any.proto b/vendor/github.com/golang/protobuf/ptypes/any/any.proto index c748667..4932942 100644 --- a/vendor/github.com/golang/protobuf/ptypes/any/any.proto +++ b/vendor/github.com/golang/protobuf/ptypes/any/any.proto | |||
@@ -120,17 +120,18 @@ option objc_class_prefix = "GPB"; | |||
120 | // } | 120 | // } |
121 | // | 121 | // |
122 | message Any { | 122 | message Any { |
123 | // A URL/resource name whose content describes the type of the | 123 | // A URL/resource name that uniquely identifies the type of the serialized |
124 | // serialized protocol buffer message. | 124 | // protocol buffer message. The last segment of the URL's path must represent |
125 | // the fully qualified name of the type (as in | ||
126 | // `path/google.protobuf.Duration`). The name should be in a canonical form | ||
127 | // (e.g., leading "." is not accepted). | ||
125 | // | 128 | // |
126 | // For URLs which use the scheme `http`, `https`, or no scheme, the | 129 | // In practice, teams usually precompile into the binary all types that they |
127 | // following restrictions and interpretations apply: | 130 | // expect it to use in the context of Any. However, for URLs which use the |
131 | // scheme `http`, `https`, or no scheme, one can optionally set up a type | ||
132 | // server that maps type URLs to message definitions as follows: | ||
128 | // | 133 | // |
129 | // * If no scheme is provided, `https` is assumed. | 134 | // * If no scheme is provided, `https` is assumed. |
130 | // * The last segment of the URL's path must represent the fully | ||
131 | // qualified name of the type (as in `path/google.protobuf.Duration`). | ||
132 | // The name should be in a canonical form (e.g., leading "." is | ||
133 | // not accepted). | ||
134 | // * An HTTP GET on the URL must yield a [google.protobuf.Type][] | 135 | // * An HTTP GET on the URL must yield a [google.protobuf.Type][] |
135 | // value in binary format, or produce an error. | 136 | // value in binary format, or produce an error. |
136 | // * Applications are allowed to cache lookup results based on the | 137 | // * Applications are allowed to cache lookup results based on the |
@@ -139,6 +140,10 @@ message Any { | |||
139 | // on changes to types. (Use versioned type names to manage | 140 | // on changes to types. (Use versioned type names to manage |
140 | // breaking changes.) | 141 | // breaking changes.) |
141 | // | 142 | // |
143 | // Note: this functionality is not currently available in the official | ||
144 | // protobuf release, and it is not used for type URLs beginning with | ||
145 | // type.googleapis.com. | ||
146 | // | ||
142 | // Schemes other than `http`, `https` (or the empty scheme) might be | 147 | // Schemes other than `http`, `https` (or the empty scheme) might be |
143 | // used with implementation specific semantics. | 148 | // used with implementation specific semantics. |
144 | // | 149 | // |