grpc-tools 0.14.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/x86-linux/google/protobuf/any.proto +130 -0
- data/bin/x86-linux/google/protobuf/api.proto +202 -0
- data/bin/x86-linux/google/protobuf/compiler/plugin.proto +150 -0
- data/bin/x86-linux/google/protobuf/descriptor.proto +803 -0
- data/bin/x86-linux/google/protobuf/duration.proto +98 -0
- data/bin/x86-linux/google/protobuf/empty.proto +53 -0
- data/bin/x86-linux/google/protobuf/field_mask.proto +194 -0
- data/bin/x86-linux/google/protobuf/source_context.proto +48 -0
- data/bin/x86-linux/google/protobuf/struct.proto +96 -0
- data/bin/x86-linux/google/protobuf/timestamp.proto +111 -0
- data/bin/x86-linux/google/protobuf/type.proto +180 -0
- data/bin/x86-linux/google/protobuf/wrappers.proto +119 -0
- data/bin/x86-linux/grpc_ruby_plugin +0 -0
- data/bin/x86-linux/protoc +0 -0
- data/bin/x86-macos/google/protobuf/any.proto +130 -0
- data/bin/x86-macos/google/protobuf/api.proto +202 -0
- data/bin/x86-macos/google/protobuf/compiler/plugin.proto +150 -0
- data/bin/x86-macos/google/protobuf/descriptor.proto +803 -0
- data/bin/x86-macos/google/protobuf/duration.proto +98 -0
- data/bin/x86-macos/google/protobuf/empty.proto +53 -0
- data/bin/x86-macos/google/protobuf/field_mask.proto +194 -0
- data/bin/x86-macos/google/protobuf/source_context.proto +48 -0
- data/bin/x86-macos/google/protobuf/struct.proto +96 -0
- data/bin/x86-macos/google/protobuf/timestamp.proto +111 -0
- data/bin/x86-macos/google/protobuf/type.proto +180 -0
- data/bin/x86-macos/google/protobuf/wrappers.proto +119 -0
- data/bin/x86-macos/grpc_ruby_plugin +0 -0
- data/bin/x86-macos/protoc +0 -0
- data/bin/x86-windows/google/protobuf/any.proto +130 -0
- data/bin/x86-windows/google/protobuf/api.proto +202 -0
- data/bin/x86-windows/google/protobuf/compiler/plugin.proto +150 -0
- data/bin/x86-windows/google/protobuf/descriptor.proto +803 -0
- data/bin/x86-windows/google/protobuf/duration.proto +98 -0
- data/bin/x86-windows/google/protobuf/empty.proto +53 -0
- data/bin/x86-windows/google/protobuf/field_mask.proto +194 -0
- data/bin/x86-windows/google/protobuf/source_context.proto +48 -0
- data/bin/x86-windows/google/protobuf/struct.proto +96 -0
- data/bin/x86-windows/google/protobuf/timestamp.proto +111 -0
- data/bin/x86-windows/google/protobuf/type.proto +180 -0
- data/bin/x86-windows/google/protobuf/wrappers.proto +119 -0
- data/bin/x86-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86-windows/protoc.exe +0 -0
- data/bin/x86_64-linux/google/protobuf/any.proto +130 -0
- data/bin/x86_64-linux/google/protobuf/api.proto +202 -0
- data/bin/x86_64-linux/google/protobuf/compiler/plugin.proto +150 -0
- data/bin/x86_64-linux/google/protobuf/descriptor.proto +803 -0
- data/bin/x86_64-linux/google/protobuf/duration.proto +98 -0
- data/bin/x86_64-linux/google/protobuf/empty.proto +53 -0
- data/bin/x86_64-linux/google/protobuf/field_mask.proto +194 -0
- data/bin/x86_64-linux/google/protobuf/source_context.proto +48 -0
- data/bin/x86_64-linux/google/protobuf/struct.proto +96 -0
- data/bin/x86_64-linux/google/protobuf/timestamp.proto +111 -0
- data/bin/x86_64-linux/google/protobuf/type.proto +180 -0
- data/bin/x86_64-linux/google/protobuf/wrappers.proto +119 -0
- data/bin/x86_64-linux/grpc_ruby_plugin +0 -0
- data/bin/x86_64-linux/protoc +0 -0
- data/bin/x86_64-macos/google/protobuf/any.proto +130 -0
- data/bin/x86_64-macos/google/protobuf/api.proto +202 -0
- data/bin/x86_64-macos/google/protobuf/compiler/plugin.proto +150 -0
- data/bin/x86_64-macos/google/protobuf/descriptor.proto +803 -0
- data/bin/x86_64-macos/google/protobuf/duration.proto +98 -0
- data/bin/x86_64-macos/google/protobuf/empty.proto +53 -0
- data/bin/x86_64-macos/google/protobuf/field_mask.proto +194 -0
- data/bin/x86_64-macos/google/protobuf/source_context.proto +48 -0
- data/bin/x86_64-macos/google/protobuf/struct.proto +96 -0
- data/bin/x86_64-macos/google/protobuf/timestamp.proto +111 -0
- data/bin/x86_64-macos/google/protobuf/type.proto +180 -0
- data/bin/x86_64-macos/google/protobuf/wrappers.proto +119 -0
- data/bin/x86_64-macos/grpc_ruby_plugin +0 -0
- data/bin/x86_64-macos/protoc +0 -0
- data/bin/x86_64-windows/google/protobuf/any.proto +130 -0
- data/bin/x86_64-windows/google/protobuf/api.proto +202 -0
- data/bin/x86_64-windows/google/protobuf/compiler/plugin.proto +150 -0
- data/bin/x86_64-windows/google/protobuf/descriptor.proto +803 -0
- data/bin/x86_64-windows/google/protobuf/duration.proto +98 -0
- data/bin/x86_64-windows/google/protobuf/empty.proto +53 -0
- data/bin/x86_64-windows/google/protobuf/field_mask.proto +194 -0
- data/bin/x86_64-windows/google/protobuf/source_context.proto +48 -0
- data/bin/x86_64-windows/google/protobuf/struct.proto +96 -0
- data/bin/x86_64-windows/google/protobuf/timestamp.proto +111 -0
- data/bin/x86_64-windows/google/protobuf/type.proto +180 -0
- data/bin/x86_64-windows/google/protobuf/wrappers.proto +119 -0
- data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86_64-windows/protoc.exe +0 -0
- data/version.rb +1 -1
- metadata +74 -2
@@ -0,0 +1,111 @@
|
|
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 cc_enable_arenas = true;
|
37
|
+
option go_package = "github.com/golang/protobuf/ptypes/timestamp";
|
38
|
+
option java_package = "com.google.protobuf";
|
39
|
+
option java_outer_classname = "TimestampProto";
|
40
|
+
option java_multiple_files = true;
|
41
|
+
option java_generate_equals_and_hash = true;
|
42
|
+
option objc_class_prefix = "GPB";
|
43
|
+
|
44
|
+
// A Timestamp represents a point in time independent of any time zone
|
45
|
+
// or calendar, represented as seconds and fractions of seconds at
|
46
|
+
// nanosecond resolution in UTC Epoch time. It is encoded using the
|
47
|
+
// Proleptic Gregorian Calendar which extends the Gregorian calendar
|
48
|
+
// backwards to year one. It is encoded assuming all minutes are 60
|
49
|
+
// seconds long, i.e. leap seconds are "smeared" so that no leap second
|
50
|
+
// table is needed for interpretation. Range is from
|
51
|
+
// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
|
52
|
+
// By restricting to that range, we ensure that we can convert to
|
53
|
+
// and from RFC 3339 date strings.
|
54
|
+
// See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
|
55
|
+
//
|
56
|
+
// Example 1: Compute Timestamp from POSIX `time()`.
|
57
|
+
//
|
58
|
+
// Timestamp timestamp;
|
59
|
+
// timestamp.set_seconds(time(NULL));
|
60
|
+
// timestamp.set_nanos(0);
|
61
|
+
//
|
62
|
+
// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
63
|
+
//
|
64
|
+
// struct timeval tv;
|
65
|
+
// gettimeofday(&tv, NULL);
|
66
|
+
//
|
67
|
+
// Timestamp timestamp;
|
68
|
+
// timestamp.set_seconds(tv.tv_sec);
|
69
|
+
// timestamp.set_nanos(tv.tv_usec * 1000);
|
70
|
+
//
|
71
|
+
// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
72
|
+
//
|
73
|
+
// FILETIME ft;
|
74
|
+
// GetSystemTimeAsFileTime(&ft);
|
75
|
+
// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
76
|
+
//
|
77
|
+
// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
78
|
+
// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
79
|
+
// Timestamp timestamp;
|
80
|
+
// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
81
|
+
// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
82
|
+
//
|
83
|
+
// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
84
|
+
//
|
85
|
+
// long millis = System.currentTimeMillis();
|
86
|
+
//
|
87
|
+
// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
88
|
+
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
89
|
+
//
|
90
|
+
//
|
91
|
+
// Example 5: Compute Timestamp from current time in Python.
|
92
|
+
//
|
93
|
+
// now = time.time()
|
94
|
+
// seconds = int(now)
|
95
|
+
// nanos = int((now - seconds) * 10**9)
|
96
|
+
// timestamp = Timestamp(seconds=seconds, nanos=nanos)
|
97
|
+
//
|
98
|
+
//
|
99
|
+
message Timestamp {
|
100
|
+
|
101
|
+
// Represents seconds of UTC time since Unix epoch
|
102
|
+
// 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to
|
103
|
+
// 9999-12-31T23:59:59Z inclusive.
|
104
|
+
int64 seconds = 1;
|
105
|
+
|
106
|
+
// Non-negative fractions of a second at nanosecond resolution. Negative
|
107
|
+
// second values with fractions must still have non-negative nanos values
|
108
|
+
// that count forward in time. Must be from 0 to 999,999,999
|
109
|
+
// inclusive.
|
110
|
+
int32 nanos = 2;
|
111
|
+
}
|
@@ -0,0 +1,180 @@
|
|
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
|
+
import "google/protobuf/any.proto";
|
36
|
+
import "google/protobuf/source_context.proto";
|
37
|
+
|
38
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
39
|
+
option java_package = "com.google.protobuf";
|
40
|
+
option java_outer_classname = "TypeProto";
|
41
|
+
option java_multiple_files = true;
|
42
|
+
option java_generate_equals_and_hash = true;
|
43
|
+
option objc_class_prefix = "GPB";
|
44
|
+
|
45
|
+
// A protocol buffer message type.
|
46
|
+
message Type {
|
47
|
+
// The fully qualified message name.
|
48
|
+
string name = 1;
|
49
|
+
// The list of fields.
|
50
|
+
repeated Field fields = 2;
|
51
|
+
// The list of types appearing in `oneof` definitions in this type.
|
52
|
+
repeated string oneofs = 3;
|
53
|
+
// The protocol buffer options.
|
54
|
+
repeated Option options = 4;
|
55
|
+
// The source context.
|
56
|
+
SourceContext source_context = 5;
|
57
|
+
// The source syntax.
|
58
|
+
Syntax syntax = 6;
|
59
|
+
}
|
60
|
+
|
61
|
+
// A single field of a message type.
|
62
|
+
message Field {
|
63
|
+
// Basic field types.
|
64
|
+
enum Kind {
|
65
|
+
// Field type unknown.
|
66
|
+
TYPE_UNKNOWN = 0;
|
67
|
+
// Field type double.
|
68
|
+
TYPE_DOUBLE = 1;
|
69
|
+
// Field type float.
|
70
|
+
TYPE_FLOAT = 2;
|
71
|
+
// Field type int64.
|
72
|
+
TYPE_INT64 = 3;
|
73
|
+
// Field type uint64.
|
74
|
+
TYPE_UINT64 = 4;
|
75
|
+
// Field type int32.
|
76
|
+
TYPE_INT32 = 5;
|
77
|
+
// Field type fixed64.
|
78
|
+
TYPE_FIXED64 = 6;
|
79
|
+
// Field type fixed32.
|
80
|
+
TYPE_FIXED32 = 7;
|
81
|
+
// Field type bool.
|
82
|
+
TYPE_BOOL = 8;
|
83
|
+
// Field type string.
|
84
|
+
TYPE_STRING = 9;
|
85
|
+
// Field type group. Proto2 syntax only, and deprecated.
|
86
|
+
TYPE_GROUP = 10;
|
87
|
+
// Field type message.
|
88
|
+
TYPE_MESSAGE = 11;
|
89
|
+
// Field type bytes.
|
90
|
+
TYPE_BYTES = 12;
|
91
|
+
// Field type uint32.
|
92
|
+
TYPE_UINT32 = 13;
|
93
|
+
// Field type enum.
|
94
|
+
TYPE_ENUM = 14;
|
95
|
+
// Field type sfixed32.
|
96
|
+
TYPE_SFIXED32 = 15;
|
97
|
+
// Field type sfixed64.
|
98
|
+
TYPE_SFIXED64 = 16;
|
99
|
+
// Field type sint32.
|
100
|
+
TYPE_SINT32 = 17;
|
101
|
+
// Field type sint64.
|
102
|
+
TYPE_SINT64 = 18;
|
103
|
+
};
|
104
|
+
|
105
|
+
// Whether a field is optional, required, or repeated.
|
106
|
+
enum Cardinality {
|
107
|
+
// For fields with unknown cardinality.
|
108
|
+
CARDINALITY_UNKNOWN = 0;
|
109
|
+
// For optional fields.
|
110
|
+
CARDINALITY_OPTIONAL = 1;
|
111
|
+
// For required fields. Proto2 syntax only.
|
112
|
+
CARDINALITY_REQUIRED = 2;
|
113
|
+
// For repeated fields.
|
114
|
+
CARDINALITY_REPEATED = 3;
|
115
|
+
};
|
116
|
+
|
117
|
+
// The field type.
|
118
|
+
Kind kind = 1;
|
119
|
+
// The field cardinality.
|
120
|
+
Cardinality cardinality = 2;
|
121
|
+
// The field number.
|
122
|
+
int32 number = 3;
|
123
|
+
// The field name.
|
124
|
+
string name = 4;
|
125
|
+
// The field type URL, without the scheme, for message or enumeration
|
126
|
+
// types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
127
|
+
string type_url = 6;
|
128
|
+
// The index of the field type in `Type.oneofs`, for message or enumeration
|
129
|
+
// types. The first type has index 1; zero means the type is not in the list.
|
130
|
+
int32 oneof_index = 7;
|
131
|
+
// Whether to use alternative packed wire representation.
|
132
|
+
bool packed = 8;
|
133
|
+
// The protocol buffer options.
|
134
|
+
repeated Option options = 9;
|
135
|
+
// The field JSON name.
|
136
|
+
string json_name = 10;
|
137
|
+
// The string value of the default value of this field. Proto2 syntax only.
|
138
|
+
string default_value = 11;
|
139
|
+
}
|
140
|
+
|
141
|
+
// Enum type definition.
|
142
|
+
message Enum {
|
143
|
+
// Enum type name.
|
144
|
+
string name = 1;
|
145
|
+
// Enum value definitions.
|
146
|
+
repeated EnumValue enumvalue = 2;
|
147
|
+
// Protocol buffer options.
|
148
|
+
repeated Option options = 3;
|
149
|
+
// The source context.
|
150
|
+
SourceContext source_context = 4;
|
151
|
+
// The source syntax.
|
152
|
+
Syntax syntax = 5;
|
153
|
+
}
|
154
|
+
|
155
|
+
// Enum value definition.
|
156
|
+
message EnumValue {
|
157
|
+
// Enum value name.
|
158
|
+
string name = 1;
|
159
|
+
// Enum value number.
|
160
|
+
int32 number = 2;
|
161
|
+
// Protocol buffer options.
|
162
|
+
repeated Option options = 3;
|
163
|
+
}
|
164
|
+
|
165
|
+
// A protocol buffer option, which can be attached to a message, field,
|
166
|
+
// enumeration, etc.
|
167
|
+
message Option {
|
168
|
+
// The option's name. For example, `"java_package"`.
|
169
|
+
string name = 1;
|
170
|
+
// The option's value. For example, `"com.google.protobuf"`.
|
171
|
+
Any value = 2;
|
172
|
+
}
|
173
|
+
|
174
|
+
// The syntax in which a protocol buffer element is defined.
|
175
|
+
enum Syntax {
|
176
|
+
// Syntax `proto2`.
|
177
|
+
SYNTAX_PROTO2 = 0;
|
178
|
+
// Syntax `proto3`.
|
179
|
+
SYNTAX_PROTO3 = 1;
|
180
|
+
}
|
@@ -0,0 +1,119 @@
|
|
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
|
+
// Wrappers for primitive (non-message) types. These types are useful
|
32
|
+
// for embedding primitives in the `google.protobuf.Any` type and for places
|
33
|
+
// where we need to distinguish between the absence of a primitive
|
34
|
+
// typed field and its default value.
|
35
|
+
|
36
|
+
syntax = "proto3";
|
37
|
+
|
38
|
+
package google.protobuf;
|
39
|
+
|
40
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
41
|
+
option cc_enable_arenas = true;
|
42
|
+
option go_package = "github.com/golang/protobuf/ptypes/wrappers";
|
43
|
+
option java_package = "com.google.protobuf";
|
44
|
+
option java_outer_classname = "WrappersProto";
|
45
|
+
option java_multiple_files = true;
|
46
|
+
option java_generate_equals_and_hash = true;
|
47
|
+
option objc_class_prefix = "GPB";
|
48
|
+
|
49
|
+
// Wrapper message for `double`.
|
50
|
+
//
|
51
|
+
// The JSON representation for `DoubleValue` is JSON number.
|
52
|
+
message DoubleValue {
|
53
|
+
// The double value.
|
54
|
+
double value = 1;
|
55
|
+
}
|
56
|
+
|
57
|
+
// Wrapper message for `float`.
|
58
|
+
//
|
59
|
+
// The JSON representation for `FloatValue` is JSON number.
|
60
|
+
message FloatValue {
|
61
|
+
// The float value.
|
62
|
+
float value = 1;
|
63
|
+
}
|
64
|
+
|
65
|
+
// Wrapper message for `int64`.
|
66
|
+
//
|
67
|
+
// The JSON representation for `Int64Value` is JSON string.
|
68
|
+
message Int64Value {
|
69
|
+
// The int64 value.
|
70
|
+
int64 value = 1;
|
71
|
+
}
|
72
|
+
|
73
|
+
// Wrapper message for `uint64`.
|
74
|
+
//
|
75
|
+
// The JSON representation for `UInt64Value` is JSON string.
|
76
|
+
message UInt64Value {
|
77
|
+
// The uint64 value.
|
78
|
+
uint64 value = 1;
|
79
|
+
}
|
80
|
+
|
81
|
+
// Wrapper message for `int32`.
|
82
|
+
//
|
83
|
+
// The JSON representation for `Int32Value` is JSON number.
|
84
|
+
message Int32Value {
|
85
|
+
// The int32 value.
|
86
|
+
int32 value = 1;
|
87
|
+
}
|
88
|
+
|
89
|
+
// Wrapper message for `uint32`.
|
90
|
+
//
|
91
|
+
// The JSON representation for `UInt32Value` is JSON number.
|
92
|
+
message UInt32Value {
|
93
|
+
// The uint32 value.
|
94
|
+
uint32 value = 1;
|
95
|
+
}
|
96
|
+
|
97
|
+
// Wrapper message for `bool`.
|
98
|
+
//
|
99
|
+
// The JSON representation for `BoolValue` is JSON `true` and `false`.
|
100
|
+
message BoolValue {
|
101
|
+
// The bool value.
|
102
|
+
bool value = 1;
|
103
|
+
}
|
104
|
+
|
105
|
+
// Wrapper message for `string`.
|
106
|
+
//
|
107
|
+
// The JSON representation for `StringValue` is JSON string.
|
108
|
+
message StringValue {
|
109
|
+
// The string value.
|
110
|
+
string value = 1;
|
111
|
+
}
|
112
|
+
|
113
|
+
// Wrapper message for `bytes`.
|
114
|
+
//
|
115
|
+
// The JSON representation for `BytesValue` is JSON string.
|
116
|
+
message BytesValue {
|
117
|
+
// The bytes value.
|
118
|
+
bytes value = 1;
|
119
|
+
}
|
Binary file
|
data/bin/x86_64-macos/protoc
CHANGED
Binary file
|
@@ -0,0 +1,130 @@
|
|
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
|
+
// A URL/resource name whose content describes the type of the
|
105
|
+
// serialized protocol buffer message.
|
106
|
+
//
|
107
|
+
// For URLs which use the schema `http`, `https`, or no schema, the
|
108
|
+
// following restrictions and interpretations apply:
|
109
|
+
//
|
110
|
+
// * If no schema is provided, `https` is assumed.
|
111
|
+
// * The last segment of the URL's path must represent the fully
|
112
|
+
// qualified name of the type (as in `path/google.protobuf.Duration`).
|
113
|
+
// The name should be in a canonical form (e.g., leading "." is
|
114
|
+
// not accepted).
|
115
|
+
// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
116
|
+
// value in binary format, or produce an error.
|
117
|
+
// * Applications are allowed to cache lookup results based on the
|
118
|
+
// URL, or have them precompiled into a binary to avoid any
|
119
|
+
// lookup. Therefore, binary compatibility needs to be preserved
|
120
|
+
// on changes to types. (Use versioned type names to manage
|
121
|
+
// breaking changes.)
|
122
|
+
//
|
123
|
+
// Schemas other than `http`, `https` (or the empty schema) might be
|
124
|
+
// used with implementation specific semantics.
|
125
|
+
//
|
126
|
+
string type_url = 1;
|
127
|
+
|
128
|
+
// Must be a valid serialized protocol buffer of the above specified type.
|
129
|
+
bytes value = 2;
|
130
|
+
}
|