@aptre/protobuf-es-lite 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/google/protobuf/any.pb.d.ts +3 -44
- package/dist/google/protobuf/api.pb.d.ts +7 -8
- package/dist/google/protobuf/api.pb.js +1 -1
- package/dist/google/protobuf/descriptor.pb.d.ts +64 -65
- package/dist/google/protobuf/descriptor.pb.js +1 -1
- package/dist/google/protobuf/duration.pb.d.ts +2 -3
- package/dist/google/protobuf/empty.pb.d.ts +2 -2
- package/dist/google/protobuf/source_context.pb.d.ts +2 -3
- package/dist/google/protobuf/struct.pb.d.ts +6 -7
- package/dist/google/protobuf/timestamp.pb.d.ts +2 -3
- package/dist/google/protobuf/timestamp.pb.js +1 -1
- package/dist/google/protobuf/type.pb.d.ts +10 -11
- package/dist/google/protobuf/type.pb.js +1 -1
- package/dist/google/protobuf/wrappers.pb.d.ts +18 -19
- package/dist/protoc-gen-es-lite/typescript.js +2 -2
- package/example/example.pb.ts +2 -3
- package/package.json +7 -7
|
@@ -91,7 +91,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
91
91
|
*
|
|
92
92
|
* @generated from message google.protobuf.Any
|
|
93
93
|
*/
|
|
94
|
-
export
|
|
94
|
+
export interface Any {
|
|
95
95
|
/**
|
|
96
96
|
* A URL/resource name that uniquely identifies the type of the serialized
|
|
97
97
|
* protocol buffer message. This string must contain at least
|
|
@@ -132,51 +132,10 @@ export type Any = Message<{
|
|
|
132
132
|
* @generated from field: bytes value = 2;
|
|
133
133
|
*/
|
|
134
134
|
value?: Uint8Array;
|
|
135
|
-
}
|
|
135
|
+
}
|
|
136
136
|
declare const Any_Wkt: {
|
|
137
137
|
toJson(msg: Any, options?: Partial<JsonWriteOptions>): JsonValue;
|
|
138
|
-
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>):
|
|
139
|
-
/**
|
|
140
|
-
* A URL/resource name that uniquely identifies the type of the serialized
|
|
141
|
-
* protocol buffer message. This string must contain at least
|
|
142
|
-
* one "/" character. The last segment of the URL's path must represent
|
|
143
|
-
* the fully qualified name of the type (as in
|
|
144
|
-
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
145
|
-
* (e.g., leading "." is not accepted).
|
|
146
|
-
*
|
|
147
|
-
* In practice, teams usually precompile into the binary all types that they
|
|
148
|
-
* expect it to use in the context of Any. However, for URLs which use the
|
|
149
|
-
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
150
|
-
* server that maps type URLs to message definitions as follows:
|
|
151
|
-
*
|
|
152
|
-
* * If no scheme is provided, `https` is assumed.
|
|
153
|
-
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
154
|
-
* value in binary format, or produce an error.
|
|
155
|
-
* * Applications are allowed to cache lookup results based on the
|
|
156
|
-
* URL, or have them precompiled into a binary to avoid any
|
|
157
|
-
* lookup. Therefore, binary compatibility needs to be preserved
|
|
158
|
-
* on changes to types. (Use versioned type names to manage
|
|
159
|
-
* breaking changes.)
|
|
160
|
-
*
|
|
161
|
-
* Note: this functionality is not currently available in the official
|
|
162
|
-
* protobuf release, and it is not used for type URLs beginning with
|
|
163
|
-
* type.googleapis.com. As of May 2023, there are no widely used type server
|
|
164
|
-
* implementations and no plans to implement one.
|
|
165
|
-
*
|
|
166
|
-
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
167
|
-
* used with implementation specific semantics.
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
* @generated from field: string type_url = 1;
|
|
171
|
-
*/
|
|
172
|
-
typeUrl?: string | undefined;
|
|
173
|
-
/**
|
|
174
|
-
* Must be a valid serialized protocol buffer of the above specified type.
|
|
175
|
-
*
|
|
176
|
-
* @generated from field: bytes value = 2;
|
|
177
|
-
*/
|
|
178
|
-
value?: Uint8Array | undefined;
|
|
179
|
-
}>;
|
|
138
|
+
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): Any;
|
|
180
139
|
packFrom<T extends Message<T>>(out: Any, message: Message<T>, messageType: MessageType<T>): void;
|
|
181
140
|
unpackTo<T_1 extends Message<T_1>>(msg: Any, target: Message<T_1>, targetMessageType: MessageType<T_1>): boolean;
|
|
182
141
|
unpack<T_2 extends Message<T_2>>(msg: Any, registry: IMessageTypeRegistry): {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
1
|
import type { Syntax } from "./type.pb.js";
|
|
4
2
|
import { Option } from "./type.pb.js";
|
|
3
|
+
import type { MessageType } from "../../index.js";
|
|
5
4
|
import { SourceContext } from "./source_context.pb.js";
|
|
6
5
|
export declare const protobufPackage = "google.protobuf";
|
|
7
6
|
/**
|
|
@@ -9,7 +8,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
9
8
|
*
|
|
10
9
|
* @generated from message google.protobuf.Method
|
|
11
10
|
*/
|
|
12
|
-
export
|
|
11
|
+
export interface Method {
|
|
13
12
|
/**
|
|
14
13
|
* The simple name of this method.
|
|
15
14
|
*
|
|
@@ -52,7 +51,7 @@ export type Method = Message<{
|
|
|
52
51
|
* @generated from field: google.protobuf.Syntax syntax = 7;
|
|
53
52
|
*/
|
|
54
53
|
syntax?: Syntax;
|
|
55
|
-
}
|
|
54
|
+
}
|
|
56
55
|
export declare const Method: MessageType<Method>;
|
|
57
56
|
/**
|
|
58
57
|
* Declares an API Interface to be included in this interface. The including
|
|
@@ -136,7 +135,7 @@ export declare const Method: MessageType<Method>;
|
|
|
136
135
|
*
|
|
137
136
|
* @generated from message google.protobuf.Mixin
|
|
138
137
|
*/
|
|
139
|
-
export
|
|
138
|
+
export interface Mixin {
|
|
140
139
|
/**
|
|
141
140
|
* The fully qualified name of the interface which is included.
|
|
142
141
|
*
|
|
@@ -150,7 +149,7 @@ export type Mixin = Message<{
|
|
|
150
149
|
* @generated from field: string root = 2;
|
|
151
150
|
*/
|
|
152
151
|
root?: string;
|
|
153
|
-
}
|
|
152
|
+
}
|
|
154
153
|
export declare const Mixin: MessageType<Mixin>;
|
|
155
154
|
/**
|
|
156
155
|
* Api is a light-weight descriptor for an API Interface.
|
|
@@ -165,7 +164,7 @@ export declare const Mixin: MessageType<Mixin>;
|
|
|
165
164
|
*
|
|
166
165
|
* @generated from message google.protobuf.Api
|
|
167
166
|
*/
|
|
168
|
-
export
|
|
167
|
+
export interface Api {
|
|
169
168
|
/**
|
|
170
169
|
* The fully qualified name of this interface, including package name
|
|
171
170
|
* followed by the interface's simple name.
|
|
@@ -229,5 +228,5 @@ export type Api = Message<{
|
|
|
229
228
|
* @generated from field: google.protobuf.Syntax syntax = 7;
|
|
230
229
|
*/
|
|
231
230
|
syntax?: Syntax;
|
|
232
|
-
}
|
|
231
|
+
}
|
|
233
232
|
export declare const Api: MessageType<Api>;
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
28
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
29
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
import { createMessageType, ScalarType } from "../../index.js";
|
|
31
30
|
import { Option, Syntax_Enum } from "./type.pb.js";
|
|
31
|
+
import { createMessageType, ScalarType } from "../../index.js";
|
|
32
32
|
import { SourceContext } from "./source_context.pb.js";
|
|
33
33
|
export const protobufPackage = "google.protobuf";
|
|
34
34
|
// Method contains the message type declaration for Method.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
2
|
export declare const protobufPackage = "google.protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* The full set of known editions.
|
|
@@ -534,7 +533,7 @@ export declare const GeneratedCodeInfo_Annotation_Semantic_Enum: import("../../e
|
|
|
534
533
|
/**
|
|
535
534
|
* @generated from message google.protobuf.FieldOptions.EditionDefault
|
|
536
535
|
*/
|
|
537
|
-
export
|
|
536
|
+
export interface FieldOptions_EditionDefault {
|
|
538
537
|
/**
|
|
539
538
|
* @generated from field: optional google.protobuf.Edition edition = 3;
|
|
540
539
|
*/
|
|
@@ -545,7 +544,7 @@ export type FieldOptions_EditionDefault = Message<{
|
|
|
545
544
|
* @generated from field: optional string value = 2;
|
|
546
545
|
*/
|
|
547
546
|
value?: string;
|
|
548
|
-
}
|
|
547
|
+
}
|
|
549
548
|
export declare const FieldOptions_EditionDefault: MessageType<FieldOptions_EditionDefault>;
|
|
550
549
|
/**
|
|
551
550
|
* TODO Enums in C++ gencode (and potentially other languages) are
|
|
@@ -557,7 +556,7 @@ export declare const FieldOptions_EditionDefault: MessageType<FieldOptions_Editi
|
|
|
557
556
|
*
|
|
558
557
|
* @generated from message google.protobuf.FeatureSet
|
|
559
558
|
*/
|
|
560
|
-
export
|
|
559
|
+
export interface FeatureSet {
|
|
561
560
|
/**
|
|
562
561
|
* @generated from field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1;
|
|
563
562
|
*/
|
|
@@ -582,7 +581,7 @@ export type FeatureSet = Message<{
|
|
|
582
581
|
* @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
|
|
583
582
|
*/
|
|
584
583
|
jsonFormat?: FeatureSet_JsonFormat;
|
|
585
|
-
}
|
|
584
|
+
}
|
|
586
585
|
export declare const FeatureSet: MessageType<FeatureSet>;
|
|
587
586
|
/**
|
|
588
587
|
* The name of the uninterpreted option. Each string represents a segment in
|
|
@@ -593,7 +592,7 @@ export declare const FeatureSet: MessageType<FeatureSet>;
|
|
|
593
592
|
*
|
|
594
593
|
* @generated from message google.protobuf.UninterpretedOption.NamePart
|
|
595
594
|
*/
|
|
596
|
-
export
|
|
595
|
+
export interface UninterpretedOption_NamePart {
|
|
597
596
|
/**
|
|
598
597
|
* @generated from field: required string name_part = 1;
|
|
599
598
|
*/
|
|
@@ -602,7 +601,7 @@ export type UninterpretedOption_NamePart = Message<{
|
|
|
602
601
|
* @generated from field: required bool is_extension = 2;
|
|
603
602
|
*/
|
|
604
603
|
isExtension?: boolean;
|
|
605
|
-
}
|
|
604
|
+
}
|
|
606
605
|
export declare const UninterpretedOption_NamePart: MessageType<UninterpretedOption_NamePart>;
|
|
607
606
|
/**
|
|
608
607
|
* A message representing a option the parser does not recognize. This only
|
|
@@ -614,7 +613,7 @@ export declare const UninterpretedOption_NamePart: MessageType<UninterpretedOpti
|
|
|
614
613
|
*
|
|
615
614
|
* @generated from message google.protobuf.UninterpretedOption
|
|
616
615
|
*/
|
|
617
|
-
export
|
|
616
|
+
export interface UninterpretedOption {
|
|
618
617
|
/**
|
|
619
618
|
* @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
|
|
620
619
|
*/
|
|
@@ -646,12 +645,12 @@ export type UninterpretedOption = Message<{
|
|
|
646
645
|
* @generated from field: optional string aggregate_value = 8;
|
|
647
646
|
*/
|
|
648
647
|
aggregateValue?: string;
|
|
649
|
-
}
|
|
648
|
+
}
|
|
650
649
|
export declare const UninterpretedOption: MessageType<UninterpretedOption>;
|
|
651
650
|
/**
|
|
652
651
|
* @generated from message google.protobuf.FieldOptions
|
|
653
652
|
*/
|
|
654
|
-
export
|
|
653
|
+
export interface FieldOptions {
|
|
655
654
|
/**
|
|
656
655
|
* The ctype option instructs the C++ code generator to use a different
|
|
657
656
|
* representation of the field than it normally would. See the specific
|
|
@@ -772,14 +771,14 @@ export type FieldOptions = Message<{
|
|
|
772
771
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
773
772
|
*/
|
|
774
773
|
uninterpretedOption?: UninterpretedOption[];
|
|
775
|
-
}
|
|
774
|
+
}
|
|
776
775
|
export declare const FieldOptions: MessageType<FieldOptions>;
|
|
777
776
|
/**
|
|
778
777
|
* Describes a field within a message.
|
|
779
778
|
*
|
|
780
779
|
* @generated from message google.protobuf.FieldDescriptorProto
|
|
781
780
|
*/
|
|
782
|
-
export
|
|
781
|
+
export interface FieldDescriptorProto {
|
|
783
782
|
/**
|
|
784
783
|
* @generated from field: optional string name = 1;
|
|
785
784
|
*/
|
|
@@ -871,12 +870,12 @@ export type FieldDescriptorProto = Message<{
|
|
|
871
870
|
* @generated from field: optional bool proto3_optional = 17;
|
|
872
871
|
*/
|
|
873
872
|
proto3Optional?: boolean;
|
|
874
|
-
}
|
|
873
|
+
}
|
|
875
874
|
export declare const FieldDescriptorProto: MessageType<FieldDescriptorProto>;
|
|
876
875
|
/**
|
|
877
876
|
* @generated from message google.protobuf.EnumValueOptions
|
|
878
877
|
*/
|
|
879
|
-
export
|
|
878
|
+
export interface EnumValueOptions {
|
|
880
879
|
/**
|
|
881
880
|
* Is this enum value deprecated?
|
|
882
881
|
* Depending on the target platform, this can emit Deprecated annotations
|
|
@@ -906,14 +905,14 @@ export type EnumValueOptions = Message<{
|
|
|
906
905
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
907
906
|
*/
|
|
908
907
|
uninterpretedOption?: UninterpretedOption[];
|
|
909
|
-
}
|
|
908
|
+
}
|
|
910
909
|
export declare const EnumValueOptions: MessageType<EnumValueOptions>;
|
|
911
910
|
/**
|
|
912
911
|
* Describes a value within an enum.
|
|
913
912
|
*
|
|
914
913
|
* @generated from message google.protobuf.EnumValueDescriptorProto
|
|
915
914
|
*/
|
|
916
|
-
export
|
|
915
|
+
export interface EnumValueDescriptorProto {
|
|
917
916
|
/**
|
|
918
917
|
* @generated from field: optional string name = 1;
|
|
919
918
|
*/
|
|
@@ -926,12 +925,12 @@ export type EnumValueDescriptorProto = Message<{
|
|
|
926
925
|
* @generated from field: optional google.protobuf.EnumValueOptions options = 3;
|
|
927
926
|
*/
|
|
928
927
|
options?: EnumValueOptions;
|
|
929
|
-
}
|
|
928
|
+
}
|
|
930
929
|
export declare const EnumValueDescriptorProto: MessageType<EnumValueDescriptorProto>;
|
|
931
930
|
/**
|
|
932
931
|
* @generated from message google.protobuf.EnumOptions
|
|
933
932
|
*/
|
|
934
|
-
export
|
|
933
|
+
export interface EnumOptions {
|
|
935
934
|
/**
|
|
936
935
|
* Set this option to true to allow mapping different tag names to the same
|
|
937
936
|
* value.
|
|
@@ -972,7 +971,7 @@ export type EnumOptions = Message<{
|
|
|
972
971
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
973
972
|
*/
|
|
974
973
|
uninterpretedOption?: UninterpretedOption[];
|
|
975
|
-
}
|
|
974
|
+
}
|
|
976
975
|
export declare const EnumOptions: MessageType<EnumOptions>;
|
|
977
976
|
/**
|
|
978
977
|
* Range of reserved numeric values. Reserved values may not be used by
|
|
@@ -984,7 +983,7 @@ export declare const EnumOptions: MessageType<EnumOptions>;
|
|
|
984
983
|
*
|
|
985
984
|
* @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
|
|
986
985
|
*/
|
|
987
|
-
export
|
|
986
|
+
export interface EnumDescriptorProto_EnumReservedRange {
|
|
988
987
|
/**
|
|
989
988
|
* Inclusive.
|
|
990
989
|
*
|
|
@@ -997,14 +996,14 @@ export type EnumDescriptorProto_EnumReservedRange = Message<{
|
|
|
997
996
|
* @generated from field: optional int32 end = 2;
|
|
998
997
|
*/
|
|
999
998
|
end?: number;
|
|
1000
|
-
}
|
|
999
|
+
}
|
|
1001
1000
|
export declare const EnumDescriptorProto_EnumReservedRange: MessageType<EnumDescriptorProto_EnumReservedRange>;
|
|
1002
1001
|
/**
|
|
1003
1002
|
* Describes an enum type.
|
|
1004
1003
|
*
|
|
1005
1004
|
* @generated from message google.protobuf.EnumDescriptorProto
|
|
1006
1005
|
*/
|
|
1007
|
-
export
|
|
1006
|
+
export interface EnumDescriptorProto {
|
|
1008
1007
|
/**
|
|
1009
1008
|
* @generated from field: optional string name = 1;
|
|
1010
1009
|
*/
|
|
@@ -1032,12 +1031,12 @@ export type EnumDescriptorProto = Message<{
|
|
|
1032
1031
|
* @generated from field: repeated string reserved_name = 5;
|
|
1033
1032
|
*/
|
|
1034
1033
|
reservedName?: string[];
|
|
1035
|
-
}
|
|
1034
|
+
}
|
|
1036
1035
|
export declare const EnumDescriptorProto: MessageType<EnumDescriptorProto>;
|
|
1037
1036
|
/**
|
|
1038
1037
|
* @generated from message google.protobuf.ExtensionRangeOptions.Declaration
|
|
1039
1038
|
*/
|
|
1040
|
-
export
|
|
1039
|
+
export interface ExtensionRangeOptions_Declaration {
|
|
1041
1040
|
/**
|
|
1042
1041
|
* The extension number declared within the extension range.
|
|
1043
1042
|
*
|
|
@@ -1074,12 +1073,12 @@ export type ExtensionRangeOptions_Declaration = Message<{
|
|
|
1074
1073
|
* @generated from field: optional bool repeated = 6;
|
|
1075
1074
|
*/
|
|
1076
1075
|
repeated?: boolean;
|
|
1077
|
-
}
|
|
1076
|
+
}
|
|
1078
1077
|
export declare const ExtensionRangeOptions_Declaration: MessageType<ExtensionRangeOptions_Declaration>;
|
|
1079
1078
|
/**
|
|
1080
1079
|
* @generated from message google.protobuf.ExtensionRangeOptions
|
|
1081
1080
|
*/
|
|
1082
|
-
export
|
|
1081
|
+
export interface ExtensionRangeOptions {
|
|
1083
1082
|
/**
|
|
1084
1083
|
* The parser stores options it doesn't recognize here. See above.
|
|
1085
1084
|
*
|
|
@@ -1108,12 +1107,12 @@ export type ExtensionRangeOptions = Message<{
|
|
|
1108
1107
|
* @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED];
|
|
1109
1108
|
*/
|
|
1110
1109
|
verification?: ExtensionRangeOptions_VerificationState;
|
|
1111
|
-
}
|
|
1110
|
+
}
|
|
1112
1111
|
export declare const ExtensionRangeOptions: MessageType<ExtensionRangeOptions>;
|
|
1113
1112
|
/**
|
|
1114
1113
|
* @generated from message google.protobuf.DescriptorProto.ExtensionRange
|
|
1115
1114
|
*/
|
|
1116
|
-
export
|
|
1115
|
+
export interface DescriptorProto_ExtensionRange {
|
|
1117
1116
|
/**
|
|
1118
1117
|
* Inclusive.
|
|
1119
1118
|
*
|
|
@@ -1130,12 +1129,12 @@ export type DescriptorProto_ExtensionRange = Message<{
|
|
|
1130
1129
|
* @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3;
|
|
1131
1130
|
*/
|
|
1132
1131
|
options?: ExtensionRangeOptions;
|
|
1133
|
-
}
|
|
1132
|
+
}
|
|
1134
1133
|
export declare const DescriptorProto_ExtensionRange: MessageType<DescriptorProto_ExtensionRange>;
|
|
1135
1134
|
/**
|
|
1136
1135
|
* @generated from message google.protobuf.OneofOptions
|
|
1137
1136
|
*/
|
|
1138
|
-
export
|
|
1137
|
+
export interface OneofOptions {
|
|
1139
1138
|
/**
|
|
1140
1139
|
* Any features defined in the specific edition.
|
|
1141
1140
|
*
|
|
@@ -1148,14 +1147,14 @@ export type OneofOptions = Message<{
|
|
|
1148
1147
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1149
1148
|
*/
|
|
1150
1149
|
uninterpretedOption?: UninterpretedOption[];
|
|
1151
|
-
}
|
|
1150
|
+
}
|
|
1152
1151
|
export declare const OneofOptions: MessageType<OneofOptions>;
|
|
1153
1152
|
/**
|
|
1154
1153
|
* Describes a oneof.
|
|
1155
1154
|
*
|
|
1156
1155
|
* @generated from message google.protobuf.OneofDescriptorProto
|
|
1157
1156
|
*/
|
|
1158
|
-
export
|
|
1157
|
+
export interface OneofDescriptorProto {
|
|
1159
1158
|
/**
|
|
1160
1159
|
* @generated from field: optional string name = 1;
|
|
1161
1160
|
*/
|
|
@@ -1164,12 +1163,12 @@ export type OneofDescriptorProto = Message<{
|
|
|
1164
1163
|
* @generated from field: optional google.protobuf.OneofOptions options = 2;
|
|
1165
1164
|
*/
|
|
1166
1165
|
options?: OneofOptions;
|
|
1167
|
-
}
|
|
1166
|
+
}
|
|
1168
1167
|
export declare const OneofDescriptorProto: MessageType<OneofDescriptorProto>;
|
|
1169
1168
|
/**
|
|
1170
1169
|
* @generated from message google.protobuf.MessageOptions
|
|
1171
1170
|
*/
|
|
1172
|
-
export
|
|
1171
|
+
export interface MessageOptions {
|
|
1173
1172
|
/**
|
|
1174
1173
|
* Set true to use the old proto1 MessageSet wire format for extensions.
|
|
1175
1174
|
* This is provided for backwards-compatibility with the MessageSet wire
|
|
@@ -1264,7 +1263,7 @@ export type MessageOptions = Message<{
|
|
|
1264
1263
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1265
1264
|
*/
|
|
1266
1265
|
uninterpretedOption?: UninterpretedOption[];
|
|
1267
|
-
}
|
|
1266
|
+
}
|
|
1268
1267
|
export declare const MessageOptions: MessageType<MessageOptions>;
|
|
1269
1268
|
/**
|
|
1270
1269
|
* Range of reserved tag numbers. Reserved tag numbers may not be used by
|
|
@@ -1273,7 +1272,7 @@ export declare const MessageOptions: MessageType<MessageOptions>;
|
|
|
1273
1272
|
*
|
|
1274
1273
|
* @generated from message google.protobuf.DescriptorProto.ReservedRange
|
|
1275
1274
|
*/
|
|
1276
|
-
export
|
|
1275
|
+
export interface DescriptorProto_ReservedRange {
|
|
1277
1276
|
/**
|
|
1278
1277
|
* Inclusive.
|
|
1279
1278
|
*
|
|
@@ -1286,14 +1285,14 @@ export type DescriptorProto_ReservedRange = Message<{
|
|
|
1286
1285
|
* @generated from field: optional int32 end = 2;
|
|
1287
1286
|
*/
|
|
1288
1287
|
end?: number;
|
|
1289
|
-
}
|
|
1288
|
+
}
|
|
1290
1289
|
export declare const DescriptorProto_ReservedRange: MessageType<DescriptorProto_ReservedRange>;
|
|
1291
1290
|
/**
|
|
1292
1291
|
* Describes a message type.
|
|
1293
1292
|
*
|
|
1294
1293
|
* @generated from message google.protobuf.DescriptorProto
|
|
1295
1294
|
*/
|
|
1296
|
-
export
|
|
1295
|
+
export interface DescriptorProto {
|
|
1297
1296
|
/**
|
|
1298
1297
|
* @generated from field: optional string name = 1;
|
|
1299
1298
|
*/
|
|
@@ -1337,12 +1336,12 @@ export type DescriptorProto = Message<{
|
|
|
1337
1336
|
* @generated from field: repeated string reserved_name = 10;
|
|
1338
1337
|
*/
|
|
1339
1338
|
reservedName?: string[];
|
|
1340
|
-
}
|
|
1339
|
+
}
|
|
1341
1340
|
export declare const DescriptorProto: MessageType<DescriptorProto>;
|
|
1342
1341
|
/**
|
|
1343
1342
|
* @generated from message google.protobuf.MethodOptions
|
|
1344
1343
|
*/
|
|
1345
|
-
export
|
|
1344
|
+
export interface MethodOptions {
|
|
1346
1345
|
/**
|
|
1347
1346
|
* Is this method deprecated?
|
|
1348
1347
|
* Depending on the target platform, this can emit Deprecated annotations
|
|
@@ -1368,14 +1367,14 @@ export type MethodOptions = Message<{
|
|
|
1368
1367
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1369
1368
|
*/
|
|
1370
1369
|
uninterpretedOption?: UninterpretedOption[];
|
|
1371
|
-
}
|
|
1370
|
+
}
|
|
1372
1371
|
export declare const MethodOptions: MessageType<MethodOptions>;
|
|
1373
1372
|
/**
|
|
1374
1373
|
* Describes a method of a service.
|
|
1375
1374
|
*
|
|
1376
1375
|
* @generated from message google.protobuf.MethodDescriptorProto
|
|
1377
1376
|
*/
|
|
1378
|
-
export
|
|
1377
|
+
export interface MethodDescriptorProto {
|
|
1379
1378
|
/**
|
|
1380
1379
|
* @generated from field: optional string name = 1;
|
|
1381
1380
|
*/
|
|
@@ -1407,12 +1406,12 @@ export type MethodDescriptorProto = Message<{
|
|
|
1407
1406
|
* @generated from field: optional bool server_streaming = 6 [default = false];
|
|
1408
1407
|
*/
|
|
1409
1408
|
serverStreaming?: boolean;
|
|
1410
|
-
}
|
|
1409
|
+
}
|
|
1411
1410
|
export declare const MethodDescriptorProto: MessageType<MethodDescriptorProto>;
|
|
1412
1411
|
/**
|
|
1413
1412
|
* @generated from message google.protobuf.ServiceOptions
|
|
1414
1413
|
*/
|
|
1415
|
-
export
|
|
1414
|
+
export interface ServiceOptions {
|
|
1416
1415
|
/**
|
|
1417
1416
|
* Any features defined in the specific edition.
|
|
1418
1417
|
*
|
|
@@ -1434,14 +1433,14 @@ export type ServiceOptions = Message<{
|
|
|
1434
1433
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1435
1434
|
*/
|
|
1436
1435
|
uninterpretedOption?: UninterpretedOption[];
|
|
1437
|
-
}
|
|
1436
|
+
}
|
|
1438
1437
|
export declare const ServiceOptions: MessageType<ServiceOptions>;
|
|
1439
1438
|
/**
|
|
1440
1439
|
* Describes a service.
|
|
1441
1440
|
*
|
|
1442
1441
|
* @generated from message google.protobuf.ServiceDescriptorProto
|
|
1443
1442
|
*/
|
|
1444
|
-
export
|
|
1443
|
+
export interface ServiceDescriptorProto {
|
|
1445
1444
|
/**
|
|
1446
1445
|
* @generated from field: optional string name = 1;
|
|
1447
1446
|
*/
|
|
@@ -1454,12 +1453,12 @@ export type ServiceDescriptorProto = Message<{
|
|
|
1454
1453
|
* @generated from field: optional google.protobuf.ServiceOptions options = 3;
|
|
1455
1454
|
*/
|
|
1456
1455
|
options?: ServiceOptions;
|
|
1457
|
-
}
|
|
1456
|
+
}
|
|
1458
1457
|
export declare const ServiceDescriptorProto: MessageType<ServiceDescriptorProto>;
|
|
1459
1458
|
/**
|
|
1460
1459
|
* @generated from message google.protobuf.FileOptions
|
|
1461
1460
|
*/
|
|
1462
|
-
export
|
|
1461
|
+
export interface FileOptions {
|
|
1463
1462
|
/**
|
|
1464
1463
|
* Sets the Java package where classes generated from this .proto will be
|
|
1465
1464
|
* placed. By default, the proto package is used, but this is often
|
|
@@ -1627,12 +1626,12 @@ export type FileOptions = Message<{
|
|
|
1627
1626
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1628
1627
|
*/
|
|
1629
1628
|
uninterpretedOption?: UninterpretedOption[];
|
|
1630
|
-
}
|
|
1629
|
+
}
|
|
1631
1630
|
export declare const FileOptions: MessageType<FileOptions>;
|
|
1632
1631
|
/**
|
|
1633
1632
|
* @generated from message google.protobuf.SourceCodeInfo.Location
|
|
1634
1633
|
*/
|
|
1635
|
-
export
|
|
1634
|
+
export interface SourceCodeInfo_Location {
|
|
1636
1635
|
/**
|
|
1637
1636
|
* Identifies which part of the FileDescriptorProto was defined at this
|
|
1638
1637
|
* location.
|
|
@@ -1731,7 +1730,7 @@ export type SourceCodeInfo_Location = Message<{
|
|
|
1731
1730
|
* @generated from field: repeated string leading_detached_comments = 6;
|
|
1732
1731
|
*/
|
|
1733
1732
|
leadingDetachedComments?: string[];
|
|
1734
|
-
}
|
|
1733
|
+
}
|
|
1735
1734
|
export declare const SourceCodeInfo_Location: MessageType<SourceCodeInfo_Location>;
|
|
1736
1735
|
/**
|
|
1737
1736
|
* Encapsulates information about the original source file from which a
|
|
@@ -1739,7 +1738,7 @@ export declare const SourceCodeInfo_Location: MessageType<SourceCodeInfo_Locatio
|
|
|
1739
1738
|
*
|
|
1740
1739
|
* @generated from message google.protobuf.SourceCodeInfo
|
|
1741
1740
|
*/
|
|
1742
|
-
export
|
|
1741
|
+
export interface SourceCodeInfo {
|
|
1743
1742
|
/**
|
|
1744
1743
|
* A Location identifies a piece of source code in a .proto file which
|
|
1745
1744
|
* corresponds to a particular definition. This information is intended
|
|
@@ -1788,14 +1787,14 @@ export type SourceCodeInfo = Message<{
|
|
|
1788
1787
|
* @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
|
|
1789
1788
|
*/
|
|
1790
1789
|
location?: SourceCodeInfo_Location[];
|
|
1791
|
-
}
|
|
1790
|
+
}
|
|
1792
1791
|
export declare const SourceCodeInfo: MessageType<SourceCodeInfo>;
|
|
1793
1792
|
/**
|
|
1794
1793
|
* Describes a complete .proto file.
|
|
1795
1794
|
*
|
|
1796
1795
|
* @generated from message google.protobuf.FileDescriptorProto
|
|
1797
1796
|
*/
|
|
1798
|
-
export
|
|
1797
|
+
export interface FileDescriptorProto {
|
|
1799
1798
|
/**
|
|
1800
1799
|
* file name, relative to root of source tree
|
|
1801
1800
|
*
|
|
@@ -1873,7 +1872,7 @@ export type FileDescriptorProto = Message<{
|
|
|
1873
1872
|
* @generated from field: optional google.protobuf.Edition edition = 14;
|
|
1874
1873
|
*/
|
|
1875
1874
|
edition?: Edition;
|
|
1876
|
-
}
|
|
1875
|
+
}
|
|
1877
1876
|
export declare const FileDescriptorProto: MessageType<FileDescriptorProto>;
|
|
1878
1877
|
/**
|
|
1879
1878
|
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
@@ -1881,12 +1880,12 @@ export declare const FileDescriptorProto: MessageType<FileDescriptorProto>;
|
|
|
1881
1880
|
*
|
|
1882
1881
|
* @generated from message google.protobuf.FileDescriptorSet
|
|
1883
1882
|
*/
|
|
1884
|
-
export
|
|
1883
|
+
export interface FileDescriptorSet {
|
|
1885
1884
|
/**
|
|
1886
1885
|
* @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
|
|
1887
1886
|
*/
|
|
1888
1887
|
file?: FileDescriptorProto[];
|
|
1889
|
-
}
|
|
1888
|
+
}
|
|
1890
1889
|
export declare const FileDescriptorSet: MessageType<FileDescriptorSet>;
|
|
1891
1890
|
/**
|
|
1892
1891
|
* A map from every known edition with a unique set of defaults to its
|
|
@@ -1896,7 +1895,7 @@ export declare const FileDescriptorSet: MessageType<FileDescriptorSet>;
|
|
|
1896
1895
|
*
|
|
1897
1896
|
* @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
1898
1897
|
*/
|
|
1899
|
-
export
|
|
1898
|
+
export interface FeatureSetDefaults_FeatureSetEditionDefault {
|
|
1900
1899
|
/**
|
|
1901
1900
|
* @generated from field: optional google.protobuf.Edition edition = 3;
|
|
1902
1901
|
*/
|
|
@@ -1905,7 +1904,7 @@ export type FeatureSetDefaults_FeatureSetEditionDefault = Message<{
|
|
|
1905
1904
|
* @generated from field: optional google.protobuf.FeatureSet features = 2;
|
|
1906
1905
|
*/
|
|
1907
1906
|
features?: FeatureSet;
|
|
1908
|
-
}
|
|
1907
|
+
}
|
|
1909
1908
|
export declare const FeatureSetDefaults_FeatureSetEditionDefault: MessageType<FeatureSetDefaults_FeatureSetEditionDefault>;
|
|
1910
1909
|
/**
|
|
1911
1910
|
* A compiled specification for the defaults of a set of features. These
|
|
@@ -1915,7 +1914,7 @@ export declare const FeatureSetDefaults_FeatureSetEditionDefault: MessageType<Fe
|
|
|
1915
1914
|
*
|
|
1916
1915
|
* @generated from message google.protobuf.FeatureSetDefaults
|
|
1917
1916
|
*/
|
|
1918
|
-
export
|
|
1917
|
+
export interface FeatureSetDefaults {
|
|
1919
1918
|
/**
|
|
1920
1919
|
* @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
|
|
1921
1920
|
*/
|
|
@@ -1934,12 +1933,12 @@ export type FeatureSetDefaults = Message<{
|
|
|
1934
1933
|
* @generated from field: optional google.protobuf.Edition maximum_edition = 5;
|
|
1935
1934
|
*/
|
|
1936
1935
|
maximumEdition?: Edition;
|
|
1937
|
-
}
|
|
1936
|
+
}
|
|
1938
1937
|
export declare const FeatureSetDefaults: MessageType<FeatureSetDefaults>;
|
|
1939
1938
|
/**
|
|
1940
1939
|
* @generated from message google.protobuf.GeneratedCodeInfo.Annotation
|
|
1941
1940
|
*/
|
|
1942
|
-
export
|
|
1941
|
+
export interface GeneratedCodeInfo_Annotation {
|
|
1943
1942
|
/**
|
|
1944
1943
|
* Identifies the element in the original source .proto file. This field
|
|
1945
1944
|
* is formatted the same as SourceCodeInfo.Location.path.
|
|
@@ -1972,7 +1971,7 @@ export type GeneratedCodeInfo_Annotation = Message<{
|
|
|
1972
1971
|
* @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
|
|
1973
1972
|
*/
|
|
1974
1973
|
semantic?: GeneratedCodeInfo_Annotation_Semantic;
|
|
1975
|
-
}
|
|
1974
|
+
}
|
|
1976
1975
|
export declare const GeneratedCodeInfo_Annotation: MessageType<GeneratedCodeInfo_Annotation>;
|
|
1977
1976
|
/**
|
|
1978
1977
|
* Describes the relationship between generated code and its original source
|
|
@@ -1981,7 +1980,7 @@ export declare const GeneratedCodeInfo_Annotation: MessageType<GeneratedCodeInfo
|
|
|
1981
1980
|
*
|
|
1982
1981
|
* @generated from message google.protobuf.GeneratedCodeInfo
|
|
1983
1982
|
*/
|
|
1984
|
-
export
|
|
1983
|
+
export interface GeneratedCodeInfo {
|
|
1985
1984
|
/**
|
|
1986
1985
|
* An Annotation connects some span of text in generated code to an element
|
|
1987
1986
|
* of its generating .proto file.
|
|
@@ -1989,5 +1988,5 @@ export type GeneratedCodeInfo = Message<{
|
|
|
1989
1988
|
* @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
|
|
1990
1989
|
*/
|
|
1991
1990
|
annotation?: GeneratedCodeInfo_Annotation[];
|
|
1992
|
-
}
|
|
1991
|
+
}
|
|
1993
1992
|
export declare const GeneratedCodeInfo: MessageType<GeneratedCodeInfo>;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
28
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
29
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
import { createEnumType, createMessageType, ScalarType
|
|
30
|
+
import { createEnumType, createMessageType, ScalarType } from "../../index.js";
|
|
31
31
|
export const protobufPackage = "google.protobuf";
|
|
32
32
|
/**
|
|
33
33
|
* The full set of known editions.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { JsonReadOptions, JsonValue, MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
2
|
export declare const protobufPackage = "google.protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* A Duration represents a signed, fixed-length span of time represented
|
|
@@ -65,7 +64,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
65
64
|
*
|
|
66
65
|
* @generated from message google.protobuf.Duration
|
|
67
66
|
*/
|
|
68
|
-
export
|
|
67
|
+
export interface Duration {
|
|
69
68
|
/**
|
|
70
69
|
* Signed seconds of the span of time. Must be from -315,576,000,000
|
|
71
70
|
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
@@ -85,7 +84,7 @@ export type Duration = Message<{
|
|
|
85
84
|
* @generated from field: int32 nanos = 2;
|
|
86
85
|
*/
|
|
87
86
|
nanos?: number;
|
|
88
|
-
}
|
|
87
|
+
}
|
|
89
88
|
declare const Duration_Wkt: {
|
|
90
89
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): Duration;
|
|
91
90
|
toJson(msg: Duration): JsonValue;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
2
|
export declare const protobufPackage = "google.protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* A generic empty message that you can re-use to avoid defining duplicated
|
|
@@ -13,5 +12,6 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
13
12
|
*
|
|
14
13
|
* @generated from message google.protobuf.Empty
|
|
15
14
|
*/
|
|
16
|
-
export
|
|
15
|
+
export interface Empty {
|
|
16
|
+
}
|
|
17
17
|
export declare const Empty: MessageType<Empty>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
2
|
export declare const protobufPackage = "google.protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* `SourceContext` represents information about the source of a
|
|
@@ -7,7 +6,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
7
6
|
*
|
|
8
7
|
* @generated from message google.protobuf.SourceContext
|
|
9
8
|
*/
|
|
10
|
-
export
|
|
9
|
+
export interface SourceContext {
|
|
11
10
|
/**
|
|
12
11
|
* The path-qualified name of the .proto file that contained the associated
|
|
13
12
|
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
|
@@ -15,5 +14,5 @@ export type SourceContext = Message<{
|
|
|
15
14
|
* @generated from field: string file_name = 1;
|
|
16
15
|
*/
|
|
17
16
|
fileName?: string;
|
|
18
|
-
}
|
|
17
|
+
}
|
|
19
18
|
export declare const SourceContext: MessageType<SourceContext>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { JsonReadOptions, JsonValue, JsonWriteOptions, MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
2
|
export declare const protobufPackage = "google.protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
@@ -25,14 +24,14 @@ export declare const NullValue_Enum: import("../../enum.js").EnumType;
|
|
|
25
24
|
*
|
|
26
25
|
* @generated from message google.protobuf.ListValue
|
|
27
26
|
*/
|
|
28
|
-
export
|
|
27
|
+
export interface ListValue {
|
|
29
28
|
/**
|
|
30
29
|
* Repeated field of dynamically typed values.
|
|
31
30
|
*
|
|
32
31
|
* @generated from field: repeated google.protobuf.Value values = 1;
|
|
33
32
|
*/
|
|
34
33
|
values?: Value[];
|
|
35
|
-
}
|
|
34
|
+
}
|
|
36
35
|
declare const ListValue_Wkt: {
|
|
37
36
|
toJson(msg: ListValue, options?: Partial<JsonWriteOptions>): JsonValue;
|
|
38
37
|
fromJson(json: JsonValue | null | undefined, options?: Partial<JsonReadOptions>): ListValue;
|
|
@@ -48,7 +47,7 @@ export declare const ListValue: MessageType<ListValue> & typeof ListValue_Wkt;
|
|
|
48
47
|
*
|
|
49
48
|
* @generated from message google.protobuf.Value
|
|
50
49
|
*/
|
|
51
|
-
export
|
|
50
|
+
export interface Value {
|
|
52
51
|
/**
|
|
53
52
|
* The kind of value.
|
|
54
53
|
*
|
|
@@ -106,7 +105,7 @@ export type Value = Message<{
|
|
|
106
105
|
value: ListValue;
|
|
107
106
|
case: "listValue";
|
|
108
107
|
};
|
|
109
|
-
}
|
|
108
|
+
}
|
|
110
109
|
declare const Value_Wkt: {
|
|
111
110
|
toJson(msg: Value, options?: Partial<JsonWriteOptions>): JsonValue;
|
|
112
111
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): Value;
|
|
@@ -124,7 +123,7 @@ export declare const Value: MessageType<Value> & typeof Value_Wkt;
|
|
|
124
123
|
*
|
|
125
124
|
* @generated from message google.protobuf.Struct
|
|
126
125
|
*/
|
|
127
|
-
export
|
|
126
|
+
export interface Struct {
|
|
128
127
|
/**
|
|
129
128
|
* Unordered map of dynamically typed values.
|
|
130
129
|
*
|
|
@@ -133,7 +132,7 @@ export type Struct = Message<{
|
|
|
133
132
|
fields?: {
|
|
134
133
|
[key: string]: Value;
|
|
135
134
|
};
|
|
136
|
-
}
|
|
135
|
+
}
|
|
137
136
|
declare const Struct_Wkt: {
|
|
138
137
|
toJson(msg: Struct, options?: Partial<JsonWriteOptions>): JsonValue;
|
|
139
138
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): Struct;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { JsonValue, MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
2
|
export declare const protobufPackage = "google.protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* A Timestamp represents a point in time independent of any time zone or local
|
|
@@ -96,7 +95,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
96
95
|
*
|
|
97
96
|
* @generated from message google.protobuf.Timestamp
|
|
98
97
|
*/
|
|
99
|
-
export
|
|
98
|
+
export interface Timestamp {
|
|
100
99
|
/**
|
|
101
100
|
* Represents seconds of UTC time since Unix epoch
|
|
102
101
|
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
@@ -114,7 +113,7 @@ export type Timestamp = Message<{
|
|
|
114
113
|
* @generated from field: int32 nanos = 2;
|
|
115
114
|
*/
|
|
116
115
|
nanos?: number;
|
|
117
|
-
}
|
|
116
|
+
}
|
|
118
117
|
declare const Timestamp_Wkt: {
|
|
119
118
|
fromJson(json: JsonValue): Timestamp;
|
|
120
119
|
toJson(msg: Timestamp): JsonValue;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
28
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
29
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
import { createMessageType, protoInt64, ScalarType
|
|
30
|
+
import { createMessageType, protoInt64, ScalarType } from "../../index.js";
|
|
31
31
|
export const protobufPackage = "google.protobuf";
|
|
32
32
|
// Timestamp_Wkt contains the well-known-type overrides for Timestamp.
|
|
33
33
|
const Timestamp_Wkt = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
2
|
import { Any } from "./any.pb.js";
|
|
4
3
|
import { SourceContext } from "./source_context.pb.js";
|
|
5
4
|
export declare const protobufPackage = "google.protobuf";
|
|
@@ -189,7 +188,7 @@ export declare const Field_Cardinality_Enum: import("../../enum.js").EnumType;
|
|
|
189
188
|
*
|
|
190
189
|
* @generated from message google.protobuf.Option
|
|
191
190
|
*/
|
|
192
|
-
export
|
|
191
|
+
export interface Option {
|
|
193
192
|
/**
|
|
194
193
|
* The option's name. For protobuf built-in options (options defined in
|
|
195
194
|
* descriptor.proto), this is the short name. For example, `"map_entry"`.
|
|
@@ -208,14 +207,14 @@ export type Option = Message<{
|
|
|
208
207
|
* @generated from field: google.protobuf.Any value = 2;
|
|
209
208
|
*/
|
|
210
209
|
value?: Any;
|
|
211
|
-
}
|
|
210
|
+
}
|
|
212
211
|
export declare const Option: MessageType<Option>;
|
|
213
212
|
/**
|
|
214
213
|
* A single field of a message type.
|
|
215
214
|
*
|
|
216
215
|
* @generated from message google.protobuf.Field
|
|
217
216
|
*/
|
|
218
|
-
export
|
|
217
|
+
export interface Field {
|
|
219
218
|
/**
|
|
220
219
|
* The field type.
|
|
221
220
|
*
|
|
@@ -278,14 +277,14 @@ export type Field = Message<{
|
|
|
278
277
|
* @generated from field: string default_value = 11;
|
|
279
278
|
*/
|
|
280
279
|
defaultValue?: string;
|
|
281
|
-
}
|
|
280
|
+
}
|
|
282
281
|
export declare const Field: MessageType<Field>;
|
|
283
282
|
/**
|
|
284
283
|
* A protocol buffer message type.
|
|
285
284
|
*
|
|
286
285
|
* @generated from message google.protobuf.Type
|
|
287
286
|
*/
|
|
288
|
-
export
|
|
287
|
+
export interface Type {
|
|
289
288
|
/**
|
|
290
289
|
* The fully qualified message name.
|
|
291
290
|
*
|
|
@@ -328,14 +327,14 @@ export type Type = Message<{
|
|
|
328
327
|
* @generated from field: string edition = 7;
|
|
329
328
|
*/
|
|
330
329
|
edition?: string;
|
|
331
|
-
}
|
|
330
|
+
}
|
|
332
331
|
export declare const Type: MessageType<Type>;
|
|
333
332
|
/**
|
|
334
333
|
* Enum value definition.
|
|
335
334
|
*
|
|
336
335
|
* @generated from message google.protobuf.EnumValue
|
|
337
336
|
*/
|
|
338
|
-
export
|
|
337
|
+
export interface EnumValue {
|
|
339
338
|
/**
|
|
340
339
|
* Enum value name.
|
|
341
340
|
*
|
|
@@ -354,14 +353,14 @@ export type EnumValue = Message<{
|
|
|
354
353
|
* @generated from field: repeated google.protobuf.Option options = 3;
|
|
355
354
|
*/
|
|
356
355
|
options?: Option[];
|
|
357
|
-
}
|
|
356
|
+
}
|
|
358
357
|
export declare const EnumValue: MessageType<EnumValue>;
|
|
359
358
|
/**
|
|
360
359
|
* Enum type definition.
|
|
361
360
|
*
|
|
362
361
|
* @generated from message google.protobuf.Enum
|
|
363
362
|
*/
|
|
364
|
-
export
|
|
363
|
+
export interface Enum {
|
|
365
364
|
/**
|
|
366
365
|
* Enum type name.
|
|
367
366
|
*
|
|
@@ -398,5 +397,5 @@ export type Enum = Message<{
|
|
|
398
397
|
* @generated from field: string edition = 6;
|
|
399
398
|
*/
|
|
400
399
|
edition?: string;
|
|
401
|
-
}
|
|
400
|
+
}
|
|
402
401
|
export declare const Enum: MessageType<Enum>;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
28
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
29
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
import { createEnumType, createMessageType, ScalarType
|
|
30
|
+
import { createEnumType, createMessageType, ScalarType } from "../../index.js";
|
|
31
31
|
import { Any } from "./any.pb.js";
|
|
32
32
|
import { SourceContext } from "./source_context.pb.js";
|
|
33
33
|
export const protobufPackage = "google.protobuf";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { JsonReadOptions, JsonValue, JsonWriteOptions, MessageType } from "../../index.js";
|
|
2
|
-
import { Message } from "../../index.js";
|
|
3
2
|
export declare const protobufPackage = "google.protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* Wrapper message for `double`.
|
|
@@ -10,14 +9,14 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
10
9
|
*
|
|
11
10
|
* @generated from message google.protobuf.DoubleValue
|
|
12
11
|
*/
|
|
13
|
-
export
|
|
12
|
+
export interface DoubleValue {
|
|
14
13
|
/**
|
|
15
14
|
* The double value.
|
|
16
15
|
*
|
|
17
16
|
* @generated from field: double value = 1;
|
|
18
17
|
*/
|
|
19
18
|
value?: number;
|
|
20
|
-
}
|
|
19
|
+
}
|
|
21
20
|
declare const DoubleValue_Wkt: {
|
|
22
21
|
toJson(msg: DoubleValue, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
23
22
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): DoubleValue;
|
|
@@ -32,14 +31,14 @@ export declare const DoubleValue: MessageType<DoubleValue> & typeof DoubleValue_
|
|
|
32
31
|
*
|
|
33
32
|
* @generated from message google.protobuf.FloatValue
|
|
34
33
|
*/
|
|
35
|
-
export
|
|
34
|
+
export interface FloatValue {
|
|
36
35
|
/**
|
|
37
36
|
* The float value.
|
|
38
37
|
*
|
|
39
38
|
* @generated from field: float value = 1;
|
|
40
39
|
*/
|
|
41
40
|
value?: number;
|
|
42
|
-
}
|
|
41
|
+
}
|
|
43
42
|
declare const FloatValue_Wkt: {
|
|
44
43
|
toJson(msg: FloatValue, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
45
44
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): FloatValue;
|
|
@@ -54,14 +53,14 @@ export declare const FloatValue: MessageType<FloatValue> & typeof FloatValue_Wkt
|
|
|
54
53
|
*
|
|
55
54
|
* @generated from message google.protobuf.Int64Value
|
|
56
55
|
*/
|
|
57
|
-
export
|
|
56
|
+
export interface Int64Value {
|
|
58
57
|
/**
|
|
59
58
|
* The int64 value.
|
|
60
59
|
*
|
|
61
60
|
* @generated from field: int64 value = 1;
|
|
62
61
|
*/
|
|
63
62
|
value?: bigint;
|
|
64
|
-
}
|
|
63
|
+
}
|
|
65
64
|
declare const Int64Value_Wkt: {
|
|
66
65
|
toJson(msg: Int64Value, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
67
66
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): Int64Value;
|
|
@@ -76,14 +75,14 @@ export declare const Int64Value: MessageType<Int64Value> & typeof Int64Value_Wkt
|
|
|
76
75
|
*
|
|
77
76
|
* @generated from message google.protobuf.UInt64Value
|
|
78
77
|
*/
|
|
79
|
-
export
|
|
78
|
+
export interface UInt64Value {
|
|
80
79
|
/**
|
|
81
80
|
* The uint64 value.
|
|
82
81
|
*
|
|
83
82
|
* @generated from field: uint64 value = 1;
|
|
84
83
|
*/
|
|
85
84
|
value?: bigint;
|
|
86
|
-
}
|
|
85
|
+
}
|
|
87
86
|
declare const UInt64Value_Wkt: {
|
|
88
87
|
toJson(msg: UInt64Value, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
89
88
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): UInt64Value;
|
|
@@ -98,14 +97,14 @@ export declare const UInt64Value: MessageType<UInt64Value> & typeof UInt64Value_
|
|
|
98
97
|
*
|
|
99
98
|
* @generated from message google.protobuf.Int32Value
|
|
100
99
|
*/
|
|
101
|
-
export
|
|
100
|
+
export interface Int32Value {
|
|
102
101
|
/**
|
|
103
102
|
* The int32 value.
|
|
104
103
|
*
|
|
105
104
|
* @generated from field: int32 value = 1;
|
|
106
105
|
*/
|
|
107
106
|
value?: number;
|
|
108
|
-
}
|
|
107
|
+
}
|
|
109
108
|
declare const Int32Value_Wkt: {
|
|
110
109
|
toJson(msg: Int32Value, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
111
110
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): Int32Value;
|
|
@@ -120,14 +119,14 @@ export declare const Int32Value: MessageType<Int32Value> & typeof Int32Value_Wkt
|
|
|
120
119
|
*
|
|
121
120
|
* @generated from message google.protobuf.UInt32Value
|
|
122
121
|
*/
|
|
123
|
-
export
|
|
122
|
+
export interface UInt32Value {
|
|
124
123
|
/**
|
|
125
124
|
* The uint32 value.
|
|
126
125
|
*
|
|
127
126
|
* @generated from field: uint32 value = 1;
|
|
128
127
|
*/
|
|
129
128
|
value?: number;
|
|
130
|
-
}
|
|
129
|
+
}
|
|
131
130
|
declare const UInt32Value_Wkt: {
|
|
132
131
|
toJson(msg: UInt32Value, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
133
132
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): UInt32Value;
|
|
@@ -142,14 +141,14 @@ export declare const UInt32Value: MessageType<UInt32Value> & typeof UInt32Value_
|
|
|
142
141
|
*
|
|
143
142
|
* @generated from message google.protobuf.BoolValue
|
|
144
143
|
*/
|
|
145
|
-
export
|
|
144
|
+
export interface BoolValue {
|
|
146
145
|
/**
|
|
147
146
|
* The bool value.
|
|
148
147
|
*
|
|
149
148
|
* @generated from field: bool value = 1;
|
|
150
149
|
*/
|
|
151
150
|
value?: boolean;
|
|
152
|
-
}
|
|
151
|
+
}
|
|
153
152
|
declare const BoolValue_Wkt: {
|
|
154
153
|
toJson(msg: BoolValue, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
155
154
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): BoolValue;
|
|
@@ -164,14 +163,14 @@ export declare const BoolValue: MessageType<BoolValue> & typeof BoolValue_Wkt;
|
|
|
164
163
|
*
|
|
165
164
|
* @generated from message google.protobuf.StringValue
|
|
166
165
|
*/
|
|
167
|
-
export
|
|
166
|
+
export interface StringValue {
|
|
168
167
|
/**
|
|
169
168
|
* The string value.
|
|
170
169
|
*
|
|
171
170
|
* @generated from field: string value = 1;
|
|
172
171
|
*/
|
|
173
172
|
value?: string;
|
|
174
|
-
}
|
|
173
|
+
}
|
|
175
174
|
declare const StringValue_Wkt: {
|
|
176
175
|
toJson(msg: StringValue, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
177
176
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): StringValue;
|
|
@@ -186,14 +185,14 @@ export declare const StringValue: MessageType<StringValue> & typeof StringValue_
|
|
|
186
185
|
*
|
|
187
186
|
* @generated from message google.protobuf.BytesValue
|
|
188
187
|
*/
|
|
189
|
-
export
|
|
188
|
+
export interface BytesValue {
|
|
190
189
|
/**
|
|
191
190
|
* The bytes value.
|
|
192
191
|
*
|
|
193
192
|
* @generated from field: bytes value = 1;
|
|
194
193
|
*/
|
|
195
194
|
value?: Uint8Array;
|
|
196
|
-
}
|
|
195
|
+
}
|
|
197
196
|
declare const BytesValue_Wkt: {
|
|
198
197
|
toJson(msg: BytesValue, _options?: Partial<JsonWriteOptions>): JsonValue;
|
|
199
198
|
fromJson(json: JsonValue | null | undefined, _options?: Partial<JsonReadOptions>): BytesValue;
|
|
@@ -111,7 +111,7 @@ function generateMessage(schema, f, message) {
|
|
|
111
111
|
checkSupportedSyntax(message.file);
|
|
112
112
|
const { MessageType: rtMessageType, createMessageType, PartialFieldInfo, } = schema.runtime;
|
|
113
113
|
f.print(f.jsDoc(message));
|
|
114
|
-
f.print(f.exportDecl("
|
|
114
|
+
f.print(f.exportDecl("interface", message), " {");
|
|
115
115
|
for (const field of message.fields) {
|
|
116
116
|
generateField(f, field);
|
|
117
117
|
}
|
|
@@ -119,7 +119,7 @@ function generateMessage(schema, f, message) {
|
|
|
119
119
|
generateOneof(f, oneof);
|
|
120
120
|
}
|
|
121
121
|
f.print();
|
|
122
|
-
f.print("}
|
|
122
|
+
f.print("};");
|
|
123
123
|
f.print();
|
|
124
124
|
// If we need to extend the message type, do that here.
|
|
125
125
|
const reWkt = reifyWkt(message);
|
package/example/example.pb.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type { MessageType, PartialFieldInfo } from "../src/index.js";
|
|
|
6
6
|
import {
|
|
7
7
|
createEnumType,
|
|
8
8
|
createMessageType,
|
|
9
|
-
Message,
|
|
10
9
|
ScalarType,
|
|
11
10
|
Timestamp,
|
|
12
11
|
} from "../src/index.js";
|
|
@@ -47,7 +46,7 @@ export const ExampleEnum_Enum = createEnumType("example.ExampleEnum", [
|
|
|
47
46
|
*
|
|
48
47
|
* @generated from message example.EchoMsg
|
|
49
48
|
*/
|
|
50
|
-
export
|
|
49
|
+
export interface EchoMsg {
|
|
51
50
|
/**
|
|
52
51
|
* @generated from field: string body = 1;
|
|
53
52
|
*/
|
|
@@ -83,7 +82,7 @@ export type EchoMsg = Message<{
|
|
|
83
82
|
value: string;
|
|
84
83
|
case: "exampleString";
|
|
85
84
|
};
|
|
86
|
-
}
|
|
85
|
+
}
|
|
87
86
|
|
|
88
87
|
// EchoMsg contains the message type declaration for EchoMsg.
|
|
89
88
|
export const EchoMsg: MessageType<EchoMsg> = createMessageType({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptre/protobuf-es-lite",
|
|
3
3
|
"description": "Lightweight Protobuf codegen for TypeScript and JavaScript.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.5",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "git+ssh://git@github.com/aperturerobotics/protobuf-es-lite.git"
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"lz-string": "^1.5.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@types/node": "^20.12.
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
78
|
-
"@typescript-eslint/parser": "^7.
|
|
79
|
-
"eslint": "^9.
|
|
76
|
+
"@types/node": "^20.12.13",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
78
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
79
|
+
"eslint": "^9.3.0",
|
|
80
80
|
"eslint-config-prettier": "^9.1.0",
|
|
81
|
-
"eslint-plugin-unused-imports": "^
|
|
82
|
-
"lint-staged": ">=
|
|
81
|
+
"eslint-plugin-unused-imports": "^4.0.0",
|
|
82
|
+
"lint-staged": ">=15.2.5",
|
|
83
83
|
"pre-commit": "^1.2.2",
|
|
84
84
|
"prettier": "^3.2.5",
|
|
85
85
|
"rimraf": "^5.0.7",
|