Skip to content

proto-loader: Update golden generated files with editions updates #2963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/proto-loader/golden-generated/echo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@ export interface ProtoGrpcType {
Any: MessageTypeDefinition
DescriptorProto: MessageTypeDefinition
Duration: MessageTypeDefinition
Edition: EnumTypeDefinition
Empty: MessageTypeDefinition
EnumDescriptorProto: MessageTypeDefinition
EnumOptions: MessageTypeDefinition
EnumValueDescriptorProto: MessageTypeDefinition
EnumValueOptions: MessageTypeDefinition
ExtensionRangeOptions: MessageTypeDefinition
FeatureSet: MessageTypeDefinition
FeatureSetDefaults: MessageTypeDefinition
FieldDescriptorProto: MessageTypeDefinition
FieldOptions: MessageTypeDefinition
FileDescriptorProto: MessageTypeDefinition
Expand All @@ -61,6 +65,7 @@ export interface ProtoGrpcType {
ServiceDescriptorProto: MessageTypeDefinition
ServiceOptions: MessageTypeDefinition
SourceCodeInfo: MessageTypeDefinition
SymbolVisibility: EnumTypeDefinition
Timestamp: MessageTypeDefinition
UninterpretedOption: MessageTypeDefinition
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ import type { IDescriptorProto as I_google_protobuf_DescriptorProto, ODescriptor
import type { IEnumDescriptorProto as I_google_protobuf_EnumDescriptorProto, OEnumDescriptorProto as O_google_protobuf_EnumDescriptorProto } from '../../google/protobuf/EnumDescriptorProto';
import type { IMessageOptions as I_google_protobuf_MessageOptions, OMessageOptions as O_google_protobuf_MessageOptions } from '../../google/protobuf/MessageOptions';
import type { IOneofDescriptorProto as I_google_protobuf_OneofDescriptorProto, OOneofDescriptorProto as O_google_protobuf_OneofDescriptorProto } from '../../google/protobuf/OneofDescriptorProto';
import type { ISymbolVisibility as I_google_protobuf_SymbolVisibility, OSymbolVisibility as O_google_protobuf_SymbolVisibility } from '../../google/protobuf/SymbolVisibility';
import type { IExtensionRangeOptions as I_google_protobuf_ExtensionRangeOptions, OExtensionRangeOptions as O_google_protobuf_ExtensionRangeOptions } from '../../google/protobuf/ExtensionRangeOptions';

export interface I_google_protobuf_DescriptorProto_ExtensionRange {
'start'?: (number);
'end'?: (number);
'options'?: (I_google_protobuf_ExtensionRangeOptions | null);
}

export interface O_google_protobuf_DescriptorProto_ExtensionRange {
'start': (number);
'end': (number);
'options': (O_google_protobuf_ExtensionRangeOptions | null);
}

export interface I_google_protobuf_DescriptorProto_ReservedRange {
Expand All @@ -37,6 +41,7 @@ export interface IDescriptorProto {
'oneofDecl'?: (I_google_protobuf_OneofDescriptorProto)[];
'reservedRange'?: (I_google_protobuf_DescriptorProto_ReservedRange)[];
'reservedName'?: (string)[];
'visibility'?: (I_google_protobuf_SymbolVisibility);
}

export interface ODescriptorProto {
Expand All @@ -50,4 +55,5 @@ export interface ODescriptorProto {
'oneofDecl': (O_google_protobuf_OneofDescriptorProto)[];
'reservedRange': (O_google_protobuf_DescriptorProto_ReservedRange)[];
'reservedName': (string)[];
'visibility': (O_google_protobuf_SymbolVisibility);
}
44 changes: 44 additions & 0 deletions packages/proto-loader/golden-generated/google/protobuf/Edition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Original file: null

export const Edition = {
EDITION_UNKNOWN: 'EDITION_UNKNOWN',
EDITION_LEGACY: 'EDITION_LEGACY',
EDITION_PROTO2: 'EDITION_PROTO2',
EDITION_PROTO3: 'EDITION_PROTO3',
EDITION_2023: 'EDITION_2023',
EDITION_2024: 'EDITION_2024',
EDITION_1_TEST_ONLY: 'EDITION_1_TEST_ONLY',
EDITION_2_TEST_ONLY: 'EDITION_2_TEST_ONLY',
EDITION_99997_TEST_ONLY: 'EDITION_99997_TEST_ONLY',
EDITION_99998_TEST_ONLY: 'EDITION_99998_TEST_ONLY',
EDITION_99999_TEST_ONLY: 'EDITION_99999_TEST_ONLY',
EDITION_MAX: 'EDITION_MAX',
} as const;

export type IEdition =
| 'EDITION_UNKNOWN'
| 0
| 'EDITION_LEGACY'
| 900
| 'EDITION_PROTO2'
| 998
| 'EDITION_PROTO3'
| 999
| 'EDITION_2023'
| 1000
| 'EDITION_2024'
| 1001
| 'EDITION_1_TEST_ONLY'
| 1
| 'EDITION_2_TEST_ONLY'
| 2
| 'EDITION_99997_TEST_ONLY'
| 99997
| 'EDITION_99998_TEST_ONLY'
| 99998
| 'EDITION_99999_TEST_ONLY'
| 99999
| 'EDITION_MAX'
| 2147483647

export type OEdition = typeof Edition[keyof typeof Edition]
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@

import type { IEnumValueDescriptorProto as I_google_protobuf_EnumValueDescriptorProto, OEnumValueDescriptorProto as O_google_protobuf_EnumValueDescriptorProto } from '../../google/protobuf/EnumValueDescriptorProto';
import type { IEnumOptions as I_google_protobuf_EnumOptions, OEnumOptions as O_google_protobuf_EnumOptions } from '../../google/protobuf/EnumOptions';
import type { ISymbolVisibility as I_google_protobuf_SymbolVisibility, OSymbolVisibility as O_google_protobuf_SymbolVisibility } from '../../google/protobuf/SymbolVisibility';

export interface I_google_protobuf_EnumDescriptorProto_EnumReservedRange {
'start'?: (number);
'end'?: (number);
}

export interface O_google_protobuf_EnumDescriptorProto_EnumReservedRange {
'start': (number);
'end': (number);
}

export interface IEnumDescriptorProto {
'name'?: (string);
'value'?: (I_google_protobuf_EnumValueDescriptorProto)[];
'options'?: (I_google_protobuf_EnumOptions | null);
'reservedRange'?: (I_google_protobuf_EnumDescriptorProto_EnumReservedRange)[];
'reservedName'?: (string)[];
'visibility'?: (I_google_protobuf_SymbolVisibility);
}

export interface OEnumDescriptorProto {
'name': (string);
'value': (O_google_protobuf_EnumValueDescriptorProto)[];
'options': (O_google_protobuf_EnumOptions | null);
'reservedRange': (O_google_protobuf_EnumDescriptorProto_EnumReservedRange)[];
'reservedName': (string)[];
'visibility': (O_google_protobuf_SymbolVisibility);
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
// Original file: null

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

export interface IEnumOptions {
'allowAlias'?: (boolean);
'deprecated'?: (boolean);
/**
* @deprecated
*/
'deprecatedLegacyJsonFieldConflicts'?: (boolean);
'features'?: (I_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (I_google_protobuf_UninterpretedOption)[];
}

export interface OEnumOptions {
'allowAlias': (boolean);
'deprecated': (boolean);
/**
* @deprecated
*/
'deprecatedLegacyJsonFieldConflicts': (boolean);
'features': (O_google_protobuf_FeatureSet | null);
'uninterpretedOption': (O_google_protobuf_UninterpretedOption)[];
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
// Original file: null

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

export interface IEnumValueOptions {
'deprecated'?: (boolean);
'features'?: (I_google_protobuf_FeatureSet | null);
'debugRedact'?: (boolean);
'featureSupport'?: (I_google_protobuf_FieldOptions_FeatureSupport | null);
'uninterpretedOption'?: (I_google_protobuf_UninterpretedOption)[];
}

export interface OEnumValueOptions {
'deprecated': (boolean);
'features': (O_google_protobuf_FeatureSet | null);
'debugRedact': (boolean);
'featureSupport': (O_google_protobuf_FieldOptions_FeatureSupport | null);
'uninterpretedOption': (O_google_protobuf_UninterpretedOption)[];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Original file: null

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

export interface I_google_protobuf_ExtensionRangeOptions_Declaration {
'number'?: (number);
'fullName'?: (string);
'type'?: (string);
'reserved'?: (boolean);
'repeated'?: (boolean);
}

export interface O_google_protobuf_ExtensionRangeOptions_Declaration {
'number': (number);
'fullName': (string);
'type': (string);
'reserved': (boolean);
'repeated': (boolean);
}

// Original file: null

export const _google_protobuf_ExtensionRangeOptions_VerificationState = {
DECLARATION: 'DECLARATION',
UNVERIFIED: 'UNVERIFIED',
} as const;

export type I_google_protobuf_ExtensionRangeOptions_VerificationState =
| 'DECLARATION'
| 0
| 'UNVERIFIED'
| 1

export type O_google_protobuf_ExtensionRangeOptions_VerificationState = typeof _google_protobuf_ExtensionRangeOptions_VerificationState[keyof typeof _google_protobuf_ExtensionRangeOptions_VerificationState]

export interface IExtensionRangeOptions {
'declaration'?: (I_google_protobuf_ExtensionRangeOptions_Declaration)[];
'verification'?: (I_google_protobuf_ExtensionRangeOptions_VerificationState);
'features'?: (I_google_protobuf_FeatureSet | null);
'uninterpretedOption'?: (I_google_protobuf_UninterpretedOption)[];
}

export interface OExtensionRangeOptions {
'declaration': (O_google_protobuf_ExtensionRangeOptions_Declaration)[];
'verification': (O_google_protobuf_ExtensionRangeOptions_VerificationState);
'features': (O_google_protobuf_FeatureSet | null);
'uninterpretedOption': (O_google_protobuf_UninterpretedOption)[];
}
Loading