Skip to content

Commit 5756fe7

Browse files
committed
proto-loader: Update golden generated files with editions updates
1 parent eef4b08 commit 5756fe7

19 files changed

+554
-3
lines changed

packages/proto-loader/golden-generated/echo.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ export interface ProtoGrpcType {
4242
Any: MessageTypeDefinition
4343
DescriptorProto: MessageTypeDefinition
4444
Duration: MessageTypeDefinition
45+
Edition: EnumTypeDefinition
4546
Empty: MessageTypeDefinition
4647
EnumDescriptorProto: MessageTypeDefinition
4748
EnumOptions: MessageTypeDefinition
4849
EnumValueDescriptorProto: MessageTypeDefinition
4950
EnumValueOptions: MessageTypeDefinition
51+
ExtensionRangeOptions: MessageTypeDefinition
52+
FeatureSet: MessageTypeDefinition
53+
FeatureSetDefaults: MessageTypeDefinition
5054
FieldDescriptorProto: MessageTypeDefinition
5155
FieldOptions: MessageTypeDefinition
5256
FileDescriptorProto: MessageTypeDefinition
@@ -61,6 +65,7 @@ export interface ProtoGrpcType {
6165
ServiceDescriptorProto: MessageTypeDefinition
6266
ServiceOptions: MessageTypeDefinition
6367
SourceCodeInfo: MessageTypeDefinition
68+
SymbolVisibility: EnumTypeDefinition
6469
Timestamp: MessageTypeDefinition
6570
UninterpretedOption: MessageTypeDefinition
6671
}

packages/proto-loader/golden-generated/google/protobuf/DescriptorProto.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ import type { IDescriptorProto as I_google_protobuf_DescriptorProto, ODescriptor
55
import type { IEnumDescriptorProto as I_google_protobuf_EnumDescriptorProto, OEnumDescriptorProto as O_google_protobuf_EnumDescriptorProto } from '../../google/protobuf/EnumDescriptorProto';
66
import type { IMessageOptions as I_google_protobuf_MessageOptions, OMessageOptions as O_google_protobuf_MessageOptions } from '../../google/protobuf/MessageOptions';
77
import type { IOneofDescriptorProto as I_google_protobuf_OneofDescriptorProto, OOneofDescriptorProto as O_google_protobuf_OneofDescriptorProto } from '../../google/protobuf/OneofDescriptorProto';
8+
import type { ISymbolVisibility as I_google_protobuf_SymbolVisibility, OSymbolVisibility as O_google_protobuf_SymbolVisibility } from '../../google/protobuf/SymbolVisibility';
9+
import type { IExtensionRangeOptions as I_google_protobuf_ExtensionRangeOptions, OExtensionRangeOptions as O_google_protobuf_ExtensionRangeOptions } from '../../google/protobuf/ExtensionRangeOptions';
810

911
export interface I_google_protobuf_DescriptorProto_ExtensionRange {
1012
'start'?: (number);
1113
'end'?: (number);
14+
'options'?: (I_google_protobuf_ExtensionRangeOptions | null);
1215
}
1316

1417
export interface O_google_protobuf_DescriptorProto_ExtensionRange {
1518
'start': (number);
1619
'end': (number);
20+
'options': (O_google_protobuf_ExtensionRangeOptions | null);
1721
}
1822

1923
export interface I_google_protobuf_DescriptorProto_ReservedRange {
@@ -37,6 +41,7 @@ export interface IDescriptorProto {
3741
'oneofDecl'?: (I_google_protobuf_OneofDescriptorProto)[];
3842
'reservedRange'?: (I_google_protobuf_DescriptorProto_ReservedRange)[];
3943
'reservedName'?: (string)[];
44+
'visibility'?: (I_google_protobuf_SymbolVisibility);
4045
}
4146

4247
export interface ODescriptorProto {
@@ -50,4 +55,5 @@ export interface ODescriptorProto {
5055
'oneofDecl': (O_google_protobuf_OneofDescriptorProto)[];
5156
'reservedRange': (O_google_protobuf_DescriptorProto_ReservedRange)[];
5257
'reservedName': (string)[];
58+
'visibility': (O_google_protobuf_SymbolVisibility);
5359
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Original file: null
2+
3+
export const Edition = {
4+
EDITION_UNKNOWN: 'EDITION_UNKNOWN',
5+
EDITION_LEGACY: 'EDITION_LEGACY',
6+
EDITION_PROTO2: 'EDITION_PROTO2',
7+
EDITION_PROTO3: 'EDITION_PROTO3',
8+
EDITION_2023: 'EDITION_2023',
9+
EDITION_2024: 'EDITION_2024',
10+
EDITION_1_TEST_ONLY: 'EDITION_1_TEST_ONLY',
11+
EDITION_2_TEST_ONLY: 'EDITION_2_TEST_ONLY',
12+
EDITION_99997_TEST_ONLY: 'EDITION_99997_TEST_ONLY',
13+
EDITION_99998_TEST_ONLY: 'EDITION_99998_TEST_ONLY',
14+
EDITION_99999_TEST_ONLY: 'EDITION_99999_TEST_ONLY',
15+
EDITION_MAX: 'EDITION_MAX',
16+
} as const;
17+
18+
export type IEdition =
19+
| 'EDITION_UNKNOWN'
20+
| 0
21+
| 'EDITION_LEGACY'
22+
| 900
23+
| 'EDITION_PROTO2'
24+
| 998
25+
| 'EDITION_PROTO3'
26+
| 999
27+
| 'EDITION_2023'
28+
| 1000
29+
| 'EDITION_2024'
30+
| 1001
31+
| 'EDITION_1_TEST_ONLY'
32+
| 1
33+
| 'EDITION_2_TEST_ONLY'
34+
| 2
35+
| 'EDITION_99997_TEST_ONLY'
36+
| 99997
37+
| 'EDITION_99998_TEST_ONLY'
38+
| 99998
39+
| 'EDITION_99999_TEST_ONLY'
40+
| 99999
41+
| 'EDITION_MAX'
42+
| 2147483647
43+
44+
export type OEdition = typeof Edition[keyof typeof Edition]

packages/proto-loader/golden-generated/google/protobuf/EnumDescriptorProto.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,32 @@
22

33
import type { IEnumValueDescriptorProto as I_google_protobuf_EnumValueDescriptorProto, OEnumValueDescriptorProto as O_google_protobuf_EnumValueDescriptorProto } from '../../google/protobuf/EnumValueDescriptorProto';
44
import type { IEnumOptions as I_google_protobuf_EnumOptions, OEnumOptions as O_google_protobuf_EnumOptions } from '../../google/protobuf/EnumOptions';
5+
import type { ISymbolVisibility as I_google_protobuf_SymbolVisibility, OSymbolVisibility as O_google_protobuf_SymbolVisibility } from '../../google/protobuf/SymbolVisibility';
6+
7+
export interface I_google_protobuf_EnumDescriptorProto_EnumReservedRange {
8+
'start'?: (number);
9+
'end'?: (number);
10+
}
11+
12+
export interface O_google_protobuf_EnumDescriptorProto_EnumReservedRange {
13+
'start': (number);
14+
'end': (number);
15+
}
516

617
export interface IEnumDescriptorProto {
718
'name'?: (string);
819
'value'?: (I_google_protobuf_EnumValueDescriptorProto)[];
920
'options'?: (I_google_protobuf_EnumOptions | null);
21+
'reservedRange'?: (I_google_protobuf_EnumDescriptorProto_EnumReservedRange)[];
22+
'reservedName'?: (string)[];
23+
'visibility'?: (I_google_protobuf_SymbolVisibility);
1024
}
1125

1226
export interface OEnumDescriptorProto {
1327
'name': (string);
1428
'value': (O_google_protobuf_EnumValueDescriptorProto)[];
1529
'options': (O_google_protobuf_EnumOptions | null);
30+
'reservedRange': (O_google_protobuf_EnumDescriptorProto_EnumReservedRange)[];
31+
'reservedName': (string)[];
32+
'visibility': (O_google_protobuf_SymbolVisibility);
1633
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
// Original file: null
22

3+
import type { IFeatureSet as I_google_protobuf_FeatureSet, OFeatureSet as O_google_protobuf_FeatureSet } from '../../google/protobuf/FeatureSet';
34
import type { IUninterpretedOption as I_google_protobuf_UninterpretedOption, OUninterpretedOption as O_google_protobuf_UninterpretedOption } from '../../google/protobuf/UninterpretedOption';
45

56
export interface IEnumOptions {
67
'allowAlias'?: (boolean);
78
'deprecated'?: (boolean);
9+
/**
10+
* @deprecated
11+
*/
12+
'deprecatedLegacyJsonFieldConflicts'?: (boolean);
13+
'features'?: (I_google_protobuf_FeatureSet | null);
814
'uninterpretedOption'?: (I_google_protobuf_UninterpretedOption)[];
915
}
1016

1117
export interface OEnumOptions {
1218
'allowAlias': (boolean);
1319
'deprecated': (boolean);
20+
/**
21+
* @deprecated
22+
*/
23+
'deprecatedLegacyJsonFieldConflicts': (boolean);
24+
'features': (O_google_protobuf_FeatureSet | null);
1425
'uninterpretedOption': (O_google_protobuf_UninterpretedOption)[];
1526
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
// Original file: null
22

3+
import type { IFeatureSet as I_google_protobuf_FeatureSet, OFeatureSet as O_google_protobuf_FeatureSet } from '../../google/protobuf/FeatureSet';
4+
import type { I_google_protobuf_FieldOptions_FeatureSupport, O_google_protobuf_FieldOptions_FeatureSupport } from '../../google/protobuf/FieldOptions';
35
import type { IUninterpretedOption as I_google_protobuf_UninterpretedOption, OUninterpretedOption as O_google_protobuf_UninterpretedOption } from '../../google/protobuf/UninterpretedOption';
46

57
export interface IEnumValueOptions {
68
'deprecated'?: (boolean);
9+
'features'?: (I_google_protobuf_FeatureSet | null);
10+
'debugRedact'?: (boolean);
11+
'featureSupport'?: (I_google_protobuf_FieldOptions_FeatureSupport | null);
712
'uninterpretedOption'?: (I_google_protobuf_UninterpretedOption)[];
813
}
914

1015
export interface OEnumValueOptions {
1116
'deprecated': (boolean);
17+
'features': (O_google_protobuf_FeatureSet | null);
18+
'debugRedact': (boolean);
19+
'featureSupport': (O_google_protobuf_FieldOptions_FeatureSupport | null);
1220
'uninterpretedOption': (O_google_protobuf_UninterpretedOption)[];
1321
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Original file: null
2+
3+
import type { IFeatureSet as I_google_protobuf_FeatureSet, OFeatureSet as O_google_protobuf_FeatureSet } from '../../google/protobuf/FeatureSet';
4+
import type { IUninterpretedOption as I_google_protobuf_UninterpretedOption, OUninterpretedOption as O_google_protobuf_UninterpretedOption } from '../../google/protobuf/UninterpretedOption';
5+
6+
export interface I_google_protobuf_ExtensionRangeOptions_Declaration {
7+
'number'?: (number);
8+
'fullName'?: (string);
9+
'type'?: (string);
10+
'reserved'?: (boolean);
11+
'repeated'?: (boolean);
12+
}
13+
14+
export interface O_google_protobuf_ExtensionRangeOptions_Declaration {
15+
'number': (number);
16+
'fullName': (string);
17+
'type': (string);
18+
'reserved': (boolean);
19+
'repeated': (boolean);
20+
}
21+
22+
// Original file: null
23+
24+
export const _google_protobuf_ExtensionRangeOptions_VerificationState = {
25+
DECLARATION: 'DECLARATION',
26+
UNVERIFIED: 'UNVERIFIED',
27+
} as const;
28+
29+
export type I_google_protobuf_ExtensionRangeOptions_VerificationState =
30+
| 'DECLARATION'
31+
| 0
32+
| 'UNVERIFIED'
33+
| 1
34+
35+
export type O_google_protobuf_ExtensionRangeOptions_VerificationState = typeof _google_protobuf_ExtensionRangeOptions_VerificationState[keyof typeof _google_protobuf_ExtensionRangeOptions_VerificationState]
36+
37+
export interface IExtensionRangeOptions {
38+
'declaration'?: (I_google_protobuf_ExtensionRangeOptions_Declaration)[];
39+
'verification'?: (I_google_protobuf_ExtensionRangeOptions_VerificationState);
40+
'features'?: (I_google_protobuf_FeatureSet | null);
41+
'uninterpretedOption'?: (I_google_protobuf_UninterpretedOption)[];
42+
}
43+
44+
export interface OExtensionRangeOptions {
45+
'declaration': (O_google_protobuf_ExtensionRangeOptions_Declaration)[];
46+
'verification': (O_google_protobuf_ExtensionRangeOptions_VerificationState);
47+
'features': (O_google_protobuf_FeatureSet | null);
48+
'uninterpretedOption': (O_google_protobuf_UninterpretedOption)[];
49+
}

0 commit comments

Comments
 (0)