@bufbuild/protobuf 1.0.0 → 1.1.1
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/cjs/binary-encoding.js +1 -1
- package/dist/cjs/binary-format.js +1 -1
- package/dist/cjs/codegen-info.js +1 -1
- package/dist/cjs/create-descriptor-set.js +1 -1
- package/dist/cjs/create-registry-from-desc.js +4 -5
- package/dist/cjs/create-registry.js +1 -1
- package/dist/cjs/descriptor-set.js +1 -1
- package/dist/cjs/enum.js +1 -1
- package/dist/cjs/field-list.js +1 -1
- package/dist/cjs/field.js +1 -1
- package/dist/cjs/google/protobuf/any_pb.js +5 -2
- package/dist/cjs/google/protobuf/api_pb.js +1 -2
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +1 -1
- package/dist/cjs/google/protobuf/descriptor_pb.js +134 -2
- package/dist/cjs/google/protobuf/duration_pb.js +5 -3
- package/dist/cjs/google/protobuf/empty_pb.js +1 -1
- package/dist/cjs/google/protobuf/field_mask_pb.js +1 -1
- package/dist/cjs/google/protobuf/source_context_pb.js +1 -1
- package/dist/cjs/google/protobuf/struct_pb.js +8 -3
- package/dist/cjs/google/protobuf/timestamp_pb.js +1 -4
- package/dist/cjs/google/protobuf/type_pb.js +2 -2
- package/dist/cjs/google/protobuf/wrappers_pb.js +1 -1
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/json-format.js +1 -1
- package/dist/cjs/message-type.js +1 -1
- package/dist/cjs/message.js +1 -1
- package/dist/cjs/private/assert.js +1 -1
- package/dist/cjs/private/binary-format-common.js +1 -1
- package/dist/cjs/private/binary-format-proto2.js +1 -1
- package/dist/cjs/private/binary-format-proto3.js +1 -1
- package/dist/cjs/private/enum.js +1 -1
- package/dist/cjs/private/field-list.js +1 -1
- package/dist/cjs/private/field-wrapper.js +1 -1
- package/dist/cjs/private/field.js +1 -1
- package/dist/cjs/private/json-format-common.js +1 -1
- package/dist/cjs/private/json-format-proto2.js +1 -1
- package/dist/cjs/private/json-format-proto3.js +1 -1
- package/dist/cjs/private/message-type.js +1 -1
- package/dist/cjs/private/names.js +1 -1
- package/dist/cjs/private/options-map.js +1 -1
- package/dist/cjs/private/proto-runtime.js +1 -1
- package/dist/cjs/private/reify-wkt.js +1 -1
- package/dist/cjs/private/scalars.js +1 -1
- package/dist/cjs/private/util-common.js +5 -5
- package/dist/cjs/private/util.js +1 -1
- package/dist/cjs/proto-base64.js +1 -3
- package/dist/cjs/proto-delimited.js +160 -0
- package/dist/cjs/proto-int64.js +1 -1
- package/dist/cjs/proto2.js +1 -1
- package/dist/cjs/proto3.js +1 -1
- package/dist/cjs/service-type.js +1 -1
- package/dist/cjs/type-registry.js +1 -1
- package/dist/esm/binary-encoding.js +1 -1
- package/dist/esm/binary-format.js +1 -1
- package/dist/esm/codegen-info.js +1 -1
- package/dist/esm/create-descriptor-set.js +1 -1
- package/dist/esm/create-registry-from-desc.js +4 -5
- package/dist/esm/create-registry.js +1 -1
- package/dist/esm/descriptor-set.js +1 -1
- package/dist/esm/enum.js +1 -1
- package/dist/esm/field-list.js +1 -1
- package/dist/esm/field.js +1 -1
- package/dist/esm/google/protobuf/any_pb.js +5 -2
- package/dist/esm/google/protobuf/api_pb.js +1 -2
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +1 -1
- package/dist/esm/google/protobuf/descriptor_pb.js +133 -1
- package/dist/esm/google/protobuf/duration_pb.js +5 -3
- package/dist/esm/google/protobuf/empty_pb.js +1 -1
- package/dist/esm/google/protobuf/field_mask_pb.js +1 -1
- package/dist/esm/google/protobuf/source_context_pb.js +1 -1
- package/dist/esm/google/protobuf/struct_pb.js +8 -3
- package/dist/esm/google/protobuf/timestamp_pb.js +1 -4
- package/dist/esm/google/protobuf/type_pb.js +2 -2
- package/dist/esm/google/protobuf/wrappers_pb.js +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/json-format.js +1 -1
- package/dist/esm/message-type.js +1 -1
- package/dist/esm/message.js +1 -1
- package/dist/esm/private/assert.js +1 -1
- package/dist/esm/private/binary-format-common.js +1 -1
- package/dist/esm/private/binary-format-proto2.js +1 -1
- package/dist/esm/private/binary-format-proto3.js +1 -1
- package/dist/esm/private/enum.js +1 -1
- package/dist/esm/private/field-list.js +1 -1
- package/dist/esm/private/field-wrapper.js +1 -1
- package/dist/esm/private/field.js +1 -1
- package/dist/esm/private/json-format-common.js +1 -1
- package/dist/esm/private/json-format-proto2.js +1 -1
- package/dist/esm/private/json-format-proto3.js +1 -1
- package/dist/esm/private/message-type.js +1 -1
- package/dist/esm/private/names.js +1 -1
- package/dist/esm/private/options-map.js +1 -1
- package/dist/esm/private/proto-runtime.js +1 -1
- package/dist/esm/private/reify-wkt.js +1 -1
- package/dist/esm/private/scalars.js +1 -1
- package/dist/esm/private/util-common.js +5 -5
- package/dist/esm/private/util.js +1 -1
- package/dist/esm/proto-base64.js +1 -3
- package/dist/esm/proto-delimited.js +157 -0
- package/dist/esm/proto-int64.js +1 -1
- package/dist/esm/proto2.js +1 -1
- package/dist/esm/proto3.js +1 -1
- package/dist/esm/service-type.js +1 -1
- package/dist/esm/type-registry.js +1 -1
- package/dist/types/google/protobuf/any_pb.d.ts +6 -2
- package/dist/types/google/protobuf/api_pb.d.ts +4 -4
- package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +5 -4
- package/dist/types/google/protobuf/descriptor_pb.d.ts +188 -39
- package/dist/types/google/protobuf/duration_pb.d.ts +2 -2
- package/dist/types/google/protobuf/empty_pb.d.ts +2 -1
- package/dist/types/google/protobuf/field_mask_pb.d.ts +2 -1
- package/dist/types/google/protobuf/source_context_pb.d.ts +2 -1
- package/dist/types/google/protobuf/struct_pb.d.ts +4 -3
- package/dist/types/google/protobuf/timestamp_pb.d.ts +2 -4
- package/dist/types/google/protobuf/type_pb.d.ts +6 -5
- package/dist/types/google/protobuf/wrappers_pb.d.ts +10 -9
- package/dist/types/index.d.ts +1 -0
- package/dist/types/proto-delimited.d.ts +54 -0
- package/dist/types/service-type.d.ts +0 -2
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
2
|
import { Message } from "../../message.js";
|
|
3
|
+
import { proto2 } from "../../proto2.js";
|
|
3
4
|
import type { FieldList } from "../../field-list.js";
|
|
4
5
|
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
5
6
|
import type { JsonReadOptions, JsonValue } from "../../json-format.js";
|
|
@@ -15,7 +16,7 @@ export declare class FileDescriptorSet extends Message<FileDescriptorSet> {
|
|
|
15
16
|
*/
|
|
16
17
|
file: FileDescriptorProto[];
|
|
17
18
|
constructor(data?: PartialMessage<FileDescriptorSet>);
|
|
18
|
-
static readonly runtime:
|
|
19
|
+
static readonly runtime: typeof proto2;
|
|
19
20
|
static readonly typeName = "google.protobuf.FileDescriptorSet";
|
|
20
21
|
static readonly fields: FieldList;
|
|
21
22
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileDescriptorSet;
|
|
@@ -93,13 +94,21 @@ export declare class FileDescriptorProto extends Message<FileDescriptorProto> {
|
|
|
93
94
|
sourceCodeInfo?: SourceCodeInfo;
|
|
94
95
|
/**
|
|
95
96
|
* The syntax of the proto file.
|
|
96
|
-
* The supported values are "proto2" and "
|
|
97
|
+
* The supported values are "proto2", "proto3", and "editions".
|
|
98
|
+
*
|
|
99
|
+
* If `edition` is present, this value must be "editions".
|
|
97
100
|
*
|
|
98
101
|
* @generated from field: optional string syntax = 12;
|
|
99
102
|
*/
|
|
100
103
|
syntax?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The edition of the proto file, which is an opaque string.
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: optional string edition = 13;
|
|
108
|
+
*/
|
|
109
|
+
edition?: string;
|
|
101
110
|
constructor(data?: PartialMessage<FileDescriptorProto>);
|
|
102
|
-
static readonly runtime:
|
|
111
|
+
static readonly runtime: typeof proto2;
|
|
103
112
|
static readonly typeName = "google.protobuf.FileDescriptorProto";
|
|
104
113
|
static readonly fields: FieldList;
|
|
105
114
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileDescriptorProto;
|
|
@@ -157,7 +166,7 @@ export declare class DescriptorProto extends Message<DescriptorProto> {
|
|
|
157
166
|
*/
|
|
158
167
|
reservedName: string[];
|
|
159
168
|
constructor(data?: PartialMessage<DescriptorProto>);
|
|
160
|
-
static readonly runtime:
|
|
169
|
+
static readonly runtime: typeof proto2;
|
|
161
170
|
static readonly typeName = "google.protobuf.DescriptorProto";
|
|
162
171
|
static readonly fields: FieldList;
|
|
163
172
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto;
|
|
@@ -186,7 +195,7 @@ export declare class DescriptorProto_ExtensionRange extends Message<DescriptorPr
|
|
|
186
195
|
*/
|
|
187
196
|
options?: ExtensionRangeOptions;
|
|
188
197
|
constructor(data?: PartialMessage<DescriptorProto_ExtensionRange>);
|
|
189
|
-
static readonly runtime:
|
|
198
|
+
static readonly runtime: typeof proto2;
|
|
190
199
|
static readonly typeName = "google.protobuf.DescriptorProto.ExtensionRange";
|
|
191
200
|
static readonly fields: FieldList;
|
|
192
201
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto_ExtensionRange;
|
|
@@ -215,7 +224,7 @@ export declare class DescriptorProto_ReservedRange extends Message<DescriptorPro
|
|
|
215
224
|
*/
|
|
216
225
|
end?: number;
|
|
217
226
|
constructor(data?: PartialMessage<DescriptorProto_ReservedRange>);
|
|
218
|
-
static readonly runtime:
|
|
227
|
+
static readonly runtime: typeof proto2;
|
|
219
228
|
static readonly typeName = "google.protobuf.DescriptorProto.ReservedRange";
|
|
220
229
|
static readonly fields: FieldList;
|
|
221
230
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto_ReservedRange;
|
|
@@ -234,7 +243,7 @@ export declare class ExtensionRangeOptions extends Message<ExtensionRangeOptions
|
|
|
234
243
|
*/
|
|
235
244
|
uninterpretedOption: UninterpretedOption[];
|
|
236
245
|
constructor(data?: PartialMessage<ExtensionRangeOptions>);
|
|
237
|
-
static readonly runtime:
|
|
246
|
+
static readonly runtime: typeof proto2;
|
|
238
247
|
static readonly typeName = "google.protobuf.ExtensionRangeOptions";
|
|
239
248
|
static readonly fields: FieldList;
|
|
240
249
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionRangeOptions;
|
|
@@ -340,7 +349,7 @@ export declare class FieldDescriptorProto extends Message<FieldDescriptorProto>
|
|
|
340
349
|
*/
|
|
341
350
|
proto3Optional?: boolean;
|
|
342
351
|
constructor(data?: PartialMessage<FieldDescriptorProto>);
|
|
343
|
-
static readonly runtime:
|
|
352
|
+
static readonly runtime: typeof proto2;
|
|
344
353
|
static readonly typeName = "google.protobuf.FieldDescriptorProto";
|
|
345
354
|
static readonly fields: FieldList;
|
|
346
355
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldDescriptorProto;
|
|
@@ -481,7 +490,7 @@ export declare class OneofDescriptorProto extends Message<OneofDescriptorProto>
|
|
|
481
490
|
*/
|
|
482
491
|
options?: OneofOptions;
|
|
483
492
|
constructor(data?: PartialMessage<OneofDescriptorProto>);
|
|
484
|
-
static readonly runtime:
|
|
493
|
+
static readonly runtime: typeof proto2;
|
|
485
494
|
static readonly typeName = "google.protobuf.OneofDescriptorProto";
|
|
486
495
|
static readonly fields: FieldList;
|
|
487
496
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofDescriptorProto;
|
|
@@ -523,7 +532,7 @@ export declare class EnumDescriptorProto extends Message<EnumDescriptorProto> {
|
|
|
523
532
|
*/
|
|
524
533
|
reservedName: string[];
|
|
525
534
|
constructor(data?: PartialMessage<EnumDescriptorProto>);
|
|
526
|
-
static readonly runtime:
|
|
535
|
+
static readonly runtime: typeof proto2;
|
|
527
536
|
static readonly typeName = "google.protobuf.EnumDescriptorProto";
|
|
528
537
|
static readonly fields: FieldList;
|
|
529
538
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumDescriptorProto;
|
|
@@ -555,7 +564,7 @@ export declare class EnumDescriptorProto_EnumReservedRange extends Message<EnumD
|
|
|
555
564
|
*/
|
|
556
565
|
end?: number;
|
|
557
566
|
constructor(data?: PartialMessage<EnumDescriptorProto_EnumReservedRange>);
|
|
558
|
-
static readonly runtime:
|
|
567
|
+
static readonly runtime: typeof proto2;
|
|
559
568
|
static readonly typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
|
|
560
569
|
static readonly fields: FieldList;
|
|
561
570
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumDescriptorProto_EnumReservedRange;
|
|
@@ -582,7 +591,7 @@ export declare class EnumValueDescriptorProto extends Message<EnumValueDescripto
|
|
|
582
591
|
*/
|
|
583
592
|
options?: EnumValueOptions;
|
|
584
593
|
constructor(data?: PartialMessage<EnumValueDescriptorProto>);
|
|
585
|
-
static readonly runtime:
|
|
594
|
+
static readonly runtime: typeof proto2;
|
|
586
595
|
static readonly typeName = "google.protobuf.EnumValueDescriptorProto";
|
|
587
596
|
static readonly fields: FieldList;
|
|
588
597
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValueDescriptorProto;
|
|
@@ -609,7 +618,7 @@ export declare class ServiceDescriptorProto extends Message<ServiceDescriptorPro
|
|
|
609
618
|
*/
|
|
610
619
|
options?: ServiceOptions;
|
|
611
620
|
constructor(data?: PartialMessage<ServiceDescriptorProto>);
|
|
612
|
-
static readonly runtime:
|
|
621
|
+
static readonly runtime: typeof proto2;
|
|
613
622
|
static readonly typeName = "google.protobuf.ServiceDescriptorProto";
|
|
614
623
|
static readonly fields: FieldList;
|
|
615
624
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceDescriptorProto;
|
|
@@ -655,7 +664,7 @@ export declare class MethodDescriptorProto extends Message<MethodDescriptorProto
|
|
|
655
664
|
*/
|
|
656
665
|
serverStreaming?: boolean;
|
|
657
666
|
constructor(data?: PartialMessage<MethodDescriptorProto>);
|
|
658
|
-
static readonly runtime:
|
|
667
|
+
static readonly runtime: typeof proto2;
|
|
659
668
|
static readonly typeName = "google.protobuf.MethodDescriptorProto";
|
|
660
669
|
static readonly fields: FieldList;
|
|
661
670
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MethodDescriptorProto;
|
|
@@ -833,7 +842,7 @@ export declare class FileOptions extends Message<FileOptions> {
|
|
|
833
842
|
*/
|
|
834
843
|
uninterpretedOption: UninterpretedOption[];
|
|
835
844
|
constructor(data?: PartialMessage<FileOptions>);
|
|
836
|
-
static readonly runtime:
|
|
845
|
+
static readonly runtime: typeof proto2;
|
|
837
846
|
static readonly typeName = "google.protobuf.FileOptions";
|
|
838
847
|
static readonly fields: FieldList;
|
|
839
848
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileOptions;
|
|
@@ -913,6 +922,10 @@ export declare class MessageOptions extends Message<MessageOptions> {
|
|
|
913
922
|
*/
|
|
914
923
|
deprecated?: boolean;
|
|
915
924
|
/**
|
|
925
|
+
* NOTE: Do not set the option in .proto files. Always use the maps syntax
|
|
926
|
+
* instead. The option should only be implicitly set by the proto compiler
|
|
927
|
+
* parser.
|
|
928
|
+
*
|
|
916
929
|
* Whether the message is an automatically generated map entry type for the
|
|
917
930
|
* maps field.
|
|
918
931
|
*
|
|
@@ -931,13 +944,25 @@ export declare class MessageOptions extends Message<MessageOptions> {
|
|
|
931
944
|
* The reflection APIs in such implementations still need to work as
|
|
932
945
|
* if the field is a repeated message field.
|
|
933
946
|
*
|
|
934
|
-
* NOTE: Do not set the option in .proto files. Always use the maps syntax
|
|
935
|
-
* instead. The option should only be implicitly set by the proto compiler
|
|
936
|
-
* parser.
|
|
937
|
-
*
|
|
938
947
|
* @generated from field: optional bool map_entry = 7;
|
|
939
948
|
*/
|
|
940
949
|
mapEntry?: boolean;
|
|
950
|
+
/**
|
|
951
|
+
* Enable the legacy handling of JSON field name conflicts. This lowercases
|
|
952
|
+
* and strips underscored from the fields before comparison in proto3 only.
|
|
953
|
+
* The new behavior takes `json_name` into account and applies to proto2 as
|
|
954
|
+
* well.
|
|
955
|
+
*
|
|
956
|
+
* This should only be used as a temporary measure against broken builds due
|
|
957
|
+
* to the change in behavior for JSON field name conflicts.
|
|
958
|
+
*
|
|
959
|
+
* TODO(b/261750190) This is legacy behavior we plan to remove once downstream
|
|
960
|
+
* teams have had time to migrate.
|
|
961
|
+
*
|
|
962
|
+
* @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
|
|
963
|
+
* @deprecated
|
|
964
|
+
*/
|
|
965
|
+
deprecatedLegacyJsonFieldConflicts?: boolean;
|
|
941
966
|
/**
|
|
942
967
|
* The parser stores options it doesn't recognize here. See above.
|
|
943
968
|
*
|
|
@@ -945,7 +970,7 @@ export declare class MessageOptions extends Message<MessageOptions> {
|
|
|
945
970
|
*/
|
|
946
971
|
uninterpretedOption: UninterpretedOption[];
|
|
947
972
|
constructor(data?: PartialMessage<MessageOptions>);
|
|
948
|
-
static readonly runtime:
|
|
973
|
+
static readonly runtime: typeof proto2;
|
|
949
974
|
static readonly typeName = "google.protobuf.MessageOptions";
|
|
950
975
|
static readonly fields: FieldList;
|
|
951
976
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MessageOptions;
|
|
@@ -1010,7 +1035,6 @@ export declare class FieldOptions extends Message<FieldOptions> {
|
|
|
1010
1035
|
* call from multiple threads concurrently, while non-const methods continue
|
|
1011
1036
|
* to require exclusive access.
|
|
1012
1037
|
*
|
|
1013
|
-
*
|
|
1014
1038
|
* Note that implementations may choose not to check required fields within
|
|
1015
1039
|
* a lazy sub-message. That is, calling IsInitialized() on the outer message
|
|
1016
1040
|
* may return true even if the inner message has missing required fields.
|
|
@@ -1022,11 +1046,8 @@ export declare class FieldOptions extends Message<FieldOptions> {
|
|
|
1022
1046
|
* check its required fields, regardless of whether or not the message has
|
|
1023
1047
|
* been parsed.
|
|
1024
1048
|
*
|
|
1025
|
-
* As of
|
|
1026
|
-
* parsing.
|
|
1027
|
-
* finally parsed upon access.
|
|
1028
|
-
*
|
|
1029
|
-
* TODO(b/211906113): Enable validation on lazy fields.
|
|
1049
|
+
* As of May 2022, lazy verifies the contents of the byte stream during
|
|
1050
|
+
* parsing. An invalid byte stream will cause the overall parsing to fail.
|
|
1030
1051
|
*
|
|
1031
1052
|
* @generated from field: optional bool lazy = 5 [default = false];
|
|
1032
1053
|
*/
|
|
@@ -1054,6 +1075,21 @@ export declare class FieldOptions extends Message<FieldOptions> {
|
|
|
1054
1075
|
* @generated from field: optional bool weak = 10 [default = false];
|
|
1055
1076
|
*/
|
|
1056
1077
|
weak?: boolean;
|
|
1078
|
+
/**
|
|
1079
|
+
* Indicate that the field value should not be printed out when using debug
|
|
1080
|
+
* formats, e.g. when the field contains sensitive credentials.
|
|
1081
|
+
*
|
|
1082
|
+
* @generated from field: optional bool debug_redact = 16 [default = false];
|
|
1083
|
+
*/
|
|
1084
|
+
debugRedact?: boolean;
|
|
1085
|
+
/**
|
|
1086
|
+
* @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17;
|
|
1087
|
+
*/
|
|
1088
|
+
retention?: FieldOptions_OptionRetention;
|
|
1089
|
+
/**
|
|
1090
|
+
* @generated from field: optional google.protobuf.FieldOptions.OptionTargetType target = 18;
|
|
1091
|
+
*/
|
|
1092
|
+
target?: FieldOptions_OptionTargetType;
|
|
1057
1093
|
/**
|
|
1058
1094
|
* The parser stores options it doesn't recognize here. See above.
|
|
1059
1095
|
*
|
|
@@ -1061,7 +1097,7 @@ export declare class FieldOptions extends Message<FieldOptions> {
|
|
|
1061
1097
|
*/
|
|
1062
1098
|
uninterpretedOption: UninterpretedOption[];
|
|
1063
1099
|
constructor(data?: PartialMessage<FieldOptions>);
|
|
1064
|
-
static readonly runtime:
|
|
1100
|
+
static readonly runtime: typeof proto2;
|
|
1065
1101
|
static readonly typeName = "google.protobuf.FieldOptions";
|
|
1066
1102
|
static readonly fields: FieldList;
|
|
1067
1103
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldOptions;
|
|
@@ -1111,6 +1147,77 @@ export declare enum FieldOptions_JSType {
|
|
|
1111
1147
|
*/
|
|
1112
1148
|
JS_NUMBER = 2
|
|
1113
1149
|
}
|
|
1150
|
+
/**
|
|
1151
|
+
* If set to RETENTION_SOURCE, the option will be omitted from the binary.
|
|
1152
|
+
* Note: as of January 2023, support for this is in progress and does not yet
|
|
1153
|
+
* have an effect (b/264593489).
|
|
1154
|
+
*
|
|
1155
|
+
* @generated from enum google.protobuf.FieldOptions.OptionRetention
|
|
1156
|
+
*/
|
|
1157
|
+
export declare enum FieldOptions_OptionRetention {
|
|
1158
|
+
/**
|
|
1159
|
+
* @generated from enum value: RETENTION_UNKNOWN = 0;
|
|
1160
|
+
*/
|
|
1161
|
+
RETENTION_UNKNOWN = 0,
|
|
1162
|
+
/**
|
|
1163
|
+
* @generated from enum value: RETENTION_RUNTIME = 1;
|
|
1164
|
+
*/
|
|
1165
|
+
RETENTION_RUNTIME = 1,
|
|
1166
|
+
/**
|
|
1167
|
+
* @generated from enum value: RETENTION_SOURCE = 2;
|
|
1168
|
+
*/
|
|
1169
|
+
RETENTION_SOURCE = 2
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* This indicates the types of entities that the field may apply to when used
|
|
1173
|
+
* as an option. If it is unset, then the field may be freely used as an
|
|
1174
|
+
* option on any kind of entity. Note: as of January 2023, support for this is
|
|
1175
|
+
* in progress and does not yet have an effect (b/264593489).
|
|
1176
|
+
*
|
|
1177
|
+
* @generated from enum google.protobuf.FieldOptions.OptionTargetType
|
|
1178
|
+
*/
|
|
1179
|
+
export declare enum FieldOptions_OptionTargetType {
|
|
1180
|
+
/**
|
|
1181
|
+
* @generated from enum value: TARGET_TYPE_UNKNOWN = 0;
|
|
1182
|
+
*/
|
|
1183
|
+
TARGET_TYPE_UNKNOWN = 0,
|
|
1184
|
+
/**
|
|
1185
|
+
* @generated from enum value: TARGET_TYPE_FILE = 1;
|
|
1186
|
+
*/
|
|
1187
|
+
TARGET_TYPE_FILE = 1,
|
|
1188
|
+
/**
|
|
1189
|
+
* @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2;
|
|
1190
|
+
*/
|
|
1191
|
+
TARGET_TYPE_EXTENSION_RANGE = 2,
|
|
1192
|
+
/**
|
|
1193
|
+
* @generated from enum value: TARGET_TYPE_MESSAGE = 3;
|
|
1194
|
+
*/
|
|
1195
|
+
TARGET_TYPE_MESSAGE = 3,
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from enum value: TARGET_TYPE_FIELD = 4;
|
|
1198
|
+
*/
|
|
1199
|
+
TARGET_TYPE_FIELD = 4,
|
|
1200
|
+
/**
|
|
1201
|
+
* @generated from enum value: TARGET_TYPE_ONEOF = 5;
|
|
1202
|
+
*/
|
|
1203
|
+
TARGET_TYPE_ONEOF = 5,
|
|
1204
|
+
/**
|
|
1205
|
+
* @generated from enum value: TARGET_TYPE_ENUM = 6;
|
|
1206
|
+
*/
|
|
1207
|
+
TARGET_TYPE_ENUM = 6,
|
|
1208
|
+
/**
|
|
1209
|
+
* @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7;
|
|
1210
|
+
*/
|
|
1211
|
+
TARGET_TYPE_ENUM_ENTRY = 7,
|
|
1212
|
+
/**
|
|
1213
|
+
* @generated from enum value: TARGET_TYPE_SERVICE = 8;
|
|
1214
|
+
*/
|
|
1215
|
+
TARGET_TYPE_SERVICE = 8,
|
|
1216
|
+
/**
|
|
1217
|
+
* @generated from enum value: TARGET_TYPE_METHOD = 9;
|
|
1218
|
+
*/
|
|
1219
|
+
TARGET_TYPE_METHOD = 9
|
|
1220
|
+
}
|
|
1114
1221
|
/**
|
|
1115
1222
|
* @generated from message google.protobuf.OneofOptions
|
|
1116
1223
|
*/
|
|
@@ -1122,7 +1229,7 @@ export declare class OneofOptions extends Message<OneofOptions> {
|
|
|
1122
1229
|
*/
|
|
1123
1230
|
uninterpretedOption: UninterpretedOption[];
|
|
1124
1231
|
constructor(data?: PartialMessage<OneofOptions>);
|
|
1125
|
-
static readonly runtime:
|
|
1232
|
+
static readonly runtime: typeof proto2;
|
|
1126
1233
|
static readonly typeName = "google.protobuf.OneofOptions";
|
|
1127
1234
|
static readonly fields: FieldList;
|
|
1128
1235
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofOptions;
|
|
@@ -1150,6 +1257,18 @@ export declare class EnumOptions extends Message<EnumOptions> {
|
|
|
1150
1257
|
* @generated from field: optional bool deprecated = 3 [default = false];
|
|
1151
1258
|
*/
|
|
1152
1259
|
deprecated?: boolean;
|
|
1260
|
+
/**
|
|
1261
|
+
* Enable the legacy handling of JSON field name conflicts. This lowercases
|
|
1262
|
+
* and strips underscored from the fields before comparison in proto3 only.
|
|
1263
|
+
* The new behavior takes `json_name` into account and applies to proto2 as
|
|
1264
|
+
* well.
|
|
1265
|
+
* TODO(b/261750190) Remove this legacy behavior once downstream teams have
|
|
1266
|
+
* had time to migrate.
|
|
1267
|
+
*
|
|
1268
|
+
* @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
|
|
1269
|
+
* @deprecated
|
|
1270
|
+
*/
|
|
1271
|
+
deprecatedLegacyJsonFieldConflicts?: boolean;
|
|
1153
1272
|
/**
|
|
1154
1273
|
* The parser stores options it doesn't recognize here. See above.
|
|
1155
1274
|
*
|
|
@@ -1157,7 +1276,7 @@ export declare class EnumOptions extends Message<EnumOptions> {
|
|
|
1157
1276
|
*/
|
|
1158
1277
|
uninterpretedOption: UninterpretedOption[];
|
|
1159
1278
|
constructor(data?: PartialMessage<EnumOptions>);
|
|
1160
|
-
static readonly runtime:
|
|
1279
|
+
static readonly runtime: typeof proto2;
|
|
1161
1280
|
static readonly typeName = "google.protobuf.EnumOptions";
|
|
1162
1281
|
static readonly fields: FieldList;
|
|
1163
1282
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumOptions;
|
|
@@ -1185,7 +1304,7 @@ export declare class EnumValueOptions extends Message<EnumValueOptions> {
|
|
|
1185
1304
|
*/
|
|
1186
1305
|
uninterpretedOption: UninterpretedOption[];
|
|
1187
1306
|
constructor(data?: PartialMessage<EnumValueOptions>);
|
|
1188
|
-
static readonly runtime:
|
|
1307
|
+
static readonly runtime: typeof proto2;
|
|
1189
1308
|
static readonly typeName = "google.protobuf.EnumValueOptions";
|
|
1190
1309
|
static readonly fields: FieldList;
|
|
1191
1310
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValueOptions;
|
|
@@ -1213,7 +1332,7 @@ export declare class ServiceOptions extends Message<ServiceOptions> {
|
|
|
1213
1332
|
*/
|
|
1214
1333
|
uninterpretedOption: UninterpretedOption[];
|
|
1215
1334
|
constructor(data?: PartialMessage<ServiceOptions>);
|
|
1216
|
-
static readonly runtime:
|
|
1335
|
+
static readonly runtime: typeof proto2;
|
|
1217
1336
|
static readonly typeName = "google.protobuf.ServiceOptions";
|
|
1218
1337
|
static readonly fields: FieldList;
|
|
1219
1338
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceOptions;
|
|
@@ -1245,7 +1364,7 @@ export declare class MethodOptions extends Message<MethodOptions> {
|
|
|
1245
1364
|
*/
|
|
1246
1365
|
uninterpretedOption: UninterpretedOption[];
|
|
1247
1366
|
constructor(data?: PartialMessage<MethodOptions>);
|
|
1248
|
-
static readonly runtime:
|
|
1367
|
+
static readonly runtime: typeof proto2;
|
|
1249
1368
|
static readonly typeName = "google.protobuf.MethodOptions";
|
|
1250
1369
|
static readonly fields: FieldList;
|
|
1251
1370
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MethodOptions;
|
|
@@ -1321,7 +1440,7 @@ export declare class UninterpretedOption extends Message<UninterpretedOption> {
|
|
|
1321
1440
|
*/
|
|
1322
1441
|
aggregateValue?: string;
|
|
1323
1442
|
constructor(data?: PartialMessage<UninterpretedOption>);
|
|
1324
|
-
static readonly runtime:
|
|
1443
|
+
static readonly runtime: typeof proto2;
|
|
1325
1444
|
static readonly typeName = "google.protobuf.UninterpretedOption";
|
|
1326
1445
|
static readonly fields: FieldList;
|
|
1327
1446
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UninterpretedOption;
|
|
@@ -1348,7 +1467,7 @@ export declare class UninterpretedOption_NamePart extends Message<UninterpretedO
|
|
|
1348
1467
|
*/
|
|
1349
1468
|
isExtension?: boolean;
|
|
1350
1469
|
constructor(data?: PartialMessage<UninterpretedOption_NamePart>);
|
|
1351
|
-
static readonly runtime:
|
|
1470
|
+
static readonly runtime: typeof proto2;
|
|
1352
1471
|
static readonly typeName = "google.protobuf.UninterpretedOption.NamePart";
|
|
1353
1472
|
static readonly fields: FieldList;
|
|
1354
1473
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UninterpretedOption_NamePart;
|
|
@@ -1412,7 +1531,7 @@ export declare class SourceCodeInfo extends Message<SourceCodeInfo> {
|
|
|
1412
1531
|
*/
|
|
1413
1532
|
location: SourceCodeInfo_Location[];
|
|
1414
1533
|
constructor(data?: PartialMessage<SourceCodeInfo>);
|
|
1415
|
-
static readonly runtime:
|
|
1534
|
+
static readonly runtime: typeof proto2;
|
|
1416
1535
|
static readonly typeName = "google.protobuf.SourceCodeInfo";
|
|
1417
1536
|
static readonly fields: FieldList;
|
|
1418
1537
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceCodeInfo;
|
|
@@ -1523,7 +1642,7 @@ export declare class SourceCodeInfo_Location extends Message<SourceCodeInfo_Loca
|
|
|
1523
1642
|
*/
|
|
1524
1643
|
leadingDetachedComments: string[];
|
|
1525
1644
|
constructor(data?: PartialMessage<SourceCodeInfo_Location>);
|
|
1526
|
-
static readonly runtime:
|
|
1645
|
+
static readonly runtime: typeof proto2;
|
|
1527
1646
|
static readonly typeName = "google.protobuf.SourceCodeInfo.Location";
|
|
1528
1647
|
static readonly fields: FieldList;
|
|
1529
1648
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceCodeInfo_Location;
|
|
@@ -1547,7 +1666,7 @@ export declare class GeneratedCodeInfo extends Message<GeneratedCodeInfo> {
|
|
|
1547
1666
|
*/
|
|
1548
1667
|
annotation: GeneratedCodeInfo_Annotation[];
|
|
1549
1668
|
constructor(data?: PartialMessage<GeneratedCodeInfo>);
|
|
1550
|
-
static readonly runtime:
|
|
1669
|
+
static readonly runtime: typeof proto2;
|
|
1551
1670
|
static readonly typeName = "google.protobuf.GeneratedCodeInfo";
|
|
1552
1671
|
static readonly fields: FieldList;
|
|
1553
1672
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratedCodeInfo;
|
|
@@ -1581,14 +1700,18 @@ export declare class GeneratedCodeInfo_Annotation extends Message<GeneratedCodeI
|
|
|
1581
1700
|
begin?: number;
|
|
1582
1701
|
/**
|
|
1583
1702
|
* Identifies the ending offset in bytes in the generated code that
|
|
1584
|
-
* relates to the identified
|
|
1703
|
+
* relates to the identified object. The end offset should be one past
|
|
1585
1704
|
* the last relevant byte (so the length of the text = end - begin).
|
|
1586
1705
|
*
|
|
1587
1706
|
* @generated from field: optional int32 end = 4;
|
|
1588
1707
|
*/
|
|
1589
1708
|
end?: number;
|
|
1709
|
+
/**
|
|
1710
|
+
* @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
|
|
1711
|
+
*/
|
|
1712
|
+
semantic?: GeneratedCodeInfo_Annotation_Semantic;
|
|
1590
1713
|
constructor(data?: PartialMessage<GeneratedCodeInfo_Annotation>);
|
|
1591
|
-
static readonly runtime:
|
|
1714
|
+
static readonly runtime: typeof proto2;
|
|
1592
1715
|
static readonly typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
|
|
1593
1716
|
static readonly fields: FieldList;
|
|
1594
1717
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratedCodeInfo_Annotation;
|
|
@@ -1596,3 +1719,29 @@ export declare class GeneratedCodeInfo_Annotation extends Message<GeneratedCodeI
|
|
|
1596
1719
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GeneratedCodeInfo_Annotation;
|
|
1597
1720
|
static equals(a: GeneratedCodeInfo_Annotation | PlainMessage<GeneratedCodeInfo_Annotation> | undefined, b: GeneratedCodeInfo_Annotation | PlainMessage<GeneratedCodeInfo_Annotation> | undefined): boolean;
|
|
1598
1721
|
}
|
|
1722
|
+
/**
|
|
1723
|
+
* Represents the identified object's effect on the element in the original
|
|
1724
|
+
* .proto file.
|
|
1725
|
+
*
|
|
1726
|
+
* @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic
|
|
1727
|
+
*/
|
|
1728
|
+
export declare enum GeneratedCodeInfo_Annotation_Semantic {
|
|
1729
|
+
/**
|
|
1730
|
+
* There is no effect or the effect is indescribable.
|
|
1731
|
+
*
|
|
1732
|
+
* @generated from enum value: NONE = 0;
|
|
1733
|
+
*/
|
|
1734
|
+
NONE = 0,
|
|
1735
|
+
/**
|
|
1736
|
+
* The element is set or otherwise mutated.
|
|
1737
|
+
*
|
|
1738
|
+
* @generated from enum value: SET = 1;
|
|
1739
|
+
*/
|
|
1740
|
+
SET = 1,
|
|
1741
|
+
/**
|
|
1742
|
+
* An alias to the element is returned.
|
|
1743
|
+
*
|
|
1744
|
+
* @generated from enum value: ALIAS = 2;
|
|
1745
|
+
*/
|
|
1746
|
+
ALIAS = 2
|
|
1747
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
2
|
import { Message } from "../../message.js";
|
|
3
|
+
import { proto3 } from "../../proto3.js";
|
|
3
4
|
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js";
|
|
4
5
|
import type { FieldList } from "../../field-list.js";
|
|
5
6
|
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
@@ -64,7 +65,6 @@ import type { BinaryReadOptions } from "../../binary-format.js";
|
|
|
64
65
|
* microsecond should be expressed in JSON format as "3.000001s".
|
|
65
66
|
*
|
|
66
67
|
*
|
|
67
|
-
*
|
|
68
68
|
* @generated from message google.protobuf.Duration
|
|
69
69
|
*/
|
|
70
70
|
export declare class Duration extends Message<Duration> {
|
|
@@ -90,7 +90,7 @@ export declare class Duration extends Message<Duration> {
|
|
|
90
90
|
constructor(data?: PartialMessage<Duration>);
|
|
91
91
|
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
92
92
|
toJson(options?: Partial<JsonWriteOptions>): JsonValue;
|
|
93
|
-
static readonly runtime:
|
|
93
|
+
static readonly runtime: typeof proto3;
|
|
94
94
|
static readonly typeName = "google.protobuf.Duration";
|
|
95
95
|
static readonly fields: FieldList;
|
|
96
96
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Duration;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
2
|
import { Message } from "../../message.js";
|
|
3
|
+
import { proto3 } from "../../proto3.js";
|
|
3
4
|
import type { FieldList } from "../../field-list.js";
|
|
4
5
|
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
5
6
|
import type { JsonReadOptions, JsonValue } from "../../json-format.js";
|
|
@@ -17,7 +18,7 @@ import type { JsonReadOptions, JsonValue } from "../../json-format.js";
|
|
|
17
18
|
*/
|
|
18
19
|
export declare class Empty extends Message<Empty> {
|
|
19
20
|
constructor(data?: PartialMessage<Empty>);
|
|
20
|
-
static readonly runtime:
|
|
21
|
+
static readonly runtime: typeof proto3;
|
|
21
22
|
static readonly typeName = "google.protobuf.Empty";
|
|
22
23
|
static readonly fields: FieldList;
|
|
23
24
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Empty;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
2
|
import { Message } from "../../message.js";
|
|
3
|
+
import { proto3 } from "../../proto3.js";
|
|
3
4
|
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js";
|
|
4
5
|
import type { FieldList } from "../../field-list.js";
|
|
5
6
|
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
@@ -216,7 +217,7 @@ export declare class FieldMask extends Message<FieldMask> {
|
|
|
216
217
|
constructor(data?: PartialMessage<FieldMask>);
|
|
217
218
|
toJson(options?: Partial<JsonWriteOptions>): JsonValue;
|
|
218
219
|
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
219
|
-
static readonly runtime:
|
|
220
|
+
static readonly runtime: typeof proto3;
|
|
220
221
|
static readonly typeName = "google.protobuf.FieldMask";
|
|
221
222
|
static readonly fields: FieldList;
|
|
222
223
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldMask;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
2
|
import { Message } from "../../message.js";
|
|
3
|
+
import { proto3 } from "../../proto3.js";
|
|
3
4
|
import type { FieldList } from "../../field-list.js";
|
|
4
5
|
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
5
6
|
import type { JsonReadOptions, JsonValue } from "../../json-format.js";
|
|
@@ -18,7 +19,7 @@ export declare class SourceContext extends Message<SourceContext> {
|
|
|
18
19
|
*/
|
|
19
20
|
fileName: string;
|
|
20
21
|
constructor(data?: PartialMessage<SourceContext>);
|
|
21
|
-
static readonly runtime:
|
|
22
|
+
static readonly runtime: typeof proto3;
|
|
22
23
|
static readonly typeName = "google.protobuf.SourceContext";
|
|
23
24
|
static readonly fields: FieldList;
|
|
24
25
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { proto3 } from "../../proto3.js";
|
|
1
2
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
3
|
import { Message } from "../../message.js";
|
|
3
4
|
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js";
|
|
@@ -43,7 +44,7 @@ export declare class Struct extends Message<Struct> {
|
|
|
43
44
|
constructor(data?: PartialMessage<Struct>);
|
|
44
45
|
toJson(options?: Partial<JsonWriteOptions>): JsonValue;
|
|
45
46
|
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
46
|
-
static readonly runtime:
|
|
47
|
+
static readonly runtime: typeof proto3;
|
|
47
48
|
static readonly typeName = "google.protobuf.Struct";
|
|
48
49
|
static readonly fields: FieldList;
|
|
49
50
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Struct;
|
|
@@ -122,7 +123,7 @@ export declare class Value extends Message<Value> {
|
|
|
122
123
|
constructor(data?: PartialMessage<Value>);
|
|
123
124
|
toJson(options?: Partial<JsonWriteOptions>): JsonValue;
|
|
124
125
|
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
125
|
-
static readonly runtime:
|
|
126
|
+
static readonly runtime: typeof proto3;
|
|
126
127
|
static readonly typeName = "google.protobuf.Value";
|
|
127
128
|
static readonly fields: FieldList;
|
|
128
129
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Value;
|
|
@@ -147,7 +148,7 @@ export declare class ListValue extends Message<ListValue> {
|
|
|
147
148
|
constructor(data?: PartialMessage<ListValue>);
|
|
148
149
|
toJson(options?: Partial<JsonWriteOptions>): JsonValue;
|
|
149
150
|
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
150
|
-
static readonly runtime:
|
|
151
|
+
static readonly runtime: typeof proto3;
|
|
151
152
|
static readonly typeName = "google.protobuf.ListValue";
|
|
152
153
|
static readonly fields: FieldList;
|
|
153
154
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListValue;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
2
|
import { Message } from "../../message.js";
|
|
3
|
+
import { proto3 } from "../../proto3.js";
|
|
3
4
|
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js";
|
|
4
5
|
import type { FieldList } from "../../field-list.js";
|
|
5
6
|
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
@@ -54,7 +55,6 @@ import type { BinaryReadOptions } from "../../binary-format.js";
|
|
|
54
55
|
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
55
56
|
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
56
57
|
*
|
|
57
|
-
*
|
|
58
58
|
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
59
59
|
*
|
|
60
60
|
* Instant now = Instant.now();
|
|
@@ -63,7 +63,6 @@ import type { BinaryReadOptions } from "../../binary-format.js";
|
|
|
63
63
|
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
64
64
|
* .setNanos(now.getNano()).build();
|
|
65
65
|
*
|
|
66
|
-
*
|
|
67
66
|
* Example 6: Compute Timestamp from current time in Python.
|
|
68
67
|
*
|
|
69
68
|
* timestamp = Timestamp()
|
|
@@ -97,7 +96,6 @@ import type { BinaryReadOptions } from "../../binary-format.js";
|
|
|
97
96
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
98
97
|
*
|
|
99
98
|
*
|
|
100
|
-
*
|
|
101
99
|
* @generated from message google.protobuf.Timestamp
|
|
102
100
|
*/
|
|
103
101
|
export declare class Timestamp extends Message<Timestamp> {
|
|
@@ -122,7 +120,7 @@ export declare class Timestamp extends Message<Timestamp> {
|
|
|
122
120
|
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
123
121
|
toJson(options?: Partial<JsonWriteOptions>): JsonValue;
|
|
124
122
|
toDate(): Date;
|
|
125
|
-
static readonly runtime:
|
|
123
|
+
static readonly runtime: typeof proto3;
|
|
126
124
|
static readonly typeName = "google.protobuf.Timestamp";
|
|
127
125
|
static readonly fields: FieldList;
|
|
128
126
|
static now(): Timestamp;
|