@@ -31,21 +31,114 @@ public struct Tensorflow_CppShapeInferenceResult: SwiftProtobuf.Message {
3131 /// Clears the value of `shape`. Subsequent reads from it will return its default value.
3232 public mutating func clearShape( ) { _storage. _shape = nil }
3333
34- public var handleShape : Tensorflow_TensorShapeProto {
35- get { return _storage. _handleShape ?? Tensorflow_TensorShapeProto ( ) }
36- set { _uniqueStorage ( ) . _handleShape = newValue}
34+ public var handleData : Tensorflow_CppShapeInferenceResult . HandleData {
35+ get { return _storage. _handleData ?? Tensorflow_CppShapeInferenceResult . HandleData ( ) }
36+ set { _uniqueStorage ( ) . _handleData = newValue}
3737 }
38- /// Returns true if `handleShape ` has been explicitly set.
39- public var hasHandleShape : Bool { return _storage. _handleShape != nil }
40- /// Clears the value of `handleShape `. Subsequent reads from it will return its default value.
41- public mutating func clearHandleShape ( ) { _storage. _handleShape = nil }
38+ /// Returns true if `handleData ` has been explicitly set.
39+ public var hasHandleData : Bool { return _storage. _handleData != nil }
40+ /// Clears the value of `handleData `. Subsequent reads from it will return its default value.
41+ public mutating func clearHandleData ( ) { _storage. _handleData = nil }
4242
43- public var handleDtype : Tensorflow_DataType {
44- get { return _storage. _handleDtype}
45- set { _uniqueStorage ( ) . _handleDtype = newValue}
43+ public var unknownFields = SwiftProtobuf . UnknownStorage ( )
44+
45+ public struct HandleShapeAndType : SwiftProtobuf . Message {
46+ public static let protoMessageName : String = Tensorflow_CppShapeInferenceResult . protoMessageName + " .HandleShapeAndType "
47+
48+ public var shape : Tensorflow_TensorShapeProto {
49+ get { return _storage. _shape ?? Tensorflow_TensorShapeProto ( ) }
50+ set { _uniqueStorage ( ) . _shape = newValue}
51+ }
52+ /// Returns true if `shape` has been explicitly set.
53+ public var hasShape : Bool { return _storage. _shape != nil }
54+ /// Clears the value of `shape`. Subsequent reads from it will return its default value.
55+ public mutating func clearShape( ) { _storage. _shape = nil }
56+
57+ public var dtype : Tensorflow_DataType {
58+ get { return _storage. _dtype}
59+ set { _uniqueStorage ( ) . _dtype = newValue}
60+ }
61+
62+ public var unknownFields = SwiftProtobuf . UnknownStorage ( )
63+
64+ public init ( ) { }
65+
66+ /// Used by the decoding initializers in the SwiftProtobuf library, not generally
67+ /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
68+ /// initializers are defined in the SwiftProtobuf library. See the Message and
69+ /// Message+*Additions` files.
70+ public mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
71+ _ = _uniqueStorage ( )
72+ try withExtendedLifetime ( _storage) { ( _storage: _StorageClass ) in
73+ while let fieldNumber = try decoder. nextFieldNumber ( ) {
74+ switch fieldNumber {
75+ case 1 : try decoder. decodeSingularMessageField ( value: & _storage. _shape)
76+ case 2 : try decoder. decodeSingularEnumField ( value: & _storage. _dtype)
77+ default : break
78+ }
79+ }
80+ }
81+ }
82+
83+ /// Used by the encoding methods of the SwiftProtobuf library, not generally
84+ /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
85+ /// other serializer methods are defined in the SwiftProtobuf library. See the
86+ /// `Message` and `Message+*Additions` files.
87+ public func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
88+ try withExtendedLifetime ( _storage) { ( _storage: _StorageClass ) in
89+ if let v = _storage. _shape {
90+ try visitor. visitSingularMessageField ( value: v, fieldNumber: 1 )
91+ }
92+ if _storage. _dtype != . dtInvalid {
93+ try visitor. visitSingularEnumField ( value: _storage. _dtype, fieldNumber: 2 )
94+ }
95+ }
96+ try unknownFields. traverse ( visitor: & visitor)
97+ }
98+
99+ fileprivate var _storage = _StorageClass. defaultInstance
46100 }
47101
48- public var unknownFields = SwiftProtobuf . UnknownStorage ( )
102+ public struct HandleData : SwiftProtobuf . Message {
103+ public static let protoMessageName : String = Tensorflow_CppShapeInferenceResult . protoMessageName + " .HandleData "
104+
105+ public var isSet : Bool = false
106+
107+ /// Only valid if <is_set>.
108+ public var shapeAndType : [ Tensorflow_CppShapeInferenceResult . HandleShapeAndType ] = [ ]
109+
110+ public var unknownFields = SwiftProtobuf . UnknownStorage ( )
111+
112+ public init ( ) { }
113+
114+ /// Used by the decoding initializers in the SwiftProtobuf library, not generally
115+ /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
116+ /// initializers are defined in the SwiftProtobuf library. See the Message and
117+ /// Message+*Additions` files.
118+ public mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
119+ while let fieldNumber = try decoder. nextFieldNumber ( ) {
120+ switch fieldNumber {
121+ case 1 : try decoder. decodeSingularBoolField ( value: & self . isSet)
122+ case 2 : try decoder. decodeRepeatedMessageField ( value: & self . shapeAndType)
123+ default : break
124+ }
125+ }
126+ }
127+
128+ /// Used by the encoding methods of the SwiftProtobuf library, not generally
129+ /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
130+ /// other serializer methods are defined in the SwiftProtobuf library. See the
131+ /// `Message` and `Message+*Additions` files.
132+ public func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
133+ if self . isSet != false {
134+ try visitor. visitSingularBoolField ( value: self . isSet, fieldNumber: 1 )
135+ }
136+ if !self . shapeAndType. isEmpty {
137+ try visitor. visitRepeatedMessageField ( value: self . shapeAndType, fieldNumber: 2 )
138+ }
139+ try unknownFields. traverse ( visitor: & visitor)
140+ }
141+ }
49142
50143 public init ( ) { }
51144
@@ -59,8 +152,7 @@ public struct Tensorflow_CppShapeInferenceResult: SwiftProtobuf.Message {
59152 while let fieldNumber = try decoder. nextFieldNumber ( ) {
60153 switch fieldNumber {
61154 case 1 : try decoder. decodeSingularMessageField ( value: & _storage. _shape)
62- case 2 : try decoder. decodeSingularMessageField ( value: & _storage. _handleShape)
63- case 3 : try decoder. decodeSingularEnumField ( value: & _storage. _handleDtype)
155+ case 4 : try decoder. decodeSingularMessageField ( value: & _storage. _handleData)
64156 default : break
65157 }
66158 }
@@ -76,11 +168,8 @@ public struct Tensorflow_CppShapeInferenceResult: SwiftProtobuf.Message {
76168 if let v = _storage. _shape {
77169 try visitor. visitSingularMessageField ( value: v, fieldNumber: 1 )
78170 }
79- if let v = _storage. _handleShape {
80- try visitor. visitSingularMessageField ( value: v, fieldNumber: 2 )
81- }
82- if _storage. _handleDtype != . dtInvalid {
83- try visitor. visitSingularEnumField ( value: _storage. _handleDtype, fieldNumber: 3 )
171+ if let v = _storage. _handleData {
172+ try visitor. visitSingularMessageField ( value: v, fieldNumber: 4 )
84173 }
85174 }
86175 try unknownFields. traverse ( visitor: & visitor)
@@ -136,23 +225,20 @@ fileprivate let _protobuf_package = "tensorflow"
136225extension Tensorflow_CppShapeInferenceResult : SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
137226 public static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
138227 1 : . same( proto: " shape " ) ,
139- 2 : . standard( proto: " handle_shape " ) ,
140- 3 : . standard( proto: " handle_dtype " ) ,
228+ 4 : . standard( proto: " handle_data " ) ,
141229 ]
142230
143231 fileprivate class _StorageClass {
144232 var _shape : Tensorflow_TensorShapeProto ? = nil
145- var _handleShape : Tensorflow_TensorShapeProto ? = nil
146- var _handleDtype : Tensorflow_DataType = . dtInvalid
233+ var _handleData : Tensorflow_CppShapeInferenceResult . HandleData ? = nil
147234
148235 static let defaultInstance = _StorageClass ( )
149236
150237 private init ( ) { }
151238
152239 init ( copying source: _StorageClass ) {
153240 _shape = source. _shape
154- _handleShape = source. _handleShape
155- _handleDtype = source. _handleDtype
241+ _handleData = source. _handleData
156242 }
157243 }
158244
@@ -167,8 +253,7 @@ extension Tensorflow_CppShapeInferenceResult: SwiftProtobuf._MessageImplementati
167253 if _storage !== other. _storage {
168254 let storagesAreEqual : Bool = withExtendedLifetime ( ( _storage, other. _storage) ) { ( _storage, other_storage) in
169255 if _storage. _shape != other_storage. _shape { return false }
170- if _storage. _handleShape != other_storage. _handleShape { return false }
171- if _storage. _handleDtype != other_storage. _handleDtype { return false }
256+ if _storage. _handleData != other_storage. _handleData { return false }
172257 return true
173258 }
174259 if !storagesAreEqual { return false }
@@ -178,6 +263,61 @@ extension Tensorflow_CppShapeInferenceResult: SwiftProtobuf._MessageImplementati
178263 }
179264}
180265
266+ extension Tensorflow_CppShapeInferenceResult . HandleShapeAndType : SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
267+ public static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
268+ 1 : . same( proto: " shape " ) ,
269+ 2 : . same( proto: " dtype " ) ,
270+ ]
271+
272+ fileprivate class _StorageClass {
273+ var _shape : Tensorflow_TensorShapeProto ? = nil
274+ var _dtype : Tensorflow_DataType = . dtInvalid
275+
276+ static let defaultInstance = _StorageClass ( )
277+
278+ private init ( ) { }
279+
280+ init ( copying source: _StorageClass ) {
281+ _shape = source. _shape
282+ _dtype = source. _dtype
283+ }
284+ }
285+
286+ fileprivate mutating func _uniqueStorage( ) -> _StorageClass {
287+ if !isKnownUniquelyReferenced( & _storage) {
288+ _storage = _StorageClass ( copying: _storage)
289+ }
290+ return _storage
291+ }
292+
293+ public func _protobuf_generated_isEqualTo( other: Tensorflow_CppShapeInferenceResult . HandleShapeAndType ) -> Bool {
294+ if _storage !== other. _storage {
295+ let storagesAreEqual : Bool = withExtendedLifetime ( ( _storage, other. _storage) ) { ( _storage, other_storage) in
296+ if _storage. _shape != other_storage. _shape { return false }
297+ if _storage. _dtype != other_storage. _dtype { return false }
298+ return true
299+ }
300+ if !storagesAreEqual { return false }
301+ }
302+ if unknownFields != other. unknownFields { return false }
303+ return true
304+ }
305+ }
306+
307+ extension Tensorflow_CppShapeInferenceResult . HandleData : SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
308+ public static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
309+ 1 : . standard( proto: " is_set " ) ,
310+ 2 : . standard( proto: " shape_and_type " ) ,
311+ ]
312+
313+ public func _protobuf_generated_isEqualTo( other: Tensorflow_CppShapeInferenceResult . HandleData ) -> Bool {
314+ if self . isSet != other. isSet { return false }
315+ if self . shapeAndType != other. shapeAndType { return false }
316+ if unknownFields != other. unknownFields { return false }
317+ return true
318+ }
319+ }
320+
181321extension Tensorflow_CppShapeInferenceInputsNeeded : SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
182322 public static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
183323 1 : . standard( proto: " input_tensors_needed " ) ,
0 commit comments