Skip to content

Commit

Permalink
Regenerate.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Sep 25, 2024
1 parent 123660a commit 0a8e3dd
Show file tree
Hide file tree
Showing 11 changed files with 485 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Reference/SwiftProtobuf/google/protobuf/api.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ struct Google_Protobuf_Method: Sendable {
/// The mixin construct implies that all methods in `AccessControl` are
/// also declared with same name and request/response types in
/// `Storage`. A documentation generator or annotation processor will
/// see the effective `Storage.GetAcl` method after inherting
/// see the effective `Storage.GetAcl` method after inheriting
/// documentation and annotations as follows:
///
/// service Storage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ enum Google_Protobuf_Edition: Enum, Swift.CaseIterable {
case edition2024 // = 1001

/// Placeholder editions for testing feature resolution. These should not be
/// used or relyed on outside of tests.
/// used or relied on outside of tests.
case edition1TestOnly // = 1
case edition2TestOnly // = 2
case edition99997TestOnly // = 99997
Expand Down
2 changes: 1 addition & 1 deletion Reference/upstream/google/protobuf/api.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ struct Google_Protobuf_Method: Sendable {
/// The mixin construct implies that all methods in `AccessControl` are
/// also declared with same name and request/response types in
/// `Storage`. A documentation generator or annotation processor will
/// see the effective `Storage.GetAcl` method after inherting
/// see the effective `Storage.GetAcl` method after inheriting
/// documentation and annotations as follows:
///
/// service Storage {
Expand Down
2 changes: 1 addition & 1 deletion Reference/upstream/google/protobuf/descriptor.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ enum Google_Protobuf_Edition: Enum, Swift.CaseIterable {
case edition2024 // = 1001

/// Placeholder editions for testing feature resolution. These should not be
/// used or relyed on outside of tests.
/// used or relied on outside of tests.
case edition1TestOnly // = 1
case edition2TestOnly // = 2
case edition99997TestOnly // = 99997
Expand Down
38 changes: 38 additions & 0 deletions Reference/upstream/google/protobuf/edition_unittest.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,15 @@ struct EditionUnittest_TestAllTypes: @unchecked Sendable {
/// Clears the value of `optionalCord`. Subsequent reads from it will return its default value.
mutating func clearOptionalCord() {_uniqueStorage()._optionalCord = nil}

var optionalBytesCord: Data {
get {return _storage._optionalBytesCord ?? Data()}
set {_uniqueStorage()._optionalBytesCord = newValue}
}
/// Returns true if `optionalBytesCord` has been explicitly set.
var hasOptionalBytesCord: Bool {return _storage._optionalBytesCord != nil}
/// Clears the value of `optionalBytesCord`. Subsequent reads from it will return its default value.
mutating func clearOptionalBytesCord() {_uniqueStorage()._optionalBytesCord = nil}

/// Defined in unittest_import_public.proto
var optionalPublicImportMessage: ProtobufUnittestImport_PublicImportMessage {
get {return _storage._optionalPublicImportMessage ?? ProtobufUnittestImport_PublicImportMessage()}
Expand Down Expand Up @@ -8569,6 +8578,21 @@ extension EditionUnittest_TestAllExtensions {
clearExtensionValue(ext: EditionUnittest_Extensions_optional_cord_extension)
}

var EditionUnittest_optionalBytesCordExtension: Data {
get {return getExtensionValue(ext: EditionUnittest_Extensions_optional_bytes_cord_extension) ?? Data()}
set {setExtensionValue(ext: EditionUnittest_Extensions_optional_bytes_cord_extension, value: newValue)}
}
/// Returns true if extension `EditionUnittest_Extensions_optional_bytes_cord_extension`
/// has been explicitly set.
var hasEditionUnittest_optionalBytesCordExtension: Bool {
return hasExtensionValue(ext: EditionUnittest_Extensions_optional_bytes_cord_extension)
}
/// Clears the value of extension `EditionUnittest_Extensions_optional_bytes_cord_extension`.
/// Subsequent reads from it will return its default value.
mutating func clearEditionUnittest_optionalBytesCordExtension() {
clearExtensionValue(ext: EditionUnittest_Extensions_optional_bytes_cord_extension)
}

var EditionUnittest_optionalPublicImportMessageExtension: ProtobufUnittestImport_PublicImportMessage {
get {return getExtensionValue(ext: EditionUnittest_Extensions_optional_public_import_message_extension) ?? ProtobufUnittestImport_PublicImportMessage()}
set {setExtensionValue(ext: EditionUnittest_Extensions_optional_public_import_message_extension, value: newValue)}
Expand Down Expand Up @@ -9628,6 +9652,7 @@ let EditionUnittest_EditionUnittest_Extensions: SwiftProtobuf.SimpleExtensionMap
EditionUnittest_Extensions_optional_import_enum_extension,
EditionUnittest_Extensions_optional_string_piece_extension,
EditionUnittest_Extensions_optional_cord_extension,
EditionUnittest_Extensions_optional_bytes_cord_extension,
EditionUnittest_Extensions_optional_public_import_message_extension,
EditionUnittest_Extensions_optional_lazy_message_extension,
EditionUnittest_Extensions_optional_unverified_lazy_message_extension,
Expand Down Expand Up @@ -9874,6 +9899,11 @@ let EditionUnittest_Extensions_optional_cord_extension = SwiftProtobuf.MessageEx
fieldName: "edition_unittest.optional_cord_extension"
)

let EditionUnittest_Extensions_optional_bytes_cord_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalExtensionField<SwiftProtobuf.ProtobufBytes>, EditionUnittest_TestAllExtensions>(
_protobuf_fieldNumber: 86,
fieldName: "edition_unittest.optional_bytes_cord_extension"
)

let EditionUnittest_Extensions_optional_public_import_message_extension = SwiftProtobuf.MessageExtension<SwiftProtobuf.OptionalMessageExtensionField<ProtobufUnittestImport_PublicImportMessage>, EditionUnittest_TestAllExtensions>(
_protobuf_fieldNumber: 26,
fieldName: "edition_unittest.optional_public_import_message_extension"
Expand Down Expand Up @@ -10696,6 +10726,7 @@ extension EditionUnittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._Me
23: .standard(proto: "optional_import_enum"),
24: .standard(proto: "optional_string_piece"),
25: .standard(proto: "optional_cord"),
86: .standard(proto: "optional_bytes_cord"),
26: .standard(proto: "optional_public_import_message"),
27: .standard(proto: "optional_lazy_message"),
28: .standard(proto: "optional_unverified_lazy_message"),
Expand Down Expand Up @@ -10779,6 +10810,7 @@ extension EditionUnittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._Me
var _optionalImportEnum: ProtobufUnittestImport_ImportEnum? = nil
var _optionalStringPiece: String? = nil
var _optionalCord: String? = nil
var _optionalBytesCord: Data? = nil
var _optionalPublicImportMessage: ProtobufUnittestImport_PublicImportMessage? = nil
var _optionalLazyMessage: EditionUnittest_TestAllTypes.NestedMessage? = nil
var _optionalUnverifiedLazyMessage: EditionUnittest_TestAllTypes.NestedMessage? = nil
Expand Down Expand Up @@ -10866,6 +10898,7 @@ extension EditionUnittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._Me
_optionalImportEnum = source._optionalImportEnum
_optionalStringPiece = source._optionalStringPiece
_optionalCord = source._optionalCord
_optionalBytesCord = source._optionalBytesCord
_optionalPublicImportMessage = source._optionalPublicImportMessage
_optionalLazyMessage = source._optionalLazyMessage
_optionalUnverifiedLazyMessage = source._optionalUnverifiedLazyMessage
Expand Down Expand Up @@ -11005,6 +11038,7 @@ extension EditionUnittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._Me
case 83: try { try decoder.decodeSingularEnumField(value: &_storage._defaultImportEnum) }()
case 84: try { try decoder.decodeSingularStringField(value: &_storage._defaultStringPiece) }()
case 85: try { try decoder.decodeSingularStringField(value: &_storage._defaultCord) }()
case 86: try { try decoder.decodeSingularBytesField(value: &_storage._optionalBytesCord) }()
case 111: try {
var v: UInt32?
try decoder.decodeSingularUInt32Field(value: &v)
Expand Down Expand Up @@ -11299,6 +11333,9 @@ extension EditionUnittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._Me
try { if let v = _storage._defaultCord {
try visitor.visitSingularStringField(value: v, fieldNumber: 85)
} }()
try { if let v = _storage._optionalBytesCord {
try visitor.visitSingularBytesField(value: v, fieldNumber: 86)
} }()
switch _storage._oneofField {
case .oneofUint32?: try {
guard case .oneofUint32(let v)? = _storage._oneofField else { preconditionFailure() }
Expand Down Expand Up @@ -11363,6 +11400,7 @@ extension EditionUnittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._Me
if _storage._optionalImportEnum != rhs_storage._optionalImportEnum {return false}
if _storage._optionalStringPiece != rhs_storage._optionalStringPiece {return false}
if _storage._optionalCord != rhs_storage._optionalCord {return false}
if _storage._optionalBytesCord != rhs_storage._optionalBytesCord {return false}
if _storage._optionalPublicImportMessage != rhs_storage._optionalPublicImportMessage {return false}
if _storage._optionalLazyMessage != rhs_storage._optionalLazyMessage {return false}
if _storage._optionalUnverifiedLazyMessage != rhs_storage._optionalUnverifiedLazyMessage {return false}
Expand Down
Loading

0 comments on commit 0a8e3dd

Please sign in to comment.