1- /*
2- * DO NOT EDIT.
3- *
4- * Generated by the protocol buffer compiler.
5- * Source: echo.proto
6- *
7- * /
1+ // DO NOT EDIT.
2+ //
3+ // Generated by the Swift generator plugin for the protocol buffer compiler.
4+ // Source: echo.proto
5+ //
6+ // For information on using the generated types, please see the documenation:
7+ // https://github.com/apple/swift-protobuf /
88
99// Copyright (c) 2015, Google Inc.
1010//
1919// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2020// See the License for the specific language governing permissions and
2121// limitations under the License.
22+
2223import Foundation
2324import SwiftProtobuf
2425
@@ -28,8 +29,8 @@ import SwiftProtobuf
2829// Please ensure that your are building against the same version of the API
2930// that was used to generate this file.
3031fileprivate struct _GeneratedWithProtocGenSwiftVersion : SwiftProtobuf . ProtobufAPIVersionCheck {
31- struct _1 : SwiftProtobuf . ProtobufAPIVersion_1 { }
32- typealias Version = _1
32+ struct _2 : SwiftProtobuf . ProtobufAPIVersion_2 { }
33+ typealias Version = _2
3334}
3435
3536struct Echo_EchoRequest : SwiftProtobuf . Message {
@@ -42,6 +43,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {
4243
4344 init ( ) { }
4445
46+ /// Used by the decoding initializers in the SwiftProtobuf library, not generally
47+ /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
48+ /// initializers are defined in the SwiftProtobuf library. See the Message and
49+ /// Message+*Additions` files.
4550 mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
4651 while let fieldNumber = try decoder. nextFieldNumber ( ) {
4752 switch fieldNumber {
@@ -51,6 +56,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {
5156 }
5257 }
5358
59+ /// Used by the encoding methods of the SwiftProtobuf library, not generally
60+ /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
61+ /// other serializer methods are defined in the SwiftProtobuf library. See the
62+ /// `Message` and `Message+*Additions` files.
5463 func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
5564 if !self . text. isEmpty {
5665 try visitor. visitSingularStringField ( value: self . text, fieldNumber: 1 )
@@ -69,6 +78,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {
6978
7079 init ( ) { }
7180
81+ /// Used by the decoding initializers in the SwiftProtobuf library, not generally
82+ /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
83+ /// initializers are defined in the SwiftProtobuf library. See the Message and
84+ /// Message+*Additions` files.
7285 mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
7386 while let fieldNumber = try decoder. nextFieldNumber ( ) {
7487 switch fieldNumber {
@@ -78,6 +91,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {
7891 }
7992 }
8093
94+ /// Used by the encoding methods of the SwiftProtobuf library, not generally
95+ /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
96+ /// other serializer methods are defined in the SwiftProtobuf library. See the
97+ /// `Message` and `Message+*Additions` files.
8198 func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
8299 if !self . text. isEmpty {
83100 try visitor. visitSingularStringField ( value: self . text, fieldNumber: 1 )
0 commit comments