@replit/protocol 0.4.32 → 0.5.0

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.
@@ -176,6 +176,13 @@ export interface Repl {
176
176
  * @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 21
177
177
  */
178
178
  replCreatedAt?: Timestamp;
179
+ /**
180
+ * Versions use_repl_shield: the Replit web row snapshot time read with the
181
+ * flag. PatchSandbox uses it to order live CR updates against boot state.
182
+ *
183
+ * @generated from protobuf field: google.protobuf.Timestamp repl_shield_state_as_of = 22
184
+ */
185
+ replShieldStateAsOf?: Timestamp;
179
186
  }
180
187
  /**
181
188
  * autocontainer needs to know if we are in a teams org
@@ -213,6 +220,15 @@ export interface Org {
213
220
  * @generated from protobuf field: string customer_id = 5
214
221
  */
215
222
  customerId: string;
223
+ /**
224
+ * Customer VPN domain (e.g. "replit.corp.example.com") when this org's
225
+ * customer forces access through its VPN. Private deployments of the org
226
+ * send ReplShield logins to this host instead of replit.com and only accept
227
+ * ReplShield tokens minted there. Empty when the customer is not forced.
228
+ *
229
+ * @generated from protobuf field: string customer_vpn_domain = 6
230
+ */
231
+ customerVpnDomain: string;
216
232
  }
217
233
  /**
218
234
  * Organization type. There are legacy types, but we are not
@@ -308,6 +324,13 @@ export interface ResourceLimits {
308
324
  * @generated from protobuf field: bool restrictNetwork = 7
309
325
  */
310
326
  restrictNetwork: boolean;
327
+ /**
328
+ * The authorized user-facing Helium PostgreSQL quota in bytes. Zero means
329
+ * the legacy standard quota.
330
+ *
331
+ * @generated from protobuf field: uint64 helium_user_quota_bytes = 11
332
+ */
333
+ heliumUserQuotaBytes: bigint;
311
334
  }
312
335
  /**
313
336
  * Whether these limits are cachable, and if they are, by what facet of the
@@ -207,7 +207,8 @@ class Repl$Type extends MessageType {
207
207
  { no: 18, name: "custom_skills_bucket", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
208
208
  { no: 19, name: "user_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
209
209
  { no: 20, name: "inject_chatgpt_link_override", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
210
- { no: 21, name: "repl_created_at", kind: "message", T: () => Timestamp }
210
+ { no: 21, name: "repl_created_at", kind: "message", T: () => Timestamp },
211
+ { no: 22, name: "repl_shield_state_as_of", kind: "message", T: () => Timestamp }
211
212
  ]);
212
213
  }
213
214
  create(value) {
@@ -297,6 +298,9 @@ class Repl$Type extends MessageType {
297
298
  case /* google.protobuf.Timestamp repl_created_at */ 21:
298
299
  message.replCreatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replCreatedAt);
299
300
  break;
301
+ case /* google.protobuf.Timestamp repl_shield_state_as_of */ 22:
302
+ message.replShieldStateAsOf = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replShieldStateAsOf);
303
+ break;
300
304
  default:
301
305
  let u = options.readUnknownField;
302
306
  if (u === "throw")
@@ -385,6 +389,9 @@ class Repl$Type extends MessageType {
385
389
  /* google.protobuf.Timestamp repl_created_at = 21; */
386
390
  if (message.replCreatedAt)
387
391
  Timestamp.internalBinaryWrite(message.replCreatedAt, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
392
+ /* google.protobuf.Timestamp repl_shield_state_as_of = 22; */
393
+ if (message.replShieldStateAsOf)
394
+ Timestamp.internalBinaryWrite(message.replShieldStateAsOf, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
388
395
  let u = options.writeUnknownFields;
389
396
  if (u !== false)
390
397
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -403,7 +410,8 @@ class Org$Type extends MessageType {
403
410
  { no: 2, name: "type", kind: "enum", T: () => ["replit.goval.api.repl.Org.OrgType", Org_OrgType] },
404
411
  { no: 3, name: "slug", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
405
412
  { no: 4, name: "is_enterprise", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
406
- { no: 5, name: "customer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
413
+ { no: 5, name: "customer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
414
+ { no: 6, name: "customer_vpn_domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
407
415
  ]);
408
416
  }
409
417
  create(value) {
@@ -413,6 +421,7 @@ class Org$Type extends MessageType {
413
421
  message.slug = "";
414
422
  message.isEnterprise = false;
415
423
  message.customerId = "";
424
+ message.customerVpnDomain = "";
416
425
  if (value !== undefined)
417
426
  reflectionMergePartial(this, message, value);
418
427
  return message;
@@ -437,6 +446,9 @@ class Org$Type extends MessageType {
437
446
  case /* string customer_id */ 5:
438
447
  message.customerId = reader.string();
439
448
  break;
449
+ case /* string customer_vpn_domain */ 6:
450
+ message.customerVpnDomain = reader.string();
451
+ break;
440
452
  default:
441
453
  let u = options.readUnknownField;
442
454
  if (u === "throw")
@@ -464,6 +476,9 @@ class Org$Type extends MessageType {
464
476
  /* string customer_id = 5; */
465
477
  if (message.customerId !== "")
466
478
  writer.tag(5, WireType.LengthDelimited).string(message.customerId);
479
+ /* string customer_vpn_domain = 6; */
480
+ if (message.customerVpnDomain !== "")
481
+ writer.tag(6, WireType.LengthDelimited).string(message.customerVpnDomain);
467
482
  let u = options.writeUnknownFields;
468
483
  if (u !== false)
469
484
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -541,7 +556,8 @@ class ResourceLimits$Type extends MessageType {
541
556
  { no: 10, name: "minimum_disk", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
542
557
  { no: 9, name: "scratch_disk", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
543
558
  { no: 6, name: "cache", kind: "enum", T: () => ["replit.goval.api.repl.ResourceLimits.Cachability", ResourceLimits_Cachability] },
544
- { no: 7, name: "restrictNetwork", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
559
+ { no: 7, name: "restrictNetwork", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
560
+ { no: 11, name: "helium_user_quota_bytes", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
545
561
  ]);
546
562
  }
547
563
  create(value) {
@@ -555,6 +571,7 @@ class ResourceLimits$Type extends MessageType {
555
571
  message.scratchDisk = 0n;
556
572
  message.cache = 0;
557
573
  message.restrictNetwork = false;
574
+ message.heliumUserQuotaBytes = 0n;
558
575
  if (value !== undefined)
559
576
  reflectionMergePartial(this, message, value);
560
577
  return message;
@@ -591,6 +608,9 @@ class ResourceLimits$Type extends MessageType {
591
608
  case /* bool restrictNetwork */ 7:
592
609
  message.restrictNetwork = reader.bool();
593
610
  break;
611
+ case /* uint64 helium_user_quota_bytes */ 11:
612
+ message.heliumUserQuotaBytes = reader.uint64().toBigInt();
613
+ break;
594
614
  default:
595
615
  let u = options.readUnknownField;
596
616
  if (u === "throw")
@@ -630,6 +650,9 @@ class ResourceLimits$Type extends MessageType {
630
650
  /* int64 minimum_disk = 10; */
631
651
  if (message.minimumDisk !== 0n)
632
652
  writer.tag(10, WireType.Varint).int64(message.minimumDisk);
653
+ /* uint64 helium_user_quota_bytes = 11; */
654
+ if (message.heliumUserQuotaBytes !== 0n)
655
+ writer.tag(11, WireType.Varint).uint64(message.heliumUserQuotaBytes);
633
656
  let u = options.writeUnknownFields;
634
657
  if (u !== false)
635
658
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -172,10 +172,10 @@ export interface ReplToken {
172
172
  */
173
173
  replexec: boolean;
174
174
  /**
175
- * ExternalSecrets contains the information goval needs to access external
176
- * secrets.
175
+ * Deprecated: replvisor fetches external secrets through web RPC.
177
176
  *
178
- * @generated from protobuf field: repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22
177
+ * @deprecated
178
+ * @generated from protobuf field: repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true]
179
179
  */
180
180
  externalSecrets: ReplToken_ExternalSecret[];
181
181
  /**
@@ -188,9 +188,9 @@ export interface ReplToken {
188
188
  before?: Timestamp;
189
189
  /**
190
190
  * Resource tier selects the Goval 3 resource size. Current values are
191
- * "small", "medium", and "large". Goval 3 combines this with `paid` to
192
- * select a ReplPool tier such as "free-small", "paid-medium", or
193
- * "paid-large".
191
+ * "small", "medium", "large", and "xlarge". Goval 3 combines this with `paid`
192
+ * to select a ReplPool tier such as "free-small", "paid-medium", or
193
+ * "paid-xlarge".
194
194
  *
195
195
  * @generated from protobuf field: string resource_tier = 25
196
196
  */
@@ -182,7 +182,7 @@ class ReplToken$Type extends MessageType {
182
182
  case /* bool replexec */ 21:
183
183
  message.replexec = reader.bool();
184
184
  break;
185
- case /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets */ 22:
185
+ case /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true] */ 22:
186
186
  message.externalSecrets.push(ReplToken_ExternalSecret.internalBinaryRead(reader, reader.uint32(), options));
187
187
  break;
188
188
  case /* google.protobuf.Timestamp before */ 23:
@@ -269,7 +269,7 @@ class ReplToken$Type extends MessageType {
269
269
  /* bool replexec = 21; */
270
270
  if (message.replexec !== false)
271
271
  writer.tag(21, WireType.Varint).bool(message.replexec);
272
- /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22; */
272
+ /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true]; */
273
273
  for (let i = 0; i < message.externalSecrets.length; i++)
274
274
  ReplToken_ExternalSecret.internalBinaryWrite(message.externalSecrets[i], writer.tag(22, WireType.LengthDelimited).fork(), options).join();
275
275
  /* google.protobuf.Timestamp before = 23; */
@@ -12,73 +12,129 @@ import { MessageType } from "@protobuf-ts/runtime";
12
12
  * `Any` contains an arbitrary serialized protocol buffer message along with a
13
13
  * URL that describes the type of the serialized message.
14
14
  *
15
- * In its binary encoding, an `Any` is an ordinary message; but in other wire
16
- * forms like JSON, it has a special encoding. The format of the type URL is
17
- * described on the `type_url` field.
18
- *
19
- * Protobuf APIs provide utilities to interact with `Any` values:
20
- *
21
- * - A 'pack' operation accepts a message and constructs a generic `Any` wrapper
22
- * around it.
23
- * - An 'unpack' operation reads the content of an `Any` message, either into an
24
- * existing message or a new one. Unpack operations must check the type of the
25
- * value they unpack against the declared `type_url`.
26
- * - An 'is' operation decides whether an `Any` contains a message of the given
27
- * type, i.e. whether it can 'unpack' that type.
28
- *
29
- * The JSON format representation of an `Any` follows one of these cases:
30
- *
31
- * - For types without special-cased JSON encodings, the JSON format
32
- * representation of the `Any` is the same as that of the message, with an
33
- * additional `@type` field which contains the type URL.
34
- * - For types with special-cased JSON encodings (typically called 'well-known'
35
- * types, listed in https://protobuf.dev/programming-guides/json/#any), the
36
- * JSON format representation has a key `@type` which contains the type URL
37
- * and a key `value` which contains the JSON-serialized value.
38
- *
39
- * The text format representation of an `Any` is like a message with one field
40
- * whose name is the type URL in brackets. For example, an `Any` containing a
41
- * `foo.Bar` message may be written `[type.googleapis.com/foo.Bar] { a: 2 }`.
15
+ * Protobuf library provides support to pack/unpack Any values in the form
16
+ * of utility functions or additional generated methods of the Any type.
17
+ *
18
+ * Example 1: Pack and unpack a message in C++.
19
+ *
20
+ * Foo foo = ...;
21
+ * Any any;
22
+ * any.PackFrom(foo);
23
+ * ...
24
+ * if (any.UnpackTo(&foo)) {
25
+ * ...
26
+ * }
27
+ *
28
+ * Example 2: Pack and unpack a message in Java.
29
+ *
30
+ * Foo foo = ...;
31
+ * Any any = Any.pack(foo);
32
+ * ...
33
+ * if (any.is(Foo.class)) {
34
+ * foo = any.unpack(Foo.class);
35
+ * }
36
+ * // or ...
37
+ * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
38
+ * foo = any.unpack(Foo.getDefaultInstance());
39
+ * }
40
+ *
41
+ * Example 3: Pack and unpack a message in Python.
42
+ *
43
+ * foo = Foo(...)
44
+ * any = Any()
45
+ * any.Pack(foo)
46
+ * ...
47
+ * if any.Is(Foo.DESCRIPTOR):
48
+ * any.Unpack(foo)
49
+ * ...
50
+ *
51
+ * Example 4: Pack and unpack a message in Go
52
+ *
53
+ * foo := &pb.Foo{...}
54
+ * any, err := anypb.New(foo)
55
+ * if err != nil {
56
+ * ...
57
+ * }
58
+ * ...
59
+ * foo := &pb.Foo{}
60
+ * if err := any.UnmarshalTo(foo); err != nil {
61
+ * ...
62
+ * }
63
+ *
64
+ * The pack methods provided by protobuf library will by default use
65
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
66
+ * methods only use the fully qualified type name after the last '/'
67
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
68
+ * name "y.z".
69
+ *
70
+ * JSON
71
+ * ====
72
+ * The JSON representation of an `Any` value uses the regular
73
+ * representation of the deserialized, embedded message, with an
74
+ * additional field `@type` which contains the type URL. Example:
75
+ *
76
+ * package google.profile;
77
+ * message Person {
78
+ * string first_name = 1;
79
+ * string last_name = 2;
80
+ * }
81
+ *
82
+ * {
83
+ * "@type": "type.googleapis.com/google.profile.Person",
84
+ * "firstName": <string>,
85
+ * "lastName": <string>
86
+ * }
87
+ *
88
+ * If the embedded message type is well-known and has a custom JSON
89
+ * representation, that representation will be embedded adding a field
90
+ * `value` which holds the custom JSON in addition to the `@type`
91
+ * field. Example (for message [google.protobuf.Duration][]):
92
+ *
93
+ * {
94
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
95
+ * "value": "1.212s"
96
+ * }
97
+ *
42
98
  *
43
99
  * @generated from protobuf message google.protobuf.Any
44
100
  */
45
101
  export interface Any {
46
102
  /**
47
- * Identifies the type of the serialized Protobuf message with a URI reference
48
- * consisting of a prefix ending in a slash and the fully-qualified type name.
103
+ * A URL/resource name that uniquely identifies the type of the serialized
104
+ * protocol buffer message. This string must contain at least
105
+ * one "/" character. The last segment of the URL's path must represent
106
+ * the fully qualified name of the type (as in
107
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
108
+ * (e.g., leading "." is not accepted).
49
109
  *
50
- * Example: type.googleapis.com/google.protobuf.StringValue
110
+ * In practice, teams usually precompile into the binary all types that they
111
+ * expect it to use in the context of Any. However, for URLs which use the
112
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
113
+ * server that maps type URLs to message definitions as follows:
51
114
  *
52
- * This string must contain at least one `/` character, and the content after
53
- * the last `/` must be the fully-qualified name of the type in canonical
54
- * form, without a leading dot. Do not write a scheme on these URI references
55
- * so that clients do not attempt to contact them.
115
+ * * If no scheme is provided, `https` is assumed.
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.)
56
123
  *
57
- * The prefix is arbitrary and Protobuf implementations are expected to
58
- * simply strip off everything up to and including the last `/` to identify
59
- * the type. `type.googleapis.com/` is a common default prefix that some
60
- * legacy implementations require. This prefix does not indicate the origin of
61
- * the type, and URIs containing it are not expected to respond to any
62
- * requests.
124
+ * Note: this functionality is not currently available in the official
125
+ * protobuf release, and it is not used for type URLs beginning with
126
+ * type.googleapis.com. As of May 2023, there are no widely used type server
127
+ * implementations and no plans to implement one.
63
128
  *
64
- * All type URL strings must be legal URI references with the additional
65
- * restriction (for the text format) that the content of the reference
66
- * must consist only of alphanumeric characters, percent-encoded escapes, and
67
- * characters in the following set (not including the outer backticks):
68
- * `/-.~_!$&()*+,;=`. Despite our allowing percent encodings, implementations
69
- * should not unescape them to prevent confusion with existing parsers. For
70
- * example, `type.googleapis.com%2FFoo` should be rejected.
129
+ * Schemes other than `http`, `https` (or the empty scheme) might be
130
+ * used with implementation specific semantics.
71
131
  *
72
- * In the original design of `Any`, the possibility of launching a type
73
- * resolution service at these type URLs was considered but Protobuf never
74
- * implemented one and considers contacting these URLs to be problematic and
75
- * a potential security issue. Do not attempt to contact type URLs.
76
132
  *
77
133
  * @generated from protobuf field: string type_url = 1
78
134
  */
79
135
  typeUrl: string;
80
136
  /**
81
- * Holds a Protobuf serialization of the type described by type_url.
137
+ * Must be a valid serialized protocol buffer of the above specified type.
82
138
  *
83
139
  * @generated from protobuf field: bytes value = 2
84
140
  */
@@ -120,22 +120,24 @@ import { MessageType } from "@protobuf-ts/runtime";
120
120
  * An implementation may provide options to override this default behavior for
121
121
  * repeated and message fields.
122
122
  *
123
- * Note that libraries which implement FieldMask resolution have various
124
- * different behaviors in the face of empty masks or the special "*" mask.
125
- * When implementing a service you should confirm these cases have the
126
- * appropriate behavior in the underlying FieldMask library that you desire,
127
- * and you may need to special case those cases in your application code if
128
- * the underlying field mask library behavior differs from your intended
129
- * service semantics.
130
- *
131
- * Update methods implementing https://google.aip.dev/134
132
- * - MUST support the special value * meaning "full replace"
133
- * - MUST treat an omitted field mask as "replace fields which are present".
134
- *
135
- * Other methods implementing https://google.aip.dev/157
136
- * - SHOULD support the special value "*" to mean "get all".
137
- * - MUST treat an omitted field mask to mean "get all", unless otherwise
138
- * documented.
123
+ * In order to reset a field's value to the default, the field must
124
+ * be in the mask and set to the default value in the provided resource.
125
+ * Hence, in order to reset all fields of a resource, provide a default
126
+ * instance of the resource and set all fields in the mask, or do
127
+ * not provide a mask as described below.
128
+ *
129
+ * If a field mask is not present on update, the operation applies to
130
+ * all fields (as if a field mask of all fields has been specified).
131
+ * Note that in the presence of schema evolution, this may mean that
132
+ * fields the client does not know and has therefore not filled into
133
+ * the request will be reset to their default. If this is unwanted
134
+ * behavior, a specific service may require a client to always specify
135
+ * a field mask, producing an error if not.
136
+ *
137
+ * As with get operations, the location of the resource which
138
+ * describes the updated values in the request message depends on the
139
+ * operation kind. In any case, the effect of the field mask is
140
+ * required to be honored by the API.
139
141
  *
140
142
  * ## Considerations for HTTP REST
141
143
  *
@@ -8,19 +8,14 @@ import type { JsonReadOptions } from "@protobuf-ts/runtime";
8
8
  import type { JsonWriteOptions } from "@protobuf-ts/runtime";
9
9
  import { MessageType } from "@protobuf-ts/runtime";
10
10
  /**
11
- * Represents a JSON object.
11
+ * `Struct` represents a structured data value, consisting of fields
12
+ * which map to dynamically typed values. In some languages, `Struct`
13
+ * might be supported by a native representation. For example, in
14
+ * scripting languages like JS a struct is represented as an
15
+ * object. The details of that representation are described together
16
+ * with the proto support for the language.
12
17
  *
13
- * An unordered key-value map, intending to perfectly capture the semantics of a
14
- * JSON object. This enables parsing any arbitrary JSON payload as a message
15
- * field in ProtoJSON format.
16
- *
17
- * This follows RFC 8259 guidelines for interoperable JSON: notably this type
18
- * cannot represent large Int64 values or `NaN`/`Infinity` numbers,
19
- * since the JSON format generally does not support those values in its number
20
- * type.
21
- *
22
- * If you do not intend to parse arbitrary JSON into your message, a custom
23
- * typed message should be preferred instead of using this type.
18
+ * The JSON representation for `Struct` is JSON object.
24
19
  *
25
20
  * @generated from protobuf message google.protobuf.Struct
26
21
  */
@@ -35,12 +30,12 @@ export interface Struct {
35
30
  };
36
31
  }
37
32
  /**
38
- * Represents a JSON value.
39
- *
40
33
  * `Value` represents a dynamically typed value which can be either
41
34
  * null, a number, a string, a boolean, a recursive struct value, or a
42
35
  * list of values. A producer of value is expected to set one of these
43
- * variants. Absence of any variant is an invalid state.
36
+ * variants. Absence of any variant indicates an error.
37
+ *
38
+ * The JSON representation for `Value` is JSON value.
44
39
  *
45
40
  * @generated from protobuf message google.protobuf.Value
46
41
  */
@@ -53,7 +48,7 @@ export interface Value {
53
48
  kind: {
54
49
  oneofKind: "nullValue";
55
50
  /**
56
- * Represents a JSON `null`.
51
+ * Represents a null value.
57
52
  *
58
53
  * @generated from protobuf field: google.protobuf.NullValue null_value = 1
59
54
  */
@@ -61,10 +56,7 @@ export interface Value {
61
56
  } | {
62
57
  oneofKind: "numberValue";
63
58
  /**
64
- * Represents a JSON number. Must not be `NaN`, `Infinity` or
65
- * `-Infinity`, since those are not supported in JSON. This also cannot
66
- * represent large Int64 values, since JSON format generally does not
67
- * support them in its number type.
59
+ * Represents a double value.
68
60
  *
69
61
  * @generated from protobuf field: double number_value = 2
70
62
  */
@@ -72,7 +64,7 @@ export interface Value {
72
64
  } | {
73
65
  oneofKind: "stringValue";
74
66
  /**
75
- * Represents a JSON string.
67
+ * Represents a string value.
76
68
  *
77
69
  * @generated from protobuf field: string string_value = 3
78
70
  */
@@ -80,7 +72,7 @@ export interface Value {
80
72
  } | {
81
73
  oneofKind: "boolValue";
82
74
  /**
83
- * Represents a JSON boolean (`true` or `false` literal in JSON).
75
+ * Represents a boolean value.
84
76
  *
85
77
  * @generated from protobuf field: bool bool_value = 4
86
78
  */
@@ -88,7 +80,7 @@ export interface Value {
88
80
  } | {
89
81
  oneofKind: "structValue";
90
82
  /**
91
- * Represents a JSON object.
83
+ * Represents a structured value.
92
84
  *
93
85
  * @generated from protobuf field: google.protobuf.Struct struct_value = 5
94
86
  */
@@ -96,7 +88,7 @@ export interface Value {
96
88
  } | {
97
89
  oneofKind: "listValue";
98
90
  /**
99
- * Represents a JSON array.
91
+ * Represents a repeated `Value`.
100
92
  *
101
93
  * @generated from protobuf field: google.protobuf.ListValue list_value = 6
102
94
  */
@@ -106,7 +98,9 @@ export interface Value {
106
98
  };
107
99
  }
108
100
  /**
109
- * Represents a JSON array.
101
+ * `ListValue` is a wrapper around a repeated field of values.
102
+ *
103
+ * The JSON representation for `ListValue` is JSON array.
110
104
  *
111
105
  * @generated from protobuf message google.protobuf.ListValue
112
106
  */
@@ -119,15 +113,10 @@ export interface ListValue {
119
113
  values: Value[];
120
114
  }
121
115
  /**
122
- * Represents a JSON `null`.
123
- *
124
- * `NullValue` is a sentinel, using an enum with only one value to represent
125
- * the null value for the `Value` type union.
116
+ * `NullValue` is a singleton enumeration to represent the null value for the
117
+ * `Value` type union.
126
118
  *
127
- * A field of type `NullValue` with any value other than `0` is considered
128
- * invalid. Most ProtoJSON serializers will emit a `Value` with a `null_value`
129
- * set as a JSON `null` regardless of the integer value, and so will round trip
130
- * to a `0` value.
119
+ * The JSON representation for `NullValue` is JSON `null`.
131
120
  *
132
121
  * @generated from protobuf enum google.protobuf.NullValue
133
122
  */
@@ -5,15 +5,10 @@ import { isJsonObject } from "@protobuf-ts/runtime";
5
5
  import { typeofJsonValue } from "@protobuf-ts/runtime";
6
6
  import { MessageType } from "@protobuf-ts/runtime";
7
7
  /**
8
- * Represents a JSON `null`.
8
+ * `NullValue` is a singleton enumeration to represent the null value for the
9
+ * `Value` type union.
9
10
  *
10
- * `NullValue` is a sentinel, using an enum with only one value to represent
11
- * the null value for the `Value` type union.
12
- *
13
- * A field of type `NullValue` with any value other than `0` is considered
14
- * invalid. Most ProtoJSON serializers will emit a `Value` with a `null_value`
15
- * set as a JSON `null` regardless of the integer value, and so will round trip
16
- * to a `0` value.
11
+ * The JSON representation for `NullValue` is JSON `null`.
17
12
  *
18
13
  * @generated from protobuf enum google.protobuf.NullValue
19
14
  */
@@ -80,8 +80,8 @@ import { MessageType } from "@protobuf-ts/runtime";
80
80
  * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
81
81
  * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
82
82
  * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
83
- * is required. A ProtoJSON serializer should always use UTC (as indicated by
84
- * "Z") when printing the Timestamp type and a ProtoJSON parser should be
83
+ * is required. A proto3 JSON serializer should always use UTC (as indicated by
84
+ * "Z") when printing the Timestamp type and a proto3 JSON parser should be
85
85
  * able to accept both UTC and other timezones (as indicated by an offset).
86
86
  *
87
87
  * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
@@ -103,18 +103,17 @@ import { MessageType } from "@protobuf-ts/runtime";
103
103
  */
104
104
  export interface Timestamp {
105
105
  /**
106
- * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
107
- * be between -62135596800 and 253402300799 inclusive (which corresponds to
108
- * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
106
+ * Represents seconds of UTC time since Unix epoch
107
+ * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
108
+ * 9999-12-31T23:59:59Z inclusive.
109
109
  *
110
110
  * @generated from protobuf field: int64 seconds = 1
111
111
  */
112
112
  seconds: bigint;
113
113
  /**
114
- * Non-negative fractions of a second at nanosecond resolution. This field is
115
- * the nanosecond portion of the duration, not an alternative to seconds.
116
- * Negative second values with fractions must still have non-negative nanos
117
- * values that count forward in time. Must be between 0 and 999,999,999
114
+ * Non-negative fractions of a second at nanosecond resolution. Negative
115
+ * second values with fractions must still have non-negative nanos values
116
+ * that count forward in time. Must be from 0 to 999,999,999
118
117
  * inclusive.
119
118
  *
120
119
  * @generated from protobuf field: int32 nanos = 2