Skip to content

Commit

Permalink
Regenerate protos
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcairo committed Apr 12, 2024
1 parent 3507007 commit f982f33
Show file tree
Hide file tree
Showing 13 changed files with 314 additions and 314 deletions.
16 changes: 8 additions & 8 deletions Protos/SwiftProtobufTests/generated_swift_names_enum_cases.proto
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ enum GeneratedSwiftReservedEnum {
Collection = 165;
com = 166;
comma = 167;
CommonMessageConformances = 168;
consumedBytes = 169;
contentsOf = 170;
count = 171;
countVarintsInBuffer = 172;
csharpNamespace = 173;
ctype = 174;
customCodable = 175;
consumedBytes = 168;
contentsOf = 169;
count = 170;
countVarintsInBuffer = 171;
csharpNamespace = 172;
ctype = 173;
customCodable = 174;
CustomDebugStringConvertible = 175;
d = 176;
Data = 177;
dataResult = 178;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ message GeneratedSwiftReservedEnums {
enum Collection { NONE_Collection = 0; }
enum com { NONE_com = 0; }
enum comma { NONE_comma = 0; }
enum CommonMessageConformances { NONE_CommonMessageConformances = 0; }
enum consumedBytes { NONE_consumedBytes = 0; }
enum contentsOf { NONE_contentsOf = 0; }
enum count { NONE_count = 0; }
enum countVarintsInBuffer { NONE_countVarintsInBuffer = 0; }
enum csharpNamespace { NONE_csharpNamespace = 0; }
enum ctype { NONE_ctype = 0; }
enum customCodable { NONE_customCodable = 0; }
enum CustomDebugStringConvertible { NONE_CustomDebugStringConvertible = 0; }
enum d { NONE_d = 0; }
enum Data { NONE_Data = 0; }
enum dataResult { NONE_dataResult = 0; }
Expand Down
16 changes: 8 additions & 8 deletions Protos/SwiftProtobufTests/generated_swift_names_fields.proto
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ message GeneratedSwiftReservedFields {
int32 Collection = 165;
int32 com = 166;
int32 comma = 167;
int32 CommonMessageConformances = 168;
int32 consumedBytes = 169;
int32 contentsOf = 170;
int32 count = 171;
int32 countVarintsInBuffer = 172;
int32 csharpNamespace = 173;
int32 ctype = 174;
int32 customCodable = 175;
int32 consumedBytes = 168;
int32 contentsOf = 169;
int32 count = 170;
int32 countVarintsInBuffer = 171;
int32 csharpNamespace = 172;
int32 ctype = 173;
int32 customCodable = 174;
int32 CustomDebugStringConvertible = 175;
int32 d = 176;
int32 Data = 177;
int32 dataResult = 178;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ message GeneratedSwiftReservedMessages {
message Collection { int32 Collection = 1; }
message com { int32 com = 1; }
message comma { int32 comma = 1; }
message CommonMessageConformances { int32 CommonMessageConformances = 1; }
message consumedBytes { int32 consumedBytes = 1; }
message contentsOf { int32 contentsOf = 1; }
message count { int32 count = 1; }
message countVarintsInBuffer { int32 countVarintsInBuffer = 1; }
message csharpNamespace { int32 csharpNamespace = 1; }
message ctype { int32 ctype = 1; }
message customCodable { int32 customCodable = 1; }
message CustomDebugStringConvertible { int32 CustomDebugStringConvertible = 1; }
message d { int32 d = 1; }
message Data { int32 Data = 1; }
message dataResult { int32 dataResult = 1; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ enum SwiftProtoTesting_Generated_GeneratedSwiftReservedEnum: SwiftProtobuf.Enum,
case collection // = 165
case com // = 166
case comma // = 167
case commonMessageConformances // = 168
case consumedBytes // = 169
case contentsOf // = 170
case count // = 171
case countVarintsInBuffer // = 172
case csharpNamespace // = 173
case ctype // = 174
case customCodable // = 175
case consumedBytes // = 168
case contentsOf // = 169
case count // = 170
case countVarintsInBuffer // = 171
case csharpNamespace // = 172
case ctype // = 173
case customCodable // = 174
case customDebugStringConvertible // = 175
case d // = 176
case data // = 177
case dataResult // = 178
Expand Down Expand Up @@ -1178,14 +1178,14 @@ enum SwiftProtoTesting_Generated_GeneratedSwiftReservedEnum: SwiftProtobuf.Enum,
case 165: self = .collection
case 166: self = .com
case 167: self = .comma
case 168: self = .commonMessageConformances
case 169: self = .consumedBytes
case 170: self = .contentsOf
case 171: self = .count
case 172: self = .countVarintsInBuffer
case 173: self = .csharpNamespace
case 174: self = .ctype
case 175: self = .customCodable
case 168: self = .consumedBytes
case 169: self = .contentsOf
case 170: self = .count
case 171: self = .countVarintsInBuffer
case 172: self = .csharpNamespace
case 173: self = .ctype
case 174: self = .customCodable
case 175: self = .customDebugStringConvertible
case 176: self = .d
case 177: self = .data
case 178: self = .dataResult
Expand Down Expand Up @@ -2160,14 +2160,14 @@ enum SwiftProtoTesting_Generated_GeneratedSwiftReservedEnum: SwiftProtobuf.Enum,
case .collection: return 165
case .com: return 166
case .comma: return 167
case .commonMessageConformances: return 168
case .consumedBytes: return 169
case .contentsOf: return 170
case .count: return 171
case .countVarintsInBuffer: return 172
case .csharpNamespace: return 173
case .ctype: return 174
case .customCodable: return 175
case .consumedBytes: return 168
case .contentsOf: return 169
case .count: return 170
case .countVarintsInBuffer: return 171
case .csharpNamespace: return 172
case .ctype: return 173
case .customCodable: return 174
case .customDebugStringConvertible: return 175
case .d: return 176
case .data: return 177
case .dataResult: return 178
Expand Down Expand Up @@ -3150,14 +3150,14 @@ enum SwiftProtoTesting_Generated_GeneratedSwiftReservedEnum: SwiftProtobuf.Enum,
.collection,
.com,
.comma,
.commonMessageConformances,
.consumedBytes,
.contentsOf,
.count,
.countVarintsInBuffer,
.csharpNamespace,
.ctype,
.customCodable,
.customDebugStringConvertible,
.d,
.data,
.dataResult,
Expand Down Expand Up @@ -4134,14 +4134,14 @@ extension SwiftProtoTesting_Generated_GeneratedSwiftReservedEnum: SwiftProtobuf.
165: .same(proto: "Collection"),
166: .same(proto: "com"),
167: .same(proto: "comma"),
168: .same(proto: "CommonMessageConformances"),
169: .same(proto: "consumedBytes"),
170: .same(proto: "contentsOf"),
171: .same(proto: "count"),
172: .same(proto: "countVarintsInBuffer"),
173: .same(proto: "csharpNamespace"),
174: .same(proto: "ctype"),
175: .same(proto: "customCodable"),
168: .same(proto: "consumedBytes"),
169: .same(proto: "contentsOf"),
170: .same(proto: "count"),
171: .same(proto: "countVarintsInBuffer"),
172: .same(proto: "csharpNamespace"),
173: .same(proto: "ctype"),
174: .same(proto: "customCodable"),
175: .same(proto: "CustomDebugStringConvertible"),
176: .same(proto: "d"),
177: .same(proto: "Data"),
178: .same(proto: "dataResult"),
Expand Down
72 changes: 36 additions & 36 deletions Reference/SwiftProtobufTests/generated_swift_names_enums.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5041,36 +5041,6 @@ struct SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums: Sendable {

}

enum CommonMessageConformances: SwiftProtobuf.Enum, Swift.CaseIterable {
typealias RawValue = Int
case noneCommonMessageConformances // = 0
case UNRECOGNIZED(Int)

init() {
self = .noneCommonMessageConformances
}

init?(rawValue: Int) {
switch rawValue {
case 0: self = .noneCommonMessageConformances
default: self = .UNRECOGNIZED(rawValue)
}
}

var rawValue: Int {
switch self {
case .noneCommonMessageConformances: return 0
case .UNRECOGNIZED(let i): return i
}
}

// The compiler won't synthesize support with the UNRECOGNIZED case.
static let allCases: [SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums.CommonMessageConformances] = [
.noneCommonMessageConformances,
]

}

enum consumedBytes: SwiftProtobuf.Enum, Swift.CaseIterable {
typealias RawValue = Int
case noneConsumedBytes // = 0
Expand Down Expand Up @@ -5281,6 +5251,36 @@ struct SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums: Sendable {

}

enum CustomDebugStringConvertible: SwiftProtobuf.Enum, Swift.CaseIterable {
typealias RawValue = Int
case noneCustomDebugStringConvertible // = 0
case UNRECOGNIZED(Int)

init() {
self = .noneCustomDebugStringConvertible
}

init?(rawValue: Int) {
switch rawValue {
case 0: self = .noneCustomDebugStringConvertible
default: self = .UNRECOGNIZED(rawValue)
}
}

var rawValue: Int {
switch self {
case .noneCustomDebugStringConvertible: return 0
case .UNRECOGNIZED(let i): return i
}
}

// The compiler won't synthesize support with the UNRECOGNIZED case.
static let allCases: [SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums.CustomDebugStringConvertible] = [
.noneCustomDebugStringConvertible,
]

}

enum d: SwiftProtobuf.Enum, Swift.CaseIterable {
typealias RawValue = Int
case noneD // = 0
Expand Down Expand Up @@ -30309,12 +30309,6 @@ extension SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums.comma: SwiftPr
]
}

extension SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums.CommonMessageConformances: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
0: .same(proto: "NONE_CommonMessageConformances"),
]
}

extension SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums.consumedBytes: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
0: .same(proto: "NONE_consumedBytes"),
Expand Down Expand Up @@ -30357,6 +30351,12 @@ extension SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums.customCodable:
]
}

extension SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums.CustomDebugStringConvertible: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
0: .same(proto: "NONE_CustomDebugStringConvertible"),
]
}

extension SwiftProtoTesting_Generated_GeneratedSwiftReservedEnums.d: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
0: .same(proto: "NONE_d"),
Expand Down
Loading

0 comments on commit f982f33

Please sign in to comment.