@aptre/protobuf-es-lite 0.2.12 → 0.2.14

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.
@@ -63,7 +63,6 @@ export declare const protobufPackage = "google.protobuf";
63
63
  *
64
64
  * protobuf-go-lite:disable-text
65
65
  *
66
- *
67
66
  * @generated from message google.protobuf.Duration
68
67
  */
69
68
  export type Duration = Message<{
@@ -72,8 +71,7 @@ export type Duration = Message<{
72
71
  * to +315,576,000,000 inclusive. Note: these bounds are computed from:
73
72
  * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
74
73
  *
75
- *
76
- * @generated from field: int64 seconds = 1 [packed = false, default = , jstype = JS_NORMAL];
74
+ * @generated from field: int64 seconds = 1;
77
75
  */
78
76
  seconds?: bigint;
79
77
  /**
@@ -84,8 +82,7 @@ export type Duration = Message<{
84
82
  * of the same sign as the `seconds` field. Must be from -999,999,999
85
83
  * to +999,999,999 inclusive.
86
84
  *
87
- *
88
- * @generated from field: int32 nanos = 2 [packed = false, default = , jstype = JS_NORMAL];
85
+ * @generated from field: int32 nanos = 2;
89
86
  */
90
87
  nanos?: number;
91
88
  }>;
@@ -11,7 +11,6 @@ export declare const protobufPackage = "google.protobuf";
11
11
  * }
12
12
  *
13
13
  *
14
- *
15
14
  * @generated from message google.protobuf.Empty
16
15
  */
17
16
  export type Empty = Message<{}>;
@@ -5,7 +5,6 @@ export declare const protobufPackage = "google.protobuf";
5
5
  * `SourceContext` represents information about the source of a
6
6
  * protobuf element, like the file in which it is defined.
7
7
  *
8
- *
9
8
  * @generated from message google.protobuf.SourceContext
10
9
  */
11
10
  export type SourceContext = Message<{
@@ -13,8 +12,7 @@ export type SourceContext = Message<{
13
12
  * The path-qualified name of the .proto file that contained the associated
14
13
  * protobuf element. For example: `"google/protobuf/source_context.proto"`.
15
14
  *
16
- *
17
- * @generated from field: string file_name = 1 [packed = false, default = "", jstype = JS_NORMAL];
15
+ * @generated from field: string file_name = 1;
18
16
  */
19
17
  fileName?: string;
20
18
  }>;
@@ -7,14 +7,12 @@ export declare const protobufPackage = "google.protobuf";
7
7
  *
8
8
  * The JSON representation for `NullValue` is JSON `null`.
9
9
  *
10
- *
11
10
  * @generated from enum google.protobuf.NullValue
12
11
  */
13
12
  export declare enum NullValue {
14
13
  /**
15
14
  * Null value.
16
15
  *
17
- *
18
16
  * @generated from enum value: NULL_VALUE = 0;
19
17
  */
20
18
  NULL_VALUE = 0
@@ -25,15 +23,13 @@ export declare const NullValue_Enum: import("../../enum.js").EnumType;
25
23
  *
26
24
  * The JSON representation for `ListValue` is JSON array.
27
25
  *
28
- *
29
26
  * @generated from message google.protobuf.ListValue
30
27
  */
31
28
  export type ListValue = Message<{
32
29
  /**
33
30
  * Repeated field of dynamically typed values.
34
31
  *
35
- *
36
- * @generated from field: repeated google.protobuf.Value values = 1 [packed = false, default = , jstype = JS_NORMAL];
32
+ * @generated from field: repeated google.protobuf.Value values = 1;
37
33
  */
38
34
  values?: Value[];
39
35
  }>;
@@ -46,52 +42,66 @@ export declare const ListValue: MessageType<ListValue>;
46
42
  *
47
43
  * The JSON representation for `Value` is JSON value.
48
44
  *
49
- *
50
45
  * @generated from message google.protobuf.Value
51
46
  */
52
47
  export type Value = Message<{
53
48
  /**
54
- * Represents a null value.
55
- *
49
+ * The kind of value.
56
50
  *
57
- * @generated from field: google.protobuf.NullValue null_value = 1 [packed = false, default = , jstype = JS_NORMAL];
51
+ * @generated from oneof google.protobuf.Value.kind
58
52
  */
59
- nullValue?: NullValue;
60
- /**
61
- * Represents a double value.
62
- *
63
- *
64
- * @generated from field: double number_value = 2 [packed = false, default = , jstype = JS_NORMAL];
65
- */
66
- numberValue?: number;
67
- /**
68
- * Represents a string value.
69
- *
70
- *
71
- * @generated from field: string string_value = 3 [packed = false, default = "", jstype = JS_NORMAL];
72
- */
73
- stringValue?: string;
74
- /**
75
- * Represents a boolean value.
76
- *
77
- *
78
- * @generated from field: bool bool_value = 4 [packed = false, default = , jstype = JS_NORMAL];
79
- */
80
- boolValue?: boolean;
81
- /**
82
- * Represents a structured value.
83
- *
84
- *
85
- * @generated from field: google.protobuf.Struct struct_value = 5 [packed = false, default = , jstype = JS_NORMAL];
86
- */
87
- structValue?: Struct;
88
- /**
89
- * Represents a repeated `Value`.
90
- *
91
- *
92
- * @generated from field: google.protobuf.ListValue list_value = 6 [packed = false, default = , jstype = JS_NORMAL];
93
- */
94
- listValue?: ListValue;
53
+ kind?: {
54
+ value?: undefined;
55
+ case: undefined;
56
+ } | {
57
+ /**
58
+ * Represents a null value.
59
+ *
60
+ * @generated from field: google.protobuf.NullValue null_value = 1;
61
+ */
62
+ value: NullValue;
63
+ case: "nullValue";
64
+ } | {
65
+ /**
66
+ * Represents a double value.
67
+ *
68
+ * @generated from field: double number_value = 2;
69
+ */
70
+ value: number;
71
+ case: "numberValue";
72
+ } | {
73
+ /**
74
+ * Represents a string value.
75
+ *
76
+ * @generated from field: string string_value = 3;
77
+ */
78
+ value: string;
79
+ case: "stringValue";
80
+ } | {
81
+ /**
82
+ * Represents a boolean value.
83
+ *
84
+ * @generated from field: bool bool_value = 4;
85
+ */
86
+ value: boolean;
87
+ case: "boolValue";
88
+ } | {
89
+ /**
90
+ * Represents a structured value.
91
+ *
92
+ * @generated from field: google.protobuf.Struct struct_value = 5;
93
+ */
94
+ value: Struct;
95
+ case: "structValue";
96
+ } | {
97
+ /**
98
+ * Represents a repeated `Value`.
99
+ *
100
+ * @generated from field: google.protobuf.ListValue list_value = 6;
101
+ */
102
+ value: ListValue;
103
+ case: "listValue";
104
+ };
95
105
  }>;
96
106
  export declare const Value: MessageType<Value>;
97
107
  /**
@@ -104,15 +114,13 @@ export declare const Value: MessageType<Value>;
104
114
  *
105
115
  * The JSON representation for `Struct` is JSON object.
106
116
  *
107
- *
108
117
  * @generated from message google.protobuf.Struct
109
118
  */
110
119
  export type Struct = Message<{
111
120
  /**
112
121
  * Unordered map of dynamically typed values.
113
122
  *
114
- *
115
- * @generated from field: map<string, google.protobuf.Value> fields = 1 [packed = false, default = , jstype = JS_NORMAL];
123
+ * @generated from field: map<string, google.protobuf.Value> fields = 1;
116
124
  */
117
125
  fields?: {
118
126
  [key: string]: Value;
@@ -35,7 +35,6 @@ export const protobufPackage = "google.protobuf";
35
35
  *
36
36
  * The JSON representation for `NullValue` is JSON `null`.
37
37
  *
38
- *
39
38
  * @generated from enum google.protobuf.NullValue
40
39
  */
41
40
  export var NullValue;
@@ -43,7 +42,6 @@ export var NullValue;
43
42
  /**
44
43
  * Null value.
45
44
  *
46
- *
47
45
  * @generated from enum value: NULL_VALUE = 0;
48
46
  */
49
47
  NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
@@ -62,35 +60,19 @@ export const ListValue = createMessageType({
62
60
  export const Value = createMessageType({
63
61
  typeName: "google.protobuf.Value",
64
62
  fields: [
65
- { no: 1, name: "null_value", kind: "enum", T: NullValue_Enum },
66
- {
67
- no: 2,
68
- name: "number_value",
69
- kind: "scalar",
70
- T: 1 /* ScalarType.DOUBLE */,
71
- },
72
- {
73
- no: 3,
74
- name: "string_value",
75
- kind: "scalar",
76
- T: 9 /* ScalarType.STRING */,
77
- },
78
- { no: 4, name: "bool_value", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
79
- { no: 5, name: "struct_value", kind: "message", T: () => Struct },
80
- { no: 6, name: "list_value", kind: "message", T: () => ListValue },
63
+ { no: 1, name: "null_value", kind: "enum", T: NullValue_Enum, oneof: "kind" },
64
+ { no: 2, name: "number_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "kind" },
65
+ { no: 3, name: "string_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "kind" },
66
+ { no: 4, name: "bool_value", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "kind" },
67
+ { no: 5, name: "struct_value", kind: "message", T: () => Struct, oneof: "kind" },
68
+ { no: 6, name: "list_value", kind: "message", T: () => ListValue, oneof: "kind" },
81
69
  ],
82
70
  packedByDefault: true,
83
71
  });
84
72
  export const Struct = createMessageType({
85
73
  typeName: "google.protobuf.Struct",
86
74
  fields: [
87
- {
88
- no: 1,
89
- name: "fields",
90
- kind: "map",
91
- K: 9 /* ScalarType.STRING */,
92
- V: { kind: "message", T: () => Value },
93
- },
75
+ { no: 1, name: "fields", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: () => Value } },
94
76
  ],
95
77
  packedByDefault: true,
96
78
  });
@@ -94,7 +94,6 @@ export declare const protobufPackage = "google.protobuf";
94
94
  *
95
95
  * protobuf-go-lite:disable-text
96
96
  *
97
- *
98
97
  * @generated from message google.protobuf.Timestamp
99
98
  */
100
99
  export type Timestamp = Message<{
@@ -103,8 +102,7 @@ export type Timestamp = Message<{
103
102
  * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
104
103
  * 9999-12-31T23:59:59Z inclusive.
105
104
  *
106
- *
107
- * @generated from field: int64 seconds = 1 [packed = false, default = , jstype = JS_NORMAL];
105
+ * @generated from field: int64 seconds = 1;
108
106
  */
109
107
  seconds?: bigint;
110
108
  /**
@@ -113,8 +111,7 @@ export type Timestamp = Message<{
113
111
  * that count forward in time. Must be from 0 to 999,999,999
114
112
  * inclusive.
115
113
  *
116
- *
117
- * @generated from field: int32 nanos = 2 [packed = false, default = , jstype = JS_NORMAL];
114
+ * @generated from field: int32 nanos = 2;
118
115
  */
119
116
  nanos?: number;
120
117
  }>;