Lines Matching refs:string

194     # Assigning a normal (ASCII or UTF8) string to a bytes field, or
195 # ASCII-8BIT to a string field will convert to the proper encoding.
196 m.optional_bytes = "Test string ASCII".encode!('ASCII')
199 assert_equal "Test string ASCII", m.optional_bytes
202 m.optional_bytes = "Test string UTF-8 \u0100".encode!('UTF-8')
394 # :int32, :int64, :uint32, :uint64, :bool, :string, :bytes.
396 m = Google::Protobuf::Map.new(:string, :int32)
440 m = Google::Protobuf::Map.new(:string, :int32,
493 m = Google::Protobuf::Map.new(:string, :int32)
514 m = Google::Protobuf::Map.new(:string, :message, proto_module::TestMessage)
521 :string, :message, proto_module::TestMessage,
527 m = Google::Protobuf::Map.new(:string, :enum, proto_module::TestEnum,
545 :string, :message, proto_module::TestMessage,
618 encoded_field_a = proto_module::OneofMessage.encode(proto_module::OneofMessage.new(:a => "string"))
1074 :optional_string => "Test string",
1277 assert_equal '', m.string.value
1289 string: Google::Protobuf::StringValue.new(value: ""),
1330 assert_equal "st\nr", m.string.value
1346 string: Google::Protobuf::StringValue.new(value: "st\nr"),
1514 assert_equal Google::Protobuf::StringValue.new(value: 'xy'), m.string
1541 assert_nil m.string
1558 string: Google::Protobuf::StringValue.new(value: 'str'),
1593 m.string = Google::Protobuf::StringValue.new(value: 'xy')
1595 assert_equal Google::Protobuf::StringValue.new(value: 'xy'), m.string
1621 m.string = nil
1622 assert_nil m.string
1640 string: Google::Protobuf::StringValue.new(value: 'str'),
1662 assert_equal 'you', m.string.value