discord-protos 1.0.1 → 1.0.3

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.
@@ -0,0 +1,158 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import type { JsonValue } from "@protobuf-ts/runtime";
7
+ import type { JsonReadOptions } from "@protobuf-ts/runtime";
8
+ import type { JsonWriteOptions } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
10
+ /**
11
+ * A Timestamp represents a point in time independent of any time zone or local
12
+ * calendar, encoded as a count of seconds and fractions of seconds at
13
+ * nanosecond resolution. The count is relative to an epoch at UTC midnight on
14
+ * January 1, 1970, in the proleptic Gregorian calendar which extends the
15
+ * Gregorian calendar backwards to year one.
16
+ *
17
+ * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
18
+ * second table is needed for interpretation, using a [24-hour linear
19
+ * smear](https://developers.google.com/time/smear).
20
+ *
21
+ * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
22
+ * restricting to that range, we ensure that we can convert to and from [RFC
23
+ * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
24
+ *
25
+ * # Examples
26
+ *
27
+ * Example 1: Compute Timestamp from POSIX `time()`.
28
+ *
29
+ * Timestamp timestamp;
30
+ * timestamp.set_seconds(time(NULL));
31
+ * timestamp.set_nanos(0);
32
+ *
33
+ * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
34
+ *
35
+ * struct timeval tv;
36
+ * gettimeofday(&tv, NULL);
37
+ *
38
+ * Timestamp timestamp;
39
+ * timestamp.set_seconds(tv.tv_sec);
40
+ * timestamp.set_nanos(tv.tv_usec * 1000);
41
+ *
42
+ * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
43
+ *
44
+ * FILETIME ft;
45
+ * GetSystemTimeAsFileTime(&ft);
46
+ * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
47
+ *
48
+ * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
49
+ * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
50
+ * Timestamp timestamp;
51
+ * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
52
+ * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
53
+ *
54
+ * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
55
+ *
56
+ * long millis = System.currentTimeMillis();
57
+ *
58
+ * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
59
+ * .setNanos((int) ((millis % 1000) * 1000000)).build();
60
+ *
61
+ *
62
+ * Example 5: Compute Timestamp from Java `Instant.now()`.
63
+ *
64
+ * Instant now = Instant.now();
65
+ *
66
+ * Timestamp timestamp =
67
+ * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
68
+ * .setNanos(now.getNano()).build();
69
+ *
70
+ *
71
+ * Example 6: Compute Timestamp from current time in Python.
72
+ *
73
+ * timestamp = Timestamp()
74
+ * timestamp.GetCurrentTime()
75
+ *
76
+ * # JSON Mapping
77
+ *
78
+ * In JSON format, the Timestamp type is encoded as a string in the
79
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
80
+ * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
81
+ * where {year} is always expressed using four digits while {month}, {day},
82
+ * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
83
+ * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
84
+ * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
85
+ * is required. A proto3 JSON serializer should always use UTC (as indicated by
86
+ * "Z") when printing the Timestamp type and a proto3 JSON parser should be
87
+ * able to accept both UTC and other timezones (as indicated by an offset).
88
+ *
89
+ * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
90
+ * 01:30 UTC on January 15, 2017.
91
+ *
92
+ * In JavaScript, one can convert a Date object to this format using the
93
+ * standard
94
+ * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
95
+ * method. In Python, a standard `datetime.datetime` object can be converted
96
+ * to this format using
97
+ * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
98
+ * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
99
+ * the Joda Time's [`ISODateTimeFormat.dateTime()`](
100
+ * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
101
+ * ) to obtain a formatter capable of generating timestamps in this format.
102
+ *
103
+ *
104
+ *
105
+ * @generated from protobuf message google.protobuf.Timestamp
106
+ */
107
+ export interface Timestamp {
108
+ /**
109
+ * Represents seconds of UTC time since Unix epoch
110
+ * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
111
+ * 9999-12-31T23:59:59Z inclusive.
112
+ *
113
+ * @generated from protobuf field: int64 seconds = 1;
114
+ */
115
+ seconds: bigint;
116
+ /**
117
+ * Non-negative fractions of a second at nanosecond resolution. Negative
118
+ * second values with fractions must still have non-negative nanos values
119
+ * that count forward in time. Must be from 0 to 999,999,999
120
+ * inclusive.
121
+ *
122
+ * @generated from protobuf field: int32 nanos = 2;
123
+ */
124
+ nanos: number;
125
+ }
126
+ declare class Timestamp$Type extends MessageType<Timestamp> {
127
+ constructor();
128
+ /**
129
+ * Creates a new `Timestamp` for the current time.
130
+ */
131
+ now(): Timestamp;
132
+ /**
133
+ * Converts a `Timestamp` to a JavaScript Date.
134
+ */
135
+ toDate(message: Timestamp): Date;
136
+ /**
137
+ * Converts a JavaScript Date to a `Timestamp`.
138
+ */
139
+ fromDate(date: Date): Timestamp;
140
+ /**
141
+ * In JSON format, the `Timestamp` type is encoded as a string
142
+ * in the RFC 3339 format.
143
+ */
144
+ internalJsonWrite(message: Timestamp, options: JsonWriteOptions): JsonValue;
145
+ /**
146
+ * In JSON format, the `Timestamp` type is encoded as a string
147
+ * in the RFC 3339 format.
148
+ */
149
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Timestamp): Timestamp;
150
+ create(value?: PartialMessage<Timestamp>): Timestamp;
151
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp;
152
+ internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
153
+ }
154
+ /**
155
+ * @generated MessageType for protobuf message google.protobuf.Timestamp
156
+ */
157
+ export declare const Timestamp: Timestamp$Type;
158
+ export {};
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Timestamp = void 0;
4
+ const runtime_1 = require("@protobuf-ts/runtime");
5
+ const runtime_2 = require("@protobuf-ts/runtime");
6
+ const runtime_3 = require("@protobuf-ts/runtime");
7
+ const runtime_4 = require("@protobuf-ts/runtime");
8
+ const runtime_5 = require("@protobuf-ts/runtime");
9
+ const runtime_6 = require("@protobuf-ts/runtime");
10
+ const runtime_7 = require("@protobuf-ts/runtime");
11
+ // @generated message type with reflection information, may provide speed optimized methods
12
+ class Timestamp$Type extends runtime_7.MessageType {
13
+ constructor() {
14
+ super("google.protobuf.Timestamp", [
15
+ { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
16
+ { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
17
+ ]);
18
+ }
19
+ /**
20
+ * Creates a new `Timestamp` for the current time.
21
+ */
22
+ now() {
23
+ const msg = this.create();
24
+ const ms = Date.now();
25
+ msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toBigInt();
26
+ msg.nanos = (ms % 1000) * 1000000;
27
+ return msg;
28
+ }
29
+ /**
30
+ * Converts a `Timestamp` to a JavaScript Date.
31
+ */
32
+ toDate(message) {
33
+ return new Date(runtime_6.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));
34
+ }
35
+ /**
36
+ * Converts a JavaScript Date to a `Timestamp`.
37
+ */
38
+ fromDate(date) {
39
+ const msg = this.create();
40
+ const ms = date.getTime();
41
+ msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toBigInt();
42
+ msg.nanos = (ms % 1000) * 1000000;
43
+ return msg;
44
+ }
45
+ /**
46
+ * In JSON format, the `Timestamp` type is encoded as a string
47
+ * in the RFC 3339 format.
48
+ */
49
+ internalJsonWrite(message, options) {
50
+ let ms = runtime_6.PbLong.from(message.seconds).toNumber() * 1000;
51
+ if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
52
+ throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
53
+ if (message.nanos < 0)
54
+ throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
55
+ let z = "Z";
56
+ if (message.nanos > 0) {
57
+ let nanosStr = (message.nanos + 1000000000).toString().substring(1);
58
+ if (nanosStr.substring(3) === "000000")
59
+ z = "." + nanosStr.substring(0, 3) + "Z";
60
+ else if (nanosStr.substring(6) === "000")
61
+ z = "." + nanosStr.substring(0, 6) + "Z";
62
+ else
63
+ z = "." + nanosStr + "Z";
64
+ }
65
+ return new Date(ms).toISOString().replace(".000Z", z);
66
+ }
67
+ /**
68
+ * In JSON format, the `Timestamp` type is encoded as a string
69
+ * in the RFC 3339 format.
70
+ */
71
+ internalJsonRead(json, options, target) {
72
+ if (typeof json !== "string")
73
+ throw new Error("Unable to parse Timestamp from JSON " + (0, runtime_5.typeofJsonValue)(json) + ".");
74
+ let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
75
+ if (!matches)
76
+ throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
77
+ let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
78
+ if (Number.isNaN(ms))
79
+ throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
80
+ if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
81
+ throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
82
+ if (!target)
83
+ target = this.create();
84
+ target.seconds = runtime_6.PbLong.from(ms / 1000).toBigInt();
85
+ target.nanos = 0;
86
+ if (matches[7])
87
+ target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
88
+ return target;
89
+ }
90
+ create(value) {
91
+ const message = { seconds: 0n, nanos: 0 };
92
+ globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
93
+ if (value !== undefined)
94
+ (0, runtime_3.reflectionMergePartial)(this, message, value);
95
+ return message;
96
+ }
97
+ internalBinaryRead(reader, length, options, target) {
98
+ let message = target ?? this.create(), end = reader.pos + length;
99
+ while (reader.pos < end) {
100
+ let [fieldNo, wireType] = reader.tag();
101
+ switch (fieldNo) {
102
+ case /* int64 seconds */ 1:
103
+ message.seconds = reader.int64().toBigInt();
104
+ break;
105
+ case /* int32 nanos */ 2:
106
+ message.nanos = reader.int32();
107
+ break;
108
+ default:
109
+ let u = options.readUnknownField;
110
+ if (u === "throw")
111
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
112
+ let d = reader.skip(wireType);
113
+ if (u !== false)
114
+ (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
115
+ }
116
+ }
117
+ return message;
118
+ }
119
+ internalBinaryWrite(message, writer, options) {
120
+ /* int64 seconds = 1; */
121
+ if (message.seconds !== 0n)
122
+ writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds);
123
+ /* int32 nanos = 2; */
124
+ if (message.nanos !== 0)
125
+ writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos);
126
+ let u = options.writeUnknownFields;
127
+ if (u !== false)
128
+ (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
129
+ return writer;
130
+ }
131
+ }
132
+ /**
133
+ * @generated MessageType for protobuf message google.protobuf.Timestamp
134
+ */
135
+ exports.Timestamp = new Timestamp$Type();
@@ -0,0 +1,307 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import type { JsonValue } from "@protobuf-ts/runtime";
7
+ import type { JsonReadOptions } from "@protobuf-ts/runtime";
8
+ import type { JsonWriteOptions } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
10
+ /**
11
+ * Wrapper message for `double`.
12
+ *
13
+ * The JSON representation for `DoubleValue` is JSON number.
14
+ *
15
+ * @generated from protobuf message google.protobuf.DoubleValue
16
+ */
17
+ export interface DoubleValue {
18
+ /**
19
+ * The double value.
20
+ *
21
+ * @generated from protobuf field: double value = 1;
22
+ */
23
+ value: number;
24
+ }
25
+ /**
26
+ * Wrapper message for `float`.
27
+ *
28
+ * The JSON representation for `FloatValue` is JSON number.
29
+ *
30
+ * @generated from protobuf message google.protobuf.FloatValue
31
+ */
32
+ export interface FloatValue {
33
+ /**
34
+ * The float value.
35
+ *
36
+ * @generated from protobuf field: float value = 1;
37
+ */
38
+ value: number;
39
+ }
40
+ /**
41
+ * Wrapper message for `int64`.
42
+ *
43
+ * The JSON representation for `Int64Value` is JSON string.
44
+ *
45
+ * @generated from protobuf message google.protobuf.Int64Value
46
+ */
47
+ export interface Int64Value {
48
+ /**
49
+ * The int64 value.
50
+ *
51
+ * @generated from protobuf field: int64 value = 1;
52
+ */
53
+ value: bigint;
54
+ }
55
+ /**
56
+ * Wrapper message for `uint64`.
57
+ *
58
+ * The JSON representation for `UInt64Value` is JSON string.
59
+ *
60
+ * @generated from protobuf message google.protobuf.UInt64Value
61
+ */
62
+ export interface UInt64Value {
63
+ /**
64
+ * The uint64 value.
65
+ *
66
+ * @generated from protobuf field: uint64 value = 1;
67
+ */
68
+ value: bigint;
69
+ }
70
+ /**
71
+ * Wrapper message for `int32`.
72
+ *
73
+ * The JSON representation for `Int32Value` is JSON number.
74
+ *
75
+ * @generated from protobuf message google.protobuf.Int32Value
76
+ */
77
+ export interface Int32Value {
78
+ /**
79
+ * The int32 value.
80
+ *
81
+ * @generated from protobuf field: int32 value = 1;
82
+ */
83
+ value: number;
84
+ }
85
+ /**
86
+ * Wrapper message for `uint32`.
87
+ *
88
+ * The JSON representation for `UInt32Value` is JSON number.
89
+ *
90
+ * @generated from protobuf message google.protobuf.UInt32Value
91
+ */
92
+ export interface UInt32Value {
93
+ /**
94
+ * The uint32 value.
95
+ *
96
+ * @generated from protobuf field: uint32 value = 1;
97
+ */
98
+ value: number;
99
+ }
100
+ /**
101
+ * Wrapper message for `bool`.
102
+ *
103
+ * The JSON representation for `BoolValue` is JSON `true` and `false`.
104
+ *
105
+ * @generated from protobuf message google.protobuf.BoolValue
106
+ */
107
+ export interface BoolValue {
108
+ /**
109
+ * The bool value.
110
+ *
111
+ * @generated from protobuf field: bool value = 1;
112
+ */
113
+ value: boolean;
114
+ }
115
+ /**
116
+ * Wrapper message for `string`.
117
+ *
118
+ * The JSON representation for `StringValue` is JSON string.
119
+ *
120
+ * @generated from protobuf message google.protobuf.StringValue
121
+ */
122
+ export interface StringValue {
123
+ /**
124
+ * The string value.
125
+ *
126
+ * @generated from protobuf field: string value = 1;
127
+ */
128
+ value: string;
129
+ }
130
+ /**
131
+ * Wrapper message for `bytes`.
132
+ *
133
+ * The JSON representation for `BytesValue` is JSON string.
134
+ *
135
+ * @generated from protobuf message google.protobuf.BytesValue
136
+ */
137
+ export interface BytesValue {
138
+ /**
139
+ * The bytes value.
140
+ *
141
+ * @generated from protobuf field: bytes value = 1;
142
+ */
143
+ value: Uint8Array;
144
+ }
145
+ declare class DoubleValue$Type extends MessageType<DoubleValue> {
146
+ constructor();
147
+ /**
148
+ * Encode `DoubleValue` to JSON number.
149
+ */
150
+ internalJsonWrite(message: DoubleValue, options: JsonWriteOptions): JsonValue;
151
+ /**
152
+ * Decode `DoubleValue` from JSON number.
153
+ */
154
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: DoubleValue): DoubleValue;
155
+ create(value?: PartialMessage<DoubleValue>): DoubleValue;
156
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleValue): DoubleValue;
157
+ internalBinaryWrite(message: DoubleValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
158
+ }
159
+ /**
160
+ * @generated MessageType for protobuf message google.protobuf.DoubleValue
161
+ */
162
+ export declare const DoubleValue: DoubleValue$Type;
163
+ declare class FloatValue$Type extends MessageType<FloatValue> {
164
+ constructor();
165
+ /**
166
+ * Encode `FloatValue` to JSON number.
167
+ */
168
+ internalJsonWrite(message: FloatValue, options: JsonWriteOptions): JsonValue;
169
+ /**
170
+ * Decode `FloatValue` from JSON number.
171
+ */
172
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FloatValue): FloatValue;
173
+ create(value?: PartialMessage<FloatValue>): FloatValue;
174
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatValue): FloatValue;
175
+ internalBinaryWrite(message: FloatValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
176
+ }
177
+ /**
178
+ * @generated MessageType for protobuf message google.protobuf.FloatValue
179
+ */
180
+ export declare const FloatValue: FloatValue$Type;
181
+ declare class Int64Value$Type extends MessageType<Int64Value> {
182
+ constructor();
183
+ /**
184
+ * Encode `Int64Value` to JSON string.
185
+ */
186
+ internalJsonWrite(message: Int64Value, options: JsonWriteOptions): JsonValue;
187
+ /**
188
+ * Decode `Int64Value` from JSON string.
189
+ */
190
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int64Value): Int64Value;
191
+ create(value?: PartialMessage<Int64Value>): Int64Value;
192
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Value): Int64Value;
193
+ internalBinaryWrite(message: Int64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
194
+ }
195
+ /**
196
+ * @generated MessageType for protobuf message google.protobuf.Int64Value
197
+ */
198
+ export declare const Int64Value: Int64Value$Type;
199
+ declare class UInt64Value$Type extends MessageType<UInt64Value> {
200
+ constructor();
201
+ /**
202
+ * Encode `UInt64Value` to JSON string.
203
+ */
204
+ internalJsonWrite(message: UInt64Value, options: JsonWriteOptions): JsonValue;
205
+ /**
206
+ * Decode `UInt64Value` from JSON string.
207
+ */
208
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt64Value): UInt64Value;
209
+ create(value?: PartialMessage<UInt64Value>): UInt64Value;
210
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Value): UInt64Value;
211
+ internalBinaryWrite(message: UInt64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
212
+ }
213
+ /**
214
+ * @generated MessageType for protobuf message google.protobuf.UInt64Value
215
+ */
216
+ export declare const UInt64Value: UInt64Value$Type;
217
+ declare class Int32Value$Type extends MessageType<Int32Value> {
218
+ constructor();
219
+ /**
220
+ * Encode `Int32Value` to JSON string.
221
+ */
222
+ internalJsonWrite(message: Int32Value, options: JsonWriteOptions): JsonValue;
223
+ /**
224
+ * Decode `Int32Value` from JSON string.
225
+ */
226
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int32Value): Int32Value;
227
+ create(value?: PartialMessage<Int32Value>): Int32Value;
228
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Value): Int32Value;
229
+ internalBinaryWrite(message: Int32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
230
+ }
231
+ /**
232
+ * @generated MessageType for protobuf message google.protobuf.Int32Value
233
+ */
234
+ export declare const Int32Value: Int32Value$Type;
235
+ declare class UInt32Value$Type extends MessageType<UInt32Value> {
236
+ constructor();
237
+ /**
238
+ * Encode `UInt32Value` to JSON string.
239
+ */
240
+ internalJsonWrite(message: UInt32Value, options: JsonWriteOptions): JsonValue;
241
+ /**
242
+ * Decode `UInt32Value` from JSON string.
243
+ */
244
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt32Value): UInt32Value;
245
+ create(value?: PartialMessage<UInt32Value>): UInt32Value;
246
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Value): UInt32Value;
247
+ internalBinaryWrite(message: UInt32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
248
+ }
249
+ /**
250
+ * @generated MessageType for protobuf message google.protobuf.UInt32Value
251
+ */
252
+ export declare const UInt32Value: UInt32Value$Type;
253
+ declare class BoolValue$Type extends MessageType<BoolValue> {
254
+ constructor();
255
+ /**
256
+ * Encode `BoolValue` to JSON bool.
257
+ */
258
+ internalJsonWrite(message: BoolValue, options: JsonWriteOptions): JsonValue;
259
+ /**
260
+ * Decode `BoolValue` from JSON bool.
261
+ */
262
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BoolValue): BoolValue;
263
+ create(value?: PartialMessage<BoolValue>): BoolValue;
264
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolValue): BoolValue;
265
+ internalBinaryWrite(message: BoolValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
266
+ }
267
+ /**
268
+ * @generated MessageType for protobuf message google.protobuf.BoolValue
269
+ */
270
+ export declare const BoolValue: BoolValue$Type;
271
+ declare class StringValue$Type extends MessageType<StringValue> {
272
+ constructor();
273
+ /**
274
+ * Encode `StringValue` to JSON string.
275
+ */
276
+ internalJsonWrite(message: StringValue, options: JsonWriteOptions): JsonValue;
277
+ /**
278
+ * Decode `StringValue` from JSON string.
279
+ */
280
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: StringValue): StringValue;
281
+ create(value?: PartialMessage<StringValue>): StringValue;
282
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringValue): StringValue;
283
+ internalBinaryWrite(message: StringValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
284
+ }
285
+ /**
286
+ * @generated MessageType for protobuf message google.protobuf.StringValue
287
+ */
288
+ export declare const StringValue: StringValue$Type;
289
+ declare class BytesValue$Type extends MessageType<BytesValue> {
290
+ constructor();
291
+ /**
292
+ * Encode `BytesValue` to JSON string.
293
+ */
294
+ internalJsonWrite(message: BytesValue, options: JsonWriteOptions): JsonValue;
295
+ /**
296
+ * Decode `BytesValue` from JSON string.
297
+ */
298
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BytesValue): BytesValue;
299
+ create(value?: PartialMessage<BytesValue>): BytesValue;
300
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesValue): BytesValue;
301
+ internalBinaryWrite(message: BytesValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
302
+ }
303
+ /**
304
+ * @generated MessageType for protobuf message google.protobuf.BytesValue
305
+ */
306
+ export declare const BytesValue: BytesValue$Type;
307
+ export {};