Searched refs:OneofMessage (Results 1 – 2 of 2) sorted by relevance
115 OneofMessage = pool.lookup("OneofMessage").msgclass constant689 d = OneofMessage.descriptor706 d = OneofMessage.new741 d2 = OneofMessage.decode(OneofMessage.encode(d))744 encoded_field_a = OneofMessage.encode(OneofMessage.new(:a => "string"))745 encoded_field_b = OneofMessage.encode(OneofMessage.new(:b => 1000))746 encoded_field_c = OneofMessage.encode(747 OneofMessage.new(:c => TestMessage2.new(:foo => 1)))748 encoded_field_d = OneofMessage.encode(OneofMessage.new(:d => :B))750 d3 = OneofMessage.decode([all …]
325 XCTAssertEqual(msg.oOneOfCase, Message2_O_OneOfCase.OneofMessage) in testProto2OneOfSupport()352 XCTAssertEqual(msg.oOneOfCase, Message2_O_OneOfCase.OneofMessage) in testProto2OneOfSupport()399 XCTAssertEqual(msg.oOneOfCase, Message3_O_OneOfCase.OneofMessage) in testProto3OneOfSupport()426 XCTAssertEqual(msg.oOneOfCase, Message3_O_OneOfCase.OneofMessage) in testProto3OneOfSupport()