@restorecommerce/protos 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +214 -0
- package/LICENSE +19 -0
- package/README.md +9 -0
- package/google/protobuf/any.proto +133 -0
- package/google/protobuf/descriptor.proto +805 -0
- package/google/protobuf/empty.proto +53 -0
- package/google/protobuf/struct.proto +96 -0
- package/google/protobuf/wrappers.proto +123 -0
- package/grpc/health/v1/health.proto +50 -0
- package/grpc/reflection/v1alpha/reflection.proto +154 -0
- package/io/restorecommerce/access_control.proto +48 -0
- package/io/restorecommerce/address.proto +65 -0
- package/io/restorecommerce/attribute.proto +13 -0
- package/io/restorecommerce/auth.proto +48 -0
- package/io/restorecommerce/authentication_log.proto +56 -0
- package/io/restorecommerce/command.proto +57 -0
- package/io/restorecommerce/commandinterface.proto +30 -0
- package/io/restorecommerce/contact_point.proto +49 -0
- package/io/restorecommerce/contact_point_type.proto +46 -0
- package/io/restorecommerce/country.proto +49 -0
- package/io/restorecommerce/credential.proto +51 -0
- package/io/restorecommerce/customer.proto +63 -0
- package/io/restorecommerce/filter.proto +38 -0
- package/io/restorecommerce/fulfillment.proto +199 -0
- package/io/restorecommerce/fulfillment_courier.proto +54 -0
- package/io/restorecommerce/fulfillment_product.proto +49 -0
- package/io/restorecommerce/graph.proto +76 -0
- package/io/restorecommerce/image.proto +24 -0
- package/io/restorecommerce/invoice.proto +121 -0
- package/io/restorecommerce/job.proto +173 -0
- package/io/restorecommerce/locale.proto +47 -0
- package/io/restorecommerce/location.proto +53 -0
- package/io/restorecommerce/manufacturer.proto +45 -0
- package/io/restorecommerce/meta.proto +15 -0
- package/io/restorecommerce/notification.proto +52 -0
- package/io/restorecommerce/notification_channel.proto +50 -0
- package/io/restorecommerce/notification_req.proto +49 -0
- package/io/restorecommerce/order.proto +121 -0
- package/io/restorecommerce/organization.proto +63 -0
- package/io/restorecommerce/ostorage.proto +154 -0
- package/io/restorecommerce/payment.proto +115 -0
- package/io/restorecommerce/payment_method.proto +60 -0
- package/io/restorecommerce/policy.proto +59 -0
- package/io/restorecommerce/policy_set.proto +53 -0
- package/io/restorecommerce/price_group.proto +45 -0
- package/io/restorecommerce/product.proto +101 -0
- package/io/restorecommerce/product_category.proto +53 -0
- package/io/restorecommerce/product_prototype.proto +47 -0
- package/io/restorecommerce/rendering.proto +34 -0
- package/io/restorecommerce/resource_base.proto +137 -0
- package/io/restorecommerce/role.proto +45 -0
- package/io/restorecommerce/rule.proto +86 -0
- package/io/restorecommerce/search.proto +21 -0
- package/io/restorecommerce/status.proto +26 -0
- package/io/restorecommerce/tax.proto +49 -0
- package/io/restorecommerce/tax_type.proto +47 -0
- package/io/restorecommerce/timezone.proto +46 -0
- package/io/restorecommerce/token.proto +36 -0
- package/io/restorecommerce/user.proto +258 -0
- package/package.json +19 -0
- package/test/test.proto +71 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [0.4.5](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.4...@restorecommerce/protos@0.4.5) (2021-10-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **protos:** Added ACL property for meta object and subject for OStorage Message ([d97b2f3](https://github.com/restorecommerce/libs/commit/d97b2f37f741d70bb808b93571e5088cf8ebddd7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.4.4](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.3...@restorecommerce/protos@0.4.4) (2021-08-23)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **protos:** updated ostorage protos with status and operation_status ([cc48214](https://github.com/restorecommerce/libs/commit/cc48214f21b83d42fb9cd1f1e9713c8fa6005ac2))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [0.4.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.2...@restorecommerce/protos@0.4.3) (2021-08-03)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* comment test proto ([9ee91c4](https://github.com/restorecommerce/libs/commit/9ee91c4a3302e8b5b9eae1e63734625a1fc8f4a0))
|
|
34
|
+
* up githead for acs-client, protos, facade ([6a50326](https://github.com/restorecommerce/libs/commit/6a503266498ef5d0e998e93b639dedd843fbfd5d))
|
|
35
|
+
* up version to detech changes ([b8c0517](https://github.com/restorecommerce/libs/commit/b8c05170241cfe0d3c84e08ce35ddb7dce2ba00a))
|
|
36
|
+
* updated githead ([2904d30](https://github.com/restorecommerce/libs/commit/2904d30e5773dc8a87c01a08ff6481f99d692354))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## [0.4.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.1...@restorecommerce/protos@0.4.2) (2021-08-03)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* **acs-client:** return operation_status for read operations ([32b96fb](https://github.com/restorecommerce/libs/commit/32b96fb4a809a14eca8020553baec4ba348841c8))
|
|
49
|
+
* **protos:** fix find and findByRole for user proto ([e0cebb3](https://github.com/restorecommerce/libs/commit/e0cebb321e3660c3a0c6211350f174d0ecf1503c))
|
|
50
|
+
* **protos:** fix Register, login and findByToken response message ([472d878](https://github.com/restorecommerce/libs/commit/472d878ac0152b8a42201951401300a82f4f5fc4))
|
|
51
|
+
* **protos:** removed unused protos ([c3b54c0](https://github.com/restorecommerce/libs/commit/c3b54c0c0208da448cc11b728fcfb7307cccfd3f))
|
|
52
|
+
* **protos:** up IDS RPC's to include status response and added statusObj ([5b525ab](https://github.com/restorecommerce/libs/commit/5b525ab4b5c04913f153ae3fc666936b593e520a))
|
|
53
|
+
* **rc-grpc-clients:** generated grpc-clients for updated protos ([0fdf4bb](https://github.com/restorecommerce/libs/commit/0fdf4bb627fe2ebaf53f19041ebf7ae522e6cc2a))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [0.4.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.0...@restorecommerce/protos@0.4.1) (2021-05-31)
|
|
60
|
+
|
|
61
|
+
**Note:** Version bump only for package @restorecommerce/protos
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# [0.4.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.3.3...@restorecommerce/protos@0.4.0) (2021-05-28)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### chore
|
|
71
|
+
|
|
72
|
+
* updated protos ([bb8674a](https://github.com/restorecommerce/libs/commit/bb8674aa5b561441790276081469e66d52e8d5c7))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### BREAKING CHANGES
|
|
76
|
+
|
|
77
|
+
* Filter migration
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## [0.3.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.3.2...@restorecommerce/protos@0.3.3) (2021-05-25)
|
|
84
|
+
|
|
85
|
+
**Note:** Version bump only for package @restorecommerce/protos
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## [0.3.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.3.1...@restorecommerce/protos@0.3.2) (2021-05-24)
|
|
92
|
+
|
|
93
|
+
**Note:** Version bump only for package @restorecommerce/protos
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## [0.3.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.3.0...@restorecommerce/protos@0.3.1) (2021-02-24)
|
|
100
|
+
|
|
101
|
+
**Note:** Version bump only for package @restorecommerce/protos
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
# 0.3.0 (2021-02-24)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Features
|
|
111
|
+
|
|
112
|
+
* introduce facade/grpc-client/rc-grpc-clients/gen-gql-schema + migrate logger/service-config ([99a5375](https://github.com/restorecommerce/libs/commit/99a53754c7a4b27c77f81c6560a3c2aa26a03b2e))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### 0.0.22 (March 4th, 2021)
|
|
118
|
+
|
|
119
|
+
- updated job proto to introduce job identifier for Job options and repeat options
|
|
120
|
+
|
|
121
|
+
### 0.0.21 (February 24th, 2021)
|
|
122
|
+
|
|
123
|
+
- add `OstorageMessage` to `ostorage.proto`
|
|
124
|
+
|
|
125
|
+
### 0.0.20 (January 21st, 2021)
|
|
126
|
+
|
|
127
|
+
- rename `notification.proto` to `notification_req.proto` as this is being
|
|
128
|
+
required for the notification resource.
|
|
129
|
+
- add `notification_channel.proto` and `notification.proto`
|
|
130
|
+
|
|
131
|
+
### 0.0.19 (January 19th, 2021)
|
|
132
|
+
|
|
133
|
+
- added `sendActivationEmail` to resend registration emails
|
|
134
|
+
|
|
135
|
+
### 0.0.18 (January 19th, 2021)
|
|
136
|
+
|
|
137
|
+
- changed the input field to `identifier` to support both user-name and email for all operations from `id`.
|
|
138
|
+
|
|
139
|
+
### 0.0.17 (December 4th, 2020)
|
|
140
|
+
|
|
141
|
+
- moved last_login from user proto to token proto
|
|
142
|
+
|
|
143
|
+
### 0.0.16 (November 22nd, 2020)
|
|
144
|
+
|
|
145
|
+
- added role_associations and HR scopes to subject
|
|
146
|
+
|
|
147
|
+
### 0.0.15 (November 18th, 2020)
|
|
148
|
+
|
|
149
|
+
- removed duplicate field from graph proto
|
|
150
|
+
|
|
151
|
+
### 0.0.14 (November 18th, 2020)
|
|
152
|
+
|
|
153
|
+
- updated graph proto to rename vertex fields
|
|
154
|
+
- updated user proto to remove populateRoleAssocCache rpc, updated token proto to remove findByUid and findByuserCode, added token_type to Tokens and moved HRScopeReq and Response from user proto to auth proto
|
|
155
|
+
- added interactive flag for tokens
|
|
156
|
+
- up token type and expires in fields to match oidc keys
|
|
157
|
+
|
|
158
|
+
### 0.0.13 (October 30th, 2020)
|
|
159
|
+
|
|
160
|
+
- removed ApiKey from oneof authorization for requests and restructured subject
|
|
161
|
+
|
|
162
|
+
### 0.0.12 (October 14th, 2020)
|
|
163
|
+
|
|
164
|
+
- updated ostorage proto to include data (google.protobuf.any) in options
|
|
165
|
+
- update rule and policy proto with field evaluation_cacheable
|
|
166
|
+
|
|
167
|
+
### 0.0.11 (October 3rd, 2020)
|
|
168
|
+
|
|
169
|
+
- restructuring of user proto
|
|
170
|
+
|
|
171
|
+
### 0.0.10 (October 2nd, 2020)
|
|
172
|
+
|
|
173
|
+
- restructuring of protos (auth, tokens, attributes)
|
|
174
|
+
- added token and authenticaion_log proto
|
|
175
|
+
- updated user proto to include last_login and last_access
|
|
176
|
+
|
|
177
|
+
### 0.0.9 (September 9th, 2020)
|
|
178
|
+
|
|
179
|
+
- updated all protos to include subject in request
|
|
180
|
+
- updated user proto to include subject, tokens and HR scope request
|
|
181
|
+
|
|
182
|
+
### 0.0.8 (June 18th, 2020)
|
|
183
|
+
|
|
184
|
+
- added copy operation for ostorage-srv
|
|
185
|
+
|
|
186
|
+
### 0.0.7 (June 16th, 2020)
|
|
187
|
+
|
|
188
|
+
- added subject_id for job protos
|
|
189
|
+
|
|
190
|
+
### 0.0.6 (June 10th, 2020)
|
|
191
|
+
|
|
192
|
+
- added sendInvitation rpc for user proto
|
|
193
|
+
- updates for fulfillment proto
|
|
194
|
+
|
|
195
|
+
### 0.0.5 (April 16th, 2020)
|
|
196
|
+
|
|
197
|
+
- added tags option to ostorage proto
|
|
198
|
+
|
|
199
|
+
### 0.0.4 (April 1st, 2020)
|
|
200
|
+
|
|
201
|
+
- added download option to ostorage proto
|
|
202
|
+
|
|
203
|
+
### 0.0.3 (March 24th, 2020)
|
|
204
|
+
|
|
205
|
+
- updated ostorage protos to include encoding and content options
|
|
206
|
+
- updates for payment proto
|
|
207
|
+
|
|
208
|
+
### 0.0.2 (February 10th, 2020)
|
|
209
|
+
|
|
210
|
+
Updated user proto to include auth_context and roles proto to include `assignable_by_roles` field
|
|
211
|
+
|
|
212
|
+
### 0.0.1 (January 29th, 2020)
|
|
213
|
+
|
|
214
|
+
Initial share.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) n-fuse GmbH and other contributors.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @restorecommerce/protos
|
|
2
|
+
|
|
3
|
+
Shared [Protocol Buffers](https://developers.google.com/protocol-buffers/) interfaces for Restorecommerce.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
The directory structure resembles the package name.
|
|
8
|
+
For example package `io.restorecommerce.user` is located under
|
|
9
|
+
`io/restorecommerce` with the filename `user.proto`.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/// Protocol Buffers - Google's data interchange format
|
|
2
|
+
/// Copyright 2008 Google Inc. All rights reserved.
|
|
3
|
+
/// https:///developers.google.com/protocol-buffers/
|
|
4
|
+
///
|
|
5
|
+
/// Redistribution and use in source and binary forms, with or without
|
|
6
|
+
/// modification, are permitted provided that the following conditions are
|
|
7
|
+
/// met:
|
|
8
|
+
///
|
|
9
|
+
/// * Redistributions of source code must retain the above copyright
|
|
10
|
+
/// notice, this list of conditions and the following disclaimer.
|
|
11
|
+
/// * Redistributions in binary form must reproduce the above
|
|
12
|
+
/// copyright notice, this list of conditions and the following disclaimer
|
|
13
|
+
/// in the documentation and/or other materials provided with the
|
|
14
|
+
/// distribution.
|
|
15
|
+
/// * Neither the name of Google Inc. nor the names of its
|
|
16
|
+
/// contributors may be used to endorse or promote products derived from
|
|
17
|
+
/// this software without specific prior written permission.
|
|
18
|
+
///
|
|
19
|
+
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
20
|
+
/// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
21
|
+
/// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
22
|
+
/// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
23
|
+
/// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
24
|
+
/// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
25
|
+
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
26
|
+
/// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
27
|
+
/// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
|
+
/// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
/// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
|
|
31
|
+
syntax = "proto3";
|
|
32
|
+
|
|
33
|
+
package google.protobuf;
|
|
34
|
+
|
|
35
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
|
36
|
+
option go_package = "github.com/golang/protobuf/ptypes/any";
|
|
37
|
+
option java_package = "com.google.protobuf";
|
|
38
|
+
option java_outer_classname = "AnyProto";
|
|
39
|
+
option java_multiple_files = true;
|
|
40
|
+
option java_generate_equals_and_hash = true;
|
|
41
|
+
option objc_class_prefix = "GPB";
|
|
42
|
+
|
|
43
|
+
/** `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
44
|
+
* URL that describes the type of the serialized message.
|
|
45
|
+
*
|
|
46
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
47
|
+
* of utility functions or additional generated methods of the Any type.
|
|
48
|
+
*
|
|
49
|
+
* Example 1: Pack and unpack a message in C++.
|
|
50
|
+
*
|
|
51
|
+
* Foo foo = ...;
|
|
52
|
+
* Any any;
|
|
53
|
+
* any.PackFrom(foo);
|
|
54
|
+
* ...
|
|
55
|
+
* if (any.UnpackTo(&foo)) {
|
|
56
|
+
* ...
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* Example 2: Pack and unpack a message in Java.
|
|
60
|
+
*
|
|
61
|
+
* Foo foo = ...;
|
|
62
|
+
* Any any = Any.pack(foo);
|
|
63
|
+
* ...
|
|
64
|
+
* if (any.is(Foo.class)) {
|
|
65
|
+
* foo = any.unpack(Foo.class);
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* The pack methods provided by protobuf library will by default use
|
|
69
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
70
|
+
* methods only use the fully qualified type name after the last '/'
|
|
71
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
72
|
+
* name "y.z".
|
|
73
|
+
*
|
|
74
|
+
*
|
|
75
|
+
* JSON
|
|
76
|
+
* ====
|
|
77
|
+
* The JSON representation of an `Any` value uses the regular
|
|
78
|
+
* representation of the deserialized, embedded message, with an
|
|
79
|
+
* additional field `@type` which contains the type URL. Example:
|
|
80
|
+
*
|
|
81
|
+
* package google.profile;
|
|
82
|
+
* message Person {
|
|
83
|
+
* string first_name = 1;
|
|
84
|
+
* string last_name = 2;
|
|
85
|
+
* }
|
|
86
|
+
*
|
|
87
|
+
* {
|
|
88
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
89
|
+
* "firstName": <string>,
|
|
90
|
+
* "lastName": <string>
|
|
91
|
+
* }
|
|
92
|
+
*
|
|
93
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
94
|
+
* representation, that representation will be embedded adding a field
|
|
95
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
96
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
97
|
+
*
|
|
98
|
+
* {
|
|
99
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
100
|
+
* "value": "1.212s"
|
|
101
|
+
* }
|
|
102
|
+
*/
|
|
103
|
+
message Any {
|
|
104
|
+
/**
|
|
105
|
+
* A URL/resource name whose content describes the type of the
|
|
106
|
+
* serialized protocol buffer message.
|
|
107
|
+
*
|
|
108
|
+
* For URLs which use the schema `http`, `https`, or no schema, the
|
|
109
|
+
* following restrictions and interpretations apply:
|
|
110
|
+
*
|
|
111
|
+
* * If no schema is provided, `https` is assumed.
|
|
112
|
+
* * The last segment of the URL's path must represent the fully
|
|
113
|
+
* qualified name of the type (as in `path/google.protobuf.Duration`).
|
|
114
|
+
* The name should be in a canonical form (e.g., leading "." is
|
|
115
|
+
* not accepted).
|
|
116
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
117
|
+
* value in binary format, or produce an error.
|
|
118
|
+
* * Applications are allowed to cache lookup results based on the
|
|
119
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
120
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
121
|
+
* on changes to types. (Use versioned type names to manage
|
|
122
|
+
* breaking changes.)
|
|
123
|
+
*
|
|
124
|
+
* Schemas other than `http`, `https` (or the empty schema) might be
|
|
125
|
+
* used with implementation specific semantics.
|
|
126
|
+
*/
|
|
127
|
+
string type_url = 1;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Must be a valid serialized protocol buffer of the above specified type.
|
|
131
|
+
*/
|
|
132
|
+
bytes value = 2;
|
|
133
|
+
}
|