Home
last modified time | relevance | path

Searched refs:OneofMessage (Results 1 – 5 of 5) sorted by relevance

/third_party/protobuf/ruby/tests/
Dbasic_proto2.rb73 m = OneofMessage.new
79 assert OneofMessage.descriptor.lookup('a').has?(m)
82 assert !OneofMessage.descriptor.lookup('b').has?(m)
84 assert !OneofMessage.descriptor.lookup('c').has?(m)
86 assert !OneofMessage.descriptor.lookup('d').has?(m)
88 m = OneofMessage.new
97 m = OneofMessage.new
106 m = OneofMessage.new
180 m = OneofMessage.new
187 m = OneofMessage.new
[all …]
Dbasic.rb41 m = OneofMessage.new
48 assert_true OneofMessage.descriptor.lookup('a').has?(m)
145 m = OneofMessage.new
161 OneofMessage.descriptor.lookup('a').clear(m)
Dbasic_test_proto2.proto115 message OneofMessage { message
Dbasic_test.proto115 message OneofMessage { message
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dbasic.rb114 OneofMessage = pool.lookup("OneofMessage").msgclass constant
777 d = OneofMessage.descriptor
794 d = OneofMessage.new
829 d2 = OneofMessage.decode(OneofMessage.encode(d))
832 encoded_field_a = OneofMessage.encode(OneofMessage.new(:a => "string"))
833 encoded_field_b = OneofMessage.encode(OneofMessage.new(:b => 1000))
834 encoded_field_c = OneofMessage.encode(
835 OneofMessage.new(:c => TestMessage2.new(:foo => 1)))
836 encoded_field_d = OneofMessage.encode(OneofMessage.new(:d => :B))
838 d3 = OneofMessage.decode(
[all …]