|
|
@@ -1,10 +1,10 @@
|
|
|
-/*
|
|
|
- * DO NOT EDIT.
|
|
|
- *
|
|
|
- * Generated by the protocol buffer compiler.
|
|
|
- * Source: echo.proto
|
|
|
- *
|
|
|
- */
|
|
|
+// DO NOT EDIT.
|
|
|
+//
|
|
|
+// Generated by the Swift generator plugin for the protocol buffer compiler.
|
|
|
+// Source: echo.proto
|
|
|
+//
|
|
|
+// For information on using the generated types, please see the documenation:
|
|
|
+// https://github.com/apple/swift-protobuf/
|
|
|
|
|
|
// Copyright (c) 2015, Google Inc.
|
|
|
//
|
|
|
@@ -19,6 +19,7 @@
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
// See the License for the specific language governing permissions and
|
|
|
// limitations under the License.
|
|
|
+
|
|
|
import Foundation
|
|
|
import SwiftProtobuf
|
|
|
|
|
|
@@ -28,8 +29,8 @@ import SwiftProtobuf
|
|
|
// Please ensure that your are building against the same version of the API
|
|
|
// that was used to generate this file.
|
|
|
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
|
|
|
- struct _1: SwiftProtobuf.ProtobufAPIVersion_1 {}
|
|
|
- typealias Version = _1
|
|
|
+ struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
|
|
|
+ typealias Version = _2
|
|
|
}
|
|
|
|
|
|
struct Echo_EchoRequest: SwiftProtobuf.Message {
|
|
|
@@ -42,6 +43,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
+ /// Used by the decoding initializers in the SwiftProtobuf library, not generally
|
|
|
+ /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
|
|
|
+ /// initializers are defined in the SwiftProtobuf library. See the Message and
|
|
|
+ /// Message+*Additions` files.
|
|
|
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
switch fieldNumber {
|
|
|
@@ -51,6 +56,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// Used by the encoding methods of the SwiftProtobuf library, not generally
|
|
|
+ /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
|
|
|
+ /// other serializer methods are defined in the SwiftProtobuf library. See the
|
|
|
+ /// `Message` and `Message+*Additions` files.
|
|
|
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
if !self.text.isEmpty {
|
|
|
try visitor.visitSingularStringField(value: self.text, fieldNumber: 1)
|
|
|
@@ -69,6 +78,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
+ /// Used by the decoding initializers in the SwiftProtobuf library, not generally
|
|
|
+ /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
|
|
|
+ /// initializers are defined in the SwiftProtobuf library. See the Message and
|
|
|
+ /// Message+*Additions` files.
|
|
|
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
|
switch fieldNumber {
|
|
|
@@ -78,6 +91,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// Used by the encoding methods of the SwiftProtobuf library, not generally
|
|
|
+ /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
|
|
|
+ /// other serializer methods are defined in the SwiftProtobuf library. See the
|
|
|
+ /// `Message` and `Message+*Additions` files.
|
|
|
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
if !self.text.isEmpty {
|
|
|
try visitor.visitSingularStringField(value: self.text, fieldNumber: 1)
|