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 /
8
8
9
9
// Copyright (c) 2015, Google Inc.
10
10
//
19
19
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
20
// See the License for the specific language governing permissions and
21
21
// limitations under the License.
22
+
22
23
import Foundation
23
24
import SwiftProtobuf
24
25
@@ -28,8 +29,8 @@ import SwiftProtobuf
28
29
// Please ensure that your are building against the same version of the API
29
30
// that was used to generate this file.
30
31
fileprivate struct _GeneratedWithProtocGenSwiftVersion : SwiftProtobuf . ProtobufAPIVersionCheck {
31
- struct _1 : SwiftProtobuf . ProtobufAPIVersion_1 { }
32
- typealias Version = _1
32
+ struct _2 : SwiftProtobuf . ProtobufAPIVersion_2 { }
33
+ typealias Version = _2
33
34
}
34
35
35
36
struct Echo_EchoRequest : SwiftProtobuf . Message {
@@ -42,6 +43,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {
42
43
43
44
init ( ) { }
44
45
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.
45
50
mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
46
51
while let fieldNumber = try decoder. nextFieldNumber ( ) {
47
52
switch fieldNumber {
@@ -51,6 +56,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {
51
56
}
52
57
}
53
58
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.
54
63
func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
55
64
if !self . text. isEmpty {
56
65
try visitor. visitSingularStringField ( value: self . text, fieldNumber: 1 )
@@ -69,6 +78,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {
69
78
70
79
init ( ) { }
71
80
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.
72
85
mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
73
86
while let fieldNumber = try decoder. nextFieldNumber ( ) {
74
87
switch fieldNumber {
@@ -78,6 +91,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {
78
91
}
79
92
}
80
93
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.
81
98
func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
82
99
if !self . text. isEmpty {
83
100
try visitor. visitSingularStringField ( value: self . text, fieldNumber: 1 )
0 commit comments